commit | 22344e760f49041a79a5b81339ff75716fee5651 | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Queru <jbq@google.com> | Mon Feb 22 10:52:59 2010 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Feb 22 10:52:59 2010 -0800 |
tree | 9628d8f5832c043f2c4df6ab1d7604505bd23dbe | |
parent | 1af09dea7c5d25c806935975da1697af52b5af57 [diff] | |
parent | 28a846d013fc89c9b7e480e0610895ac6b119fab [diff] |
Merge "Allow optional product inheritance"
diff --git a/core/product.mk b/core/product.mk index 5417242..eca98ed 100644 --- a/core/product.mk +++ b/core/product.mk
@@ -101,6 +101,14 @@ $(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 #