aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-02-26 22:37:01 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2016-02-27 17:05:30 +0000
commit1f9d5fd385e9f3ba5d86dc3657a28fe5ae993ec9 (patch)
treeb10b661f182f2287eaefd0252f6aa3099ee3dcb6
parentb966063fde10cdfc644838c5464abb6da7051013 (diff)
downloadlinaro-android-build-tools-1f9d5fd385e9f3ba5d86dc3657a28fe5ae993ec9.tar.gz
build-android: robust method to find all dtbs
We don't always build boottarball to look in that location for dtb. This method will find dtbs built or prebuilt dtb used in the build Change-Id: I455f51a95a6eb0d6bc3eaddcda91663f2cc5f0f0 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--build-scripts/build-android5
1 files changed, 2 insertions, 3 deletions
diff --git a/build-scripts/build-android b/build-scripts/build-android
index 2a7ebf9..fc28276 100644
--- a/build-scripts/build-android
+++ b/build-scripts/build-android
@@ -252,13 +252,12 @@ android_ver=`grep "ro\.build\.version\.release" out/target/product/${TARGET_OUT_
toolchain=`echo ${ANDROID_TOOLCHAIN}|awk -F'/' '{print $(NF-1)}'`
build_arch=`echo ${toolchain} | cut -d"-" -f1`
compiler=`$(find ${ANDROID_TOOLCHAIN} -name "*-gcc"|head -n1) --version | head -n1`
-cd out/target/product/${TARGET_OUT_DIR}/boot/
+dtbs=`find out -iname *.dtb | rev | cut -d"/" -f1 | rev | sort | uniq`
dtbfs=""
-for f in *.dtb;
+for f in $dtbs;
do
dtbfs="\"$f\", $dtbfs"
done
-cd -
dtb="[${dtbfs%,*}]"
cat > out/build_config.json <<EOF
{