summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-12-28 11:33:29 +1100
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-01-09 01:13:20 +0000
commit8cd2bcba15c328c124b28fc12cd1b9846633d5d5 (patch)
tree9ae8ab195d09fc43c03aad16976cfd47bd89b6ed /core
parentbb05c8fc87643e7594b53b0fc6a3217745a2b0a3 (diff)
downloadbuild-8cd2bcba15c328c124b28fc12cd1b9846633d5d5.zip
build-8cd2bcba15c328c124b28fc12cd1b9846633d5d5.tar.gz
build-8cd2bcba15c328c124b28fc12cd1b9846633d5d5.tar.bz2
build: support lineage device trees
Change-Id: I087a97e31cab2ccfba16b5378cef429785baf7d0
Diffstat (limited to 'core')
-rw-r--r--core/product_config.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/product_config.mk b/core/product_config.mk
index 89c6810..58b03e9 100644
--- a/core/product_config.mk
+++ b/core/product_config.mk
@@ -181,7 +181,11 @@ include $(BUILD_SYSTEM)/device.mk
# A CM build needs only the CM product makefiles.
ifneq ($(CM_BUILD),)
- all_product_configs := $(shell find device -path "*/$(CM_BUILD)/cm.mk")
+ all_product_configs := $(shell find device -path "*/$(CM_BUILD)/lineage.mk")
+ ifeq ($(all_product_configs),)
+ # Fall back to cm.mk
+ all_product_configs := $(shell find device -path "*/$(CM_BUILD)/cm.mk")
+ endif
else
ifneq ($(strip $(TARGET_BUILD_APPS)),)
# An unbundled app build needs only the core product makefiles.