Allow optional product inheritance
This allows to use a proper $(call inherit-product) across the open-source -> non-open-source boundary in a way that can automatically adapt to whether the non-open-source part is present or not Change-Id: I357721c68362ff8c0f90610850b0368adee68ada
This commit is contained in:
parent
1d89773c1d
commit
28a846d013
1 changed files with 8 additions and 0 deletions
|
@ -101,6 +101,14 @@ define inherit-product
|
|||
$(eval ALL_PRODUCTS := $(sort $(ALL_PRODUCTS) $(word 1,$(_include_stack))))
|
||||
endef
|
||||
|
||||
|
||||
#
|
||||
# Do inherit-product only if $(1) exists
|
||||
#
|
||||
define inherit-product-if-exists
|
||||
$(if $(wildcard $(1)),$(call inherit-product,$(1)),)
|
||||
endef
|
||||
|
||||
#
|
||||
# $(1): product makefile list
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue