2
0

900-powerpc-bootwrapper-force-gzip-as-mkimage-s-compress.patch 1.2 KB

1234567891011121314151617181920212223242526272829
  1. From c9395ad54e2cabb87d408becc37566f3d8248933 Mon Sep 17 00:00:00 2001
  2. From: Christian Lamparter <[email protected]>
  3. Date: Sun, 1 Dec 2019 02:08:23 +0100
  4. Subject: [PATCH] powerpc: bootwrapper: force gzip as mkimage's compression
  5. method
  6. Due to CONFIG_KERNEL_XZ symbol, the bootwrapper code tries to
  7. instruct the mkimage to use the xz compression, which isn't
  8. supported. This patch forces the gzip compression, which is
  9. supported and doesn't matter because the generated uImage for
  10. the apm821xx target gets ignored as the OpenWrt toolchain will
  11. do separate U-Boot kernel images for each device individually.
  12. Signed-off-by: Christian Lamparter <[email protected]>
  13. ---
  14. arch/powerpc/boot/Makefile | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. --- a/arch/powerpc/boot/Makefile
  17. +++ b/arch/powerpc/boot/Makefile
  18. @@ -274,7 +274,7 @@ compressor-$(CONFIG_KERNEL_LZO) := lzo
  19. # args (to if_changed): 1 = (this rule), 2 = platform, 3 = dts 4=dtb 5=initrd
  20. quiet_cmd_wrap = WRAP $@
  21. - cmd_wrap =$(CONFIG_SHELL) $(wrapper) -Z $(compressor-y) -c -o $@ -p $2 \
  22. + cmd_wrap =$(CONFIG_SHELL) $(wrapper) -Z gzip -c -o $@ -p $2 \
  23. $(CROSSWRAP) $(if $3, -s $3)$(if $4, -d $4)$(if $5, -i $5) \
  24. vmlinux