summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/