summaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
authorLuca Stefani <luca020400@lineageos.org>2017-08-17 21:21:23 +0200
committeralk3pInjection <webmaster@raspii.tech>2022-01-12 09:10:05 +0800
commitf70ed6938b521b9a821d0f87fbcbe0f412f581ba (patch)
treed0bd6e1f49c1e9c5ae7807b5997ed5849ab15825 /envsetup.sh
parent653a2915102a22ff3c4a7dc7690062aa042949c8 (diff)
Add Project ICE build support
Squashed also with the following changes: Author: Simon Shields <simon@lineageos.org> Date: Fri Mar 2 12:55:47 2018 +1100 build: Unconditionally use AOSPA pathmap. even if we're not building a lineage target, we need to use the lineage pathmap to make things like recovery and ril happy Change-Id: I974c30ad10d4ff5b7805c3df9c22010f1e002bf1 Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Tue Jan 22 15:50:52 2019 +0100 Don't export BUILD_NUMBER in envsetup. * The value is meant to be set only before running an /official/ build * This allows us to execute consecutive make commands without running kati for every invocation Change-Id: Ifa94b839f30c7260009c8a3c91c202b50e28022e Change-Id: I6ca3c6a68aa5ea78649b96ac86fb65ff7f489736
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 1e3e598605..579d6a7631 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -153,6 +153,13 @@ 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 "^ice_") ; then
+ ICE_BUILD=$(echo -n $1 | sed -e 's/^ice_//g')
+ else
+ ICE_BUILD=
+ fi
+ export ICE_BUILD
+
TARGET_PRODUCT=$1 \
TARGET_BUILD_VARIANT= \
TARGET_BUILD_TYPE= \
@@ -702,6 +709,8 @@ function lunch()
return 1
fi
+ check_product $product
+
TARGET_PRODUCT=$product \
TARGET_BUILD_VARIANT=$variant \
TARGET_PLATFORM_VERSION=$version \