aboutsummaryrefslogtreecommitdiff
path: root/build-scripts
diff options
context:
space:
mode:
authorVishal Bhoj <vishalbhoj@gmail.com>2013-11-11 10:44:11 +0530
committerVishal Bhoj <vishalbhoj@gmail.com>2013-11-11 10:44:11 +0530
commit7b7ddcf71a3925b449baeda30828dc80452b4d65 (patch)
tree5c1bbd4a1fa15fa94a767eb9ec7aea75bb143eaf /build-scripts
parent55e19e6c94770e09e394874c21efe38bbd145221 (diff)
Export TARGET_KERNEL_SOURCE only when provided in build config else it affects the build
Diffstat (limited to 'build-scripts')
-rwxr-xr-xbuild-scripts/create-user-build-script5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script
index 6d2a241..d8bfa94 100755
--- a/build-scripts/create-user-build-script
+++ b/build-scripts/create-user-build-script
@@ -176,7 +176,12 @@ export MANIFEST_REPO=\`echo ${MANIFEST_REPO} | sed 's/\/\/.*-bot@/\/\/'"\${LINAR
export MANIFEST_BRANCH=${MANIFEST_BRANCH}
export MANIFEST_FILENAME=${MANIFEST_FILENAME}
export TARGET_PRODUCT=${TARGET_PRODUCT}
+EOF
+if [ -n "$TARGET_KERNEL_SOURCE" ] ; then
+ cat <<EOF
export TARGET_KERNEL_SOURCE=${TARGET_KERNEL_SOURCE}
+EOF
+ cat <<EOF
export TARGET_SIMULATOR=false
export BUILD_TINY_ANDROID=${BUILD_TINY_ANDROID}
export CPUS=\`grep -c processor /proc/cpuinfo\`