diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2016-02-26 22:37:01 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2016-02-26 23:39:17 +0530 |
commit | e8f857e369f58991835ad191cfae2435d32885ca (patch) | |
tree | b10b661f182f2287eaefd0252f6aa3099ee3dcb6 | |
parent | 54b16da399219bca6ddad9c6d5840fcd2c0dcaa1 (diff) |
build-android: robust method to find all dtbstest-json-fix
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-android | 5 |
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 { |