summaryrefslogtreecommitdiff
path: root/build-prebuilts.sh
diff options
context:
space:
mode:
authorWill McVicker <willmcvicker@google.com>2021-01-20 15:29:53 -0800
committerWill McVicker <willmcvicker@google.com>2021-01-20 15:29:53 -0800
commit4290ffe91c9948ed5f52559179b350e375dc2f8b (patch)
treec0662de8f69fd3faf7336f864666b3e27a1e93e8 /build-prebuilts.sh
parentcf86cf9ac34234903ee6068d2b70eb20d1f1c6a8 (diff)
downloadbuild-tools-4290ffe91c9948ed5f52559179b350e375dc2f8b.tar.gz
Add avbtool
This is needed to sign the boot.img generated by the build.sh script. Bug: 177244312 Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: I949be23336bd3785c8643989ebc6bc6392782eef
Diffstat (limited to 'build-prebuilts.sh')
-rwxr-xr-xbuild-prebuilts.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/build-prebuilts.sh b/build-prebuilts.sh
index ab6174b..ad55343 100755
--- a/build-prebuilts.sh
+++ b/build-prebuilts.sh
@@ -25,6 +25,7 @@ EOF
SOONG_BINARIES=(
abidiff
abidw
+ avbtool
blk_alloc_to_base_fs
build_image
build_super_image
@@ -51,8 +52,14 @@ EOF
binaries="${SOONG_BINARIES[@]/#/${SOONG_HOST_OUT}/bin/}"
libraries="${SOONG_LIBRARIES[@]/#/${SOONG_HOST_OUT}/lib64/}"
+ # TODO: When we have a better method of extracting zips from Soong, use that.
+ py3_stdlib_zip="${SOONG_OUT}/.intermediates/external/python/cpython3/Lib/py3-stdlib-zip/gen/py3-stdlib.zip"
+
# Build everything
- build/soong/soong_ui.bash --make-mode --skip-make ${binaries} ${libraries}
+ build/soong/soong_ui.bash --make-mode --skip-make \
+ ${binaries} \
+ ${libraries} \
+ ${py3_stdlib_zip}
# Stage binaries
mkdir -p ${SOONG_OUT}/dist/bin
@@ -73,6 +80,9 @@ EOF
cp -a ${TOP}/external/elfutils/libelf/elf-knowledge.h ${include_dir}/elfutils/
cp -a ${TOP}/external/elfutils/version.h ${include_dir}/elfutils/
+ unzip -q -d ${SOONG_OUT}/dist/py3-stdlib ${py3_stdlib_zip}
+ cp -a ${TOP}/external/python/cpython3/LICENSE ${SOONG_OUT}/dist/py3-stdlib/
+
# Patch dist dir
(
cd ${SOONG_OUT}/dist/