firmware/br-ext-chip-ingenic/board/t40/kernel/patches/00000-arch_mips_Makefile.patch

29 lines
1.3 KiB
Diff

diff -drupN a/arch/mips/Makefile b/arch/mips/Makefile
--- a/arch/mips/Makefile 2017-10-21 18:09:07.000000000 +0300
+++ b/arch/mips/Makefile 2022-06-09 05:02:26.000000000 +0300
@@ -342,6 +342,16 @@ $(boot-y): $(vmlinux-32) FORCE
$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) \
$(bootvars-y) arch/mips/boot/$@
+# zImage
+zImage: $(vmlinux-32) FORCE
+ $(Q)$(MAKE) $(build)=arch/mips/boot/zcompressed VMLINUX=$(vmlinux-32) $@
+ @cp arch/mips/boot/zcompressed/$@ arch/mips/boot/compressed/$@
+ @echo ' Kernel: arch/mips/boot/compressed/$@ is ready'
+xImage: $(vmlinux-32) FORCE
+ $(Q)$(MAKE) $(build)=arch/mips/boot/zcompressed VMLINUX=$(vmlinux-32) $@
+ @cp arch/mips/boot/zcompressed/$@ arch/mips/boot/compressed/$@
+ @echo ' Kernel: arch/mips/boot/compressed/$@ is ready'
+
ifdef CONFIG_SYS_SUPPORTS_ZBOOT
# boot/compressed
$(bootz-y): $(vmlinux-32) FORCE
@@ -409,6 +419,7 @@ define archhelp
echo ' uImage.gz - U-Boot image (gzip)'
echo ' uImage.lzma - U-Boot image (lzma)'
echo ' uImage.lzo - U-Boot image (lzo)'
+ echo ' xImage - U-Boot-spl xImage (ingenic spl boot)'
echo ' dtbs - Device-tree blobs for enabled boards'
echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
echo