aboutsummaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-08-25 21:37:02 (GMT)
committerRashed Abdel-Tawab <rashed@linux.com>2018-08-11 00:20:45 (GMT)
commit8cdfd30d1da0dac500db665343112d4b15e85add (patch)
tree027c6894c46ef0c3c0960418e377a93b9626f9a6 /envsetup.sh
parentd26a4bbb2b244623ce8df7b6da63a7962280327f (diff)
downloadandroid_build-8cdfd30d1da0dac500db665343112d4b15e85add.zip
android_build-8cdfd30d1da0dac500db665343112d4b15e85add.tar.gz
android_build-8cdfd30d1da0dac500db665343112d4b15e85add.tar.bz2
Source lineage specific envsetuprefs/changes/29/222729/5
Change-Id: I39d3e711a6beab47e3284919a9a4fef15b0f40b9
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/envsetup.sh b/envsetup.sh
index da6b72f..5fa936f 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -27,6 +27,12 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
- sgrep: Greps on all local source files.
- godir: Go to the directory containing a file.
+EOF
+
+ __print_lineage_functions_help
+
+cat <<EOF
+
Environment options:
- SANITIZE_HOST: Set to 'true' to use ASAN for all host modules. Note that
ASAN_OPTIONS=detect_leaks=0 will be set by default until the
@@ -37,7 +43,7 @@ EOF
local T=$(gettop)
local A=""
local i
- for i in `cat $T/build/envsetup.sh | sed -n "/^[[:blank:]]*function /s/function \([a-z_]*\).*/\1/p" | sort | uniq`; do
+ for i in `cat $T/build/envsetup.sh $T/vendor/lineage/build/envsetup.sh | sed -n "/^[[:blank:]]*function /s/function \([a-z_]*\).*/\1/p" | sort | uniq`; do
A="$A $i"
done
echo $A
@@ -48,8 +54,8 @@ function build_build_var_cache()
{
local T=$(gettop)
# Grep out the variable names from the script.
- cached_vars=`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_build_var/) print $(i+1)}' | sort -u | tr '\n' ' '`
- cached_abs_vars=`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_abs_build_var/) print $(i+1)}' | sort -u | tr '\n' ' '`
+ cached_vars=`cat $T/build/envsetup.sh $T/vendor/lineage/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_build_var/) print $(i+1)}' | sort -u | tr '\n' ' '`
+ cached_abs_vars=`cat $T/build/envsetup.sh $T/vendor/lineage/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/get_abs_build_var/) print $(i+1)}' | sort -u | tr '\n' ' '`
# Call the build system to dump the "<val>=<value>" pairs as a shell script.
build_dicts_script=`\builtin cd $T; build/soong/soong_ui.bash --dumpvars-mode \
--vars="$cached_vars" \
@@ -1680,3 +1686,5 @@ unset f
addcompletions
export ANDROID_BUILD_TOP=$(gettop)
+
+. $ANDROID_BUILD_TOP/vendor/lineage/build/envsetup.sh