From 4290ffe91c9948ed5f52559179b350e375dc2f8b Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Wed, 20 Jan 2021 15:29:53 -0800 Subject: Add avbtool This is needed to sign the boot.img generated by the build.sh script. Bug: 177244312 Signed-off-by: Will McVicker Change-Id: I949be23336bd3785c8643989ebc6bc6392782eef --- build-prebuilts.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'build-prebuilts.sh') 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/ -- cgit v1.2.3