##################################################################### # Use utility find to find product_package.mk in the given subdirs. # $(PACKAGE_SUBDIRS): a list of subdirs. # product_package.mk: the file name to be passed to find as "-name". # Returns: a list of paths relative to the $(PACKAGE_SUBDIRS) dir. ##################################################################### PACKAGE_SUBDIRS ?= vendor PRODUCT_PACKAGE_MK_FILES := $(sort $(patsubst ./%,%, \ $(shell find -L $(PACKAGE_SUBDIRS) -name product_package.mk -and -not -name ".*") )) -include $(SOC_PLATFORM_PATH)/development/build/security/certificate.mk $(foreach package_mk,$(strip $(PRODUCT_PACKAGE_MK_FILES)),$(call inherit-product, $(package_mk)))