You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
848 B

#####################################################################
# Use utility find to find product_build.mk in the given subdirs.
# $(BUILD_SUBDIRS): a list of subdirs.
# product_build.mk: the file name to be passed to find as "-name".
# Returns: a list of paths relative to the $(BUILD_SUBDIRS) dir.
#####################################################################
# Print product_package.mk included by package.mk
$(foreach package_mk,$(strip $(PRODUCT_PACKAGE_MK_FILES)),$(info including $(package_mk) ...))
BUILD_SUBDIRS ?= vendor
PRODUCT_BUILD_MK_FILES := $(sort $(patsubst ./%,%, \
$(shell find -L $(BUILD_SUBDIRS) -name product_build.mk -and -not -name ".*") ))
-include $(TARGET_PRODUCT_DIR)/build/build.mk
$(foreach build_mk,$(strip $(PRODUCT_BUILD_MK_FILES)),$(info including $(build_mk) ...)$(eval include $(build_mk)))