aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-02-26 11:49:11 +0530
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-02-26 15:33:59 +0000
commitb966063fde10cdfc644838c5464abb6da7051013 (patch)
tree41f71c5a212e6fd1b344faa4916536dddd95e14d
parentab18e055839d4b8e773b198a167a6fca2d52a78e (diff)
downloadlinaro-android-build-tools-b966063fde10cdfc644838c5464abb6da7051013.tar.gz
fix build_config.json creation
Only check for line starting with TARGET_KERNEL_SOURCE or else it will corrupt the output with multiple entries wherever the TARGET_KERNEL_SOURCE is referenced Change-Id: Ic4fc3ee9142b70655598671c21dabf2a01e62428 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--build-scripts/build-android2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-scripts/build-android b/build-scripts/build-android
index ff9110c..2a7ebf9 100644
--- a/build-scripts/build-android
+++ b/build-scripts/build-android
@@ -238,7 +238,7 @@ if [ -n "$PUBLISH_DESCRIPTIONS" ]; then
fi
# Create build_config.json as a build artifact
-target_kernel_src=`grep 'TARGET_KERNEL_SOURCE' device/linaro/${TARGET_PRODUCT}/BoardConfig.mk|cut -d'=' -f2|tr -d '[[:space:]]'`
+target_kernel_src=`grep '^TARGET_KERNEL_SOURCE' device/linaro/${TARGET_PRODUCT}/BoardConfig.mk|cut -d'=' -f2|tr -d '[[:space:]]'`
if [ -n "${target_kernel_src}" ]; then
kernel_proj_str=`grep "path=\"${target_kernel_src}\"" out/pinned-manifest.xml`
kernel_rev=`echo ${kernel_proj_str} | grep -o "revision[^ ]*" | cut -d"\"" -f2`