Skip to contentSkip to conversation

parisc: Allow building uncompressed Linux kernel

PATCH New [email protected] 1 participant 1 message Oct 17, 2023 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: Allow building uncompressed Linux kernel

From: Helge Deller <[email protected]>

Add HAVE_KERNEL_UNCOMPRESSED flag and fix build in boot directory.

---
 arch/parisc/Kconfig       | 1 +
 arch/parisc/boot/Makefile | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/parisc/Kconfig +1 -0
index a15ab147af2e..9288c39dbf39 100644
@@ -25,6 +25,7 @@ config PARISC
 	select INIT_ALL_POSSIBLE
 	select BUG
 	select BUILDTIME_TABLE_SORT
+	select HAVE_KERNEL_UNCOMPRESSED
 	select HAVE_PCI
 	select HAVE_PERF_EVENTS
 	select HAVE_KERNEL_BZIP2
arch/parisc/boot/Makefile +1 -1
index b873ee4720ca..657f967240ee 100644
@@ -10,7 +10,7 @@ subdir- := compressed
 $(obj)/image: vmlinux FORCE
 	$(call if_changed,objcopy)
 
-$(obj)/bzImage: $(obj)/compressed/vmlinux FORCE
+$(obj)/bzImage: $(if $(CONFIG_KERNEL_UNCOMPRESSED),$(objtree)/vmlinux,$(obj)/compressed/vmlinux) FORCE
 	$(call if_changed,objcopy)
 
 $(obj)/compressed/vmlinux: FORCE
Signature · 1 line
2.41.0