Skip to content

Commit b076f8d

Browse files
roxellnuclearcat
authored andcommitted
runtime: fastboot: gunzip compressed kernel before mkbootimg
mkbootimg expects an uncompressed Image file. When tuxmake is used as build backend the kernel is Image.gz instead of Image. Add a gunzip step before mkbootimg when the kernel type ends with .gz. Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 parent 728bc5c commit b076f8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/runtime/boot/fastboot.jinja2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
docker:
4646
image: ghcr.io/mwasilew/docker-mkbootimage:master
4747
steps:
48+
{%- if node.data.kernel_type.endswith('.gz') %}
49+
- gunzip Image.gz
50+
{%- endif %}
4851
- mkbootimg --header_version 2 --kernel Image --dtb {{ dtb }} --cmdline "console=ttyMSM0,115200n8 earlycon qcom_geni_serial.con_enabled=1 mem_sleep_default=s2idle mitigations=auto video=efifb:off" --ramdisk {{ ramdisk_name }} --output boot.img
4952
to: downloads
5053

0 commit comments

Comments
 (0)