Skip to content

Commit

Permalink
Makefile: Allow external Makefile.build
Browse files Browse the repository at this point in the history
The current method of building libraries is to iterate over
each library's source files and invoke a file type specific
build rule. For libgo this is insufficient as we have to do
more complex operations for dependency resolution
before starting the actual build. This commit allows libraries
to supply an own `Makefile.build` that enables custom
build mechanics.

Co-authored-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Signed-off-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Signed-off-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Radu Nichita <radunichita99@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: unikraft#1005
  • Loading branch information
2 people authored and unikraft-bot committed Aug 7, 2023
1 parent dbd3856 commit db20b80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions support/build/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ $(call verbose_info,Warning: '$(L)' has no sources or object files$(comma) ignor
)
endif

$(foreach _M,$(wildcard $(addsuffix Makefile.build,\
$(CONFIG_UK_BASE)/lib/*/ $(CONFIG_UK_BASE)/plat/*/ \
$(addsuffix /,$(ELIB_DIR)) $(APP_DIR)/)), \
$(eval $(call verbose_include,$(_M))) \
)

#################################################
#
Expand Down

0 comments on commit db20b80

Please sign in to comment.