Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 8013679

Browse files
author
Howard Chen
committed
Fix the incorrect prebuilts-info in aosp-master-boot
Bug: 241050793 Test: \ development/gsi/build_with_kernel/repack_kernels.sh aarch64 \ development/gsi/build_with_kernel/update_kernel_prebuilts_510_arm64.sh \ development/gsi/build_with_kernel/update_kernel_prebuilts_515_arm64.sh \ build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=gki_arm64 TARGET_BUILD_VARIANT=user DIST_DIR=%dist_dir% droid dist \ development/gsi/build_with_kernel/kernel_info_to_dist.sh aarch64 Change-Id: I6ee2e6a5dfbc4e3105bfcdf7191dd306edb59b4c
1 parent e32fd5b commit 8013679

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

gsi/build_with_kernel/repack_kernels_common.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ function prepare_kernel_image()
8686
#EOF
8787
printf "generate ${dist_root}/prebuilt-info.txt with kernel\n"
8888
cksum "${out_root}/kernel-${kernel_version}${postfix}"
89-
strings "${out_root}/kernel-${kernel_version}${postfix}" |grep -E "Linux version [0-9]\." | sed -e 's/Linux version.*-ab//'| cut -f1 -d ' ' > "${dist_root}/prebuilt-info.txt"
89+
local t="${out_root}/prebuilt-info.txt"
90+
echo "{" > $t
91+
echo -n " \"kernel-build-id\": " >> $t
92+
strings "${out_root}/kernel-${kernel_version}${postfix}" |grep -E "Linux version [0-9]\." | sed -e 's/Linux version.*-ab//'| cut -f1 -d ' ' >> $t
93+
echo "}" >> $t
94+
cp $t ${dist_root}/prebuilt-info.txt
9095

9196
}
9297

@@ -131,7 +136,8 @@ function update_kernel_prebuilts_with_artifact
131136
kernel-${kernel_version}-lz4-allsyms \
132137
kernel-${kernel_version} \
133138
kernel-${kernel_version}-gz \
134-
kernel-${kernel_version}-lz4"
139+
kernel-${kernel_version}-lz4 \
140+
prebuilt-info.txt"
135141
printf "%20s\n --> %20s\n" "${out_root}" "${prebuilts_dir}"
136142
for f in ${list}; do
137143
echo \

0 commit comments

Comments
 (0)