diff --git a/gsi/build_with_kernel/repack_kernels.sh b/gsi/build_with_kernel/repack_kernels.sh index adcfcac88..4d28ea749 100755 --- a/gsi/build_with_kernel/repack_kernels.sh +++ b/gsi/build_with_kernel/repack_kernels.sh @@ -18,6 +18,8 @@ source development/gsi/build_with_kernel/repack_kernels_common.sh set -e +prepare_lz4 + prepare_kernel_image \ "artifacts/common-android13-5_10-kernel_aarch64" \ "5.10" \ diff --git a/gsi/build_with_kernel/repack_kernels_common.sh b/gsi/build_with_kernel/repack_kernels_common.sh index c18e4b345..ebed4715c 100755 --- a/gsi/build_with_kernel/repack_kernels_common.sh +++ b/gsi/build_with_kernel/repack_kernels_common.sh @@ -29,8 +29,17 @@ if [[ -z "${DIST_DIR}" ]]; then fi GZIP="gzip" -LZ4="${WD}/prebuilts/misc/linux-x86/lz4/lz4" +LZ4="${OUT_DIR}/host/linux-x86/bin/lz4" +function prepare_lz4() +{ + if ! [ -f ${LZ4} ]; then + echo "make $LZ4" + cd ${WD} + make lz4 + cd - + fi +} function prepare_kernel_image() {