summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorRicardo Cerqueira <github@cerqueira.org>2011-11-25 15:30:36 +0000
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:07:42 -0700
commit119d3bb8667485d3fca648e01cabc7c08bb160b6 (patch)
treed865b722d04b2164f7e2bc941aa65f22a1227c4e /envsetup.sh
parentb25f91401f31f75b752827b15f97f46809063732 (diff)
downloadbuild-119d3bb8667485d3fca648e01cabc7c08bb160b6.zip
build-119d3bb8667485d3fca648e01cabc7c08bb160b6.tar.gz
build-119d3bb8667485d3fca648e01cabc7c08bb160b6.tar.bz2
build: Preliminary support for CM product builds
If building a cm_* product, skip crawling the filesystem for AndroidProduct makefiles (and, of course, parsing their contents) and aim directly for the device/cm/<product> device configuration Change-Id: I2a5e70dda973a6fcdbba0d5e26b35b99d3f1aea2 Change how we search for CM makefiles. build: Fix fastpath code for CM_BUILD * We need to adjust to the new validations Change-Id: I9066d4f437beb9597027ee6bbb52504b5e7e84c5
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index d126ebc..ae1e4c5 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -72,6 +72,14 @@ function check_product()
echo "Couldn't locate the top of the tree. Try setting TOP." >&2
return
fi
+
+ if (echo -n $1 | grep -q -e "^cm_") ; then
+ CM_BUILD=$(echo -n $1 | sed -e 's/^cm_//g')
+ else
+ CM_BUILD=
+ fi
+ export CM_BUILD
+
TARGET_PRODUCT=$1 \
TARGET_BUILD_VARIANT= \
TARGET_BUILD_TYPE= \