Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de925c04 authored by Michael Bestas's avatar Michael Bestas Committed by Michael Bestas
Browse files

Source lineage specific envsetup

Change-Id: I39d3e711a6beab47e3284919a9a4fef15b0f40b9
parent 0a7f3d70
Loading
Loading
Loading
Loading
+11 −3
Original line number Original line Diff line number Diff line
@@ -35,6 +35,12 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
- pathmod:    Get the directory containing a module.
- pathmod:    Get the directory containing a module.
- refreshmod: Refresh list of modules for allmod/gomod.
- refreshmod: Refresh list of modules for allmod/gomod.


EOF

    __print_lineage_functions_help

cat <<EOF

Environment options:
Environment options:
- SANITIZE_HOST: Set to 'address' to use ASAN for all host modules.
- SANITIZE_HOST: Set to 'address' to use ASAN for all host modules.
- ANDROID_QUIET_BUILD: set to 'true' to display only the essential messages.
- ANDROID_QUIET_BUILD: set to 'true' to display only the essential messages.
@@ -44,7 +50,7 @@ EOF
    local T=$(gettop)
    local T=$(gettop)
    local A=""
    local A=""
    local i
    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"
      A="$A $i"
    done
    done
    echo $A
    echo $A
@@ -55,8 +61,8 @@ function build_build_var_cache()
{
{
    local T=$(gettop)
    local T=$(gettop)
    # Grep out the variable names from the script.
    # 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_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 | tr '()' '  ' | awk '{for(i=1;i<=NF;i++) if($i~/get_abs_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.
    # 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 \
    build_dicts_script=`\builtin cd $T; build/soong/soong_ui.bash --dumpvars-mode \
                        --vars="${cached_vars[*]}" \
                        --vars="${cached_vars[*]}" \
@@ -1603,3 +1609,5 @@ source_vendorsetup
addcompletions
addcompletions


export ANDROID_BUILD_TOP=$(gettop)
export ANDROID_BUILD_TOP=$(gettop)

. $ANDROID_BUILD_TOP/vendor/lineage/build/envsetup.sh