aboutsummaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorYueyao Zhu <yueyao@google.com>2017-04-07 21:11:54 (GMT)
committerYueyao Zhu <yueyao@google.com>2017-04-07 21:18:07 (GMT)
commitefc786a82b1c42b4959f9a0e6be466a2fdcd9eef (patch)
tree9a2795efef0ca695d66e698f0b46e239a6b55160 /envsetup.sh
parente9571e429ec4c395cf6bb40a279db9718f13c92b (diff)
downloadandroid_build-efc786a82b1c42b4959f9a0e6be466a2fdcd9eef.zip
android_build-efc786a82b1c42b4959f9a0e6be466a2fdcd9eef.tar.gz
android_build-efc786a82b1c42b4959f9a0e6be466a2fdcd9eef.tar.bz2
Add dtc and libufdt prebuilts to dev path
Test: . build/envsetup.sh and lunch Bug: 37099957 Change-Id: I26e0b78a18ea4b3acdfb4cc64309ace327d29933
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index ec6c960..55f4983 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -225,6 +225,16 @@ function setpaths()
fi
export ANDROID_DEV_SCRIPTS=$T/development/scripts:$T/prebuilts/devtools/tools:$T/external/selinux/prebuilts/bin
+
+ # add kernel specific binaries
+ case $(uname -s) in
+ Linux)
+ export ANDROID_DEV_SCRIPTS=$ANDROID_DEV_SCRIPTS:$T/prebuilts/misc/linux-x86/dtc:$T/prebuilts/misc/linux-x86/libufdt
+ ;;
+ *)
+ ;;
+ esac
+
export ANDROID_BUILD_PATHS=$(get_build_var ANDROID_BUILD_PATHS):$ANDROID_TOOLCHAIN:$ANDROID_TOOLCHAIN_2ND_ARCH:$ANDROID_DEV_SCRIPTS:
# If prebuilts/android-emulator/<system>/ exists, prepend it to our PATH