]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
build: Only first-level subdirectories with `mk_sub_build_dir`
authorSimon Kuenzer <simon@unikraft.io>
Thu, 1 Jun 2023 12:33:30 +0000 (14:33 +0200)
committerUnikraft <monkey@unikraft.io>
Wed, 9 Aug 2023 10:27:39 +0000 (10:27 +0000)
commitb8872a6b572cf784880766906cf707ef13851c54
tree2a9a7bc341da45a88a8c5b2c21303c52e941bc97
parentd8c86052e6bf2a462c91cf49751a7de11ed3dc08
build: Only first-level subdirectories with `mk_sub_build_dir`

We have two pairs of functions that are internally used to create the
directory structure the build output directory (normally `build/`):
- The function `mk_sub_build_dir` is intended to create only the first
  level subdirectory under the build output directory for a library.
  `sub_build_dir` is a companion function that returns the full path
  of such a first-level subdirectory for a given library name.
- The function `mk_sub_libbuild_dir` is intended to create further
  subdirectories under a library build directory that was created by
  `mk_sub_build_dir`. This function allows multiple levels of
  subdirectories (example: to create an header include folder:
  'include/uk/bits').
  `sub_libbuild_dir` is the companion function that returns the
  full path of such a library subdirectory.

This commit corrects the implementation so that this behavior is
enforced.

Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Robert Kuban <robert.kuban@opensynergy.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #938
support/build/Makefile.rules