Skip to content

Commit af21b01

Browse files
committed
parisc: Reintroduce option to gzip-compress the kernel
By adding the feature to build the kernel as self-extracting executeable, the possibility to simply compress the kernel with gzip was lost. This patch now reintroduces this possibilty again and leaves it up to the user to decide how the kernel should be built. The palo bootloader is able to natively load both formats. Signed-off-by: Helge Deller <[email protected]>
1 parent 606f95e commit af21b01

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

arch/parisc/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,18 @@ config PARISC_PAGE_SIZE_64KB
257257

258258
endchoice
259259

260+
config PARISC_SELF_EXTRACT
261+
bool "Build kernel as self-extracting executable"
262+
default y
263+
help
264+
Say Y if you want to build the parisc kernel as a kind of
265+
self-extracting executable.
266+
267+
If you say N here, the kernel will be compressed with gzip
268+
which can be loaded by the palo bootloader directly too.
269+
270+
If you don't know what to do here, say Y.
271+
260272
config SMP
261273
bool "Symmetric multi-processing support"
262274
---help---

arch/parisc/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,13 @@ Image: vmlinux
129129
bzImage: vmlinux
130130
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
131131

132+
ifdef CONFIG_PARISC_SELF_EXTRACT
132133
vmlinuz: bzImage
133134
$(OBJCOPY) $(boot)/bzImage $@
135+
else
136+
vmlinuz: vmlinux
137+
@gzip -cf -9 $< > $@
138+
endif
134139

135140
install:
136141
$(CONFIG_SHELL) $(src)/arch/parisc/install.sh \

0 commit comments

Comments
 (0)