Skip to content

Commit ce8233c

Browse files
authored
Update build-kernel-a12.yml
1 parent ecc9b81 commit ce8233c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build-kernel-a12.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,24 +177,24 @@ jobs:
177177
178178
unzip gki-kernel.zip && rm gki-kernel.zip
179179
echo 'Unpack prebuilt boot.img'
180-
UNPACKBOOTIMG --boot_img="./boot-5.10.img"
180+
$UNPACKBOOTIMG --boot_img="./boot-5.10.img"
181181
182182
echo 'Building Image.gz'
183183
gzip -n -k -f -9 Image >Image.gz
184184
185185
echo 'Building boot.img'
186-
MKBOOTIMG --header_version 4 --kernel Image --output boot.img --ramdisk out/ramdisk --os_version 12.0.0 --os_patch_level "${DATE}"
187-
AVBTOOL add_hash_footer --partition_name boot --partition_size $((64 * 1024 * 1024)) --image boot.img --algorithm SHA256_RSA2048 --key ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
186+
$MKBOOTIMG --header_version 4 --kernel Image --output boot.img --ramdisk out/ramdisk --os_version 12.0.0 --os_patch_level "${DATE}"
187+
$AVBTOOL add_hash_footer --partition_name boot --partition_size $((64 * 1024 * 1024)) --image boot.img --algorithm SHA256_RSA2048 --key ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
188188
cp ./boot.img ../../../${ANDROID_VERSION}-${KERNEL_VERSION}.${SUB_LEVEL}_${DATE}-boot.img
189189
190190
echo 'Building boot-gz.img'
191-
MKBOOTIMG --header_version 4 --kernel Image.gz --output boot-gz.img --ramdisk out/ramdisk --os_version 12.0.0 --os_patch_level "${DATE}"
192-
AVBTOOL add_hash_footer --partition_name boot --partition_size $((64 * 1024 * 1024)) --image boot-gz.img --algorithm SHA256_RSA2048 --key ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
191+
$MKBOOTIMG --header_version 4 --kernel Image.gz --output boot-gz.img --ramdisk out/ramdisk --os_version 12.0.0 --os_patch_level "${DATE}"
192+
$AVBTOOL add_hash_footer --partition_name boot --partition_size $((64 * 1024 * 1024)) --image boot-gz.img --algorithm SHA256_RSA2048 --key ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
193193
cp ./boot-gz.img ../../../${ANDROID_VERSION}-${KERNEL_VERSION}.${SUB_LEVEL}_${DATE}-boot-gz.img
194194
195195
echo 'Building boot-lz4.img'
196-
MKBOOTIMG --header_version 4 --kernel Image.lz4 --output boot-lz4.img --ramdisk out/ramdisk --os_version 12.0.0 --os_patch_level "${DATE}"
197-
AVBTOOL add_hash_footer --partition_name boot --partition_size $((64 * 1024 * 1024)) --image boot-lz4.img --algorithm SHA256_RSA2048 --key ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
196+
$MKBOOTIMG --header_version 4 --kernel Image.lz4 --output boot-lz4.img --ramdisk out/ramdisk --os_version 12.0.0 --os_patch_level "${DATE}"
197+
$AVBTOOL add_hash_footer --partition_name boot --partition_size $((64 * 1024 * 1024)) --image boot-lz4.img --algorithm SHA256_RSA2048 --key ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
198198
cp ./boot-lz4.img ../../../${ANDROID_VERSION}-${KERNEL_VERSION}.${SUB_LEVEL}_${DATE}-boot-lz4.img
199199
cd ..
200200

0 commit comments

Comments
 (0)