Skip to content

Commit 594174d

Browse files
committed
parisc: switch to gzip-compressed vmlinuz kernel
The latest PA-RISC Boot Loader (palo) allows loading of gzip compressed vmlinuz kernels. So let's now switch to build a vmlinuz file when we build a palo boot image. PALO version 1.9 (or higher) is required for this which is available at git://git.kernel.org/pub/scm/linux/kernel/git/deller/palo.git Signed-off-by: Helge Deller <deller@gmx.de> Cc: <stable@vger.kernel.org> # 3.10
1 parent a83f58b commit 594174d

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

‎arch/parisc/Makefile‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# Mike Shaver, Helge Deller and Martin K. Petersen
1818
#
1919

20+
KBUILD_IMAGE := vmlinuz
21+
2022
KBUILD_DEFCONFIG := default_defconfig
2123

2224
NM = sh $(srctree)/arch/parisc/nm
@@ -92,7 +94,7 @@ PALOCONF := $(shell if [ -f $(src)/palo.conf ]; then echo $(src)/palo.conf; \
9294
else echo $(obj)/palo.conf; \
9395
fi)
9496

95-
palo: vmlinux
97+
palo: vmlinuz
9698
@if test ! -x "$(PALO)"; then \
9799
echo 'ERROR: Please install palo first (apt-get install palo)';\
98100
echo 'or build it from source and install it somewhere in your $$PATH';\
@@ -107,10 +109,14 @@ palo: vmlinux
107109
fi
108110
$(PALO) -f $(PALOCONF)
109111

110-
# Shorthands for known targets not supported by parisc, use vmlinux as default
111-
Image zImage bzImage: vmlinux
112+
# Shorthands for known targets not supported by parisc, use vmlinux/vmlinuz as default
113+
Image: vmlinux
114+
zImage bzImage: vmlinuz
115+
116+
vmlinuz: vmlinux
117+
@gzip -cf -9 $< > $@
112118

113-
install: vmlinux
119+
install: vmlinuz
114120
sh $(src)/arch/parisc/install.sh \
115121
$(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"
116122

@@ -119,6 +125,7 @@ MRPROPER_FILES += palo.conf
119125

120126
define archhelp
121127
@echo '* vmlinux - Uncompressed kernel image (./vmlinux)'
128+
@echo ' vmlinuz - Compressed kernel image (./vmlinuz)'
122129
@echo ' palo - Bootable image (./lifimage)'
123130
@echo ' install - Install kernel using'
124131
@echo ' (your) ~/bin/$(INSTALLKERNEL) or'

‎arch/parisc/defpalo.conf‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
# Most people using 'make palo' want a bootable file, usable for
55
# network or tape booting for example.
66
--init-tape=lifimage
7-
--recoverykernel=vmlinux
7+
--recoverykernel=vmlinuz
88

99
########## Pick your ROOT here! ##########
1010
# You need at least one 'root='!
1111
#
1212
# If you want a root ramdisk, use the next 2 lines
1313
# (Edit the ramdisk image name!!!!)
1414
--ramdisk=ram-disk-image-file
15-
--commandline=0/vmlinux HOME=/ root=/dev/ram initrd=0/ramdisk
15+
--commandline=0/vmlinuz HOME=/ root=/dev/ram initrd=0/ramdisk panic_timeout=60 panic=-1
1616

1717
# If you want NFS root, use the following command line (Edit the HOSTNAME!!!)
18-
#--commandline=0/vmlinux HOME=/ root=/dev/nfs nfsroot=HOSTNAME ip=bootp
18+
#--commandline=0/vmlinuz HOME=/ root=/dev/nfs nfsroot=HOSTNAME ip=bootp
1919

2020
# If you have root on a disk partition, use this (Edit the partition name!!!)
21-
#--commandline=0/vmlinux HOME=/ root=/dev/sda1
21+
#--commandline=0/vmlinuz HOME=/ root=/dev/sda1

‎arch/parisc/install.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
2626

2727
# Default install
2828

29-
if [ -f $4/vmlinux ]; then
30-
mv $4/vmlinux $4/vmlinux.old
29+
if [ -f $4/vmlinuz ]; then
30+
mv $4/vmlinuz $4/vmlinuz.old
3131
fi
3232

3333
if [ -f $4/System.map ]; then
3434
mv $4/System.map $4/System.old
3535
fi
3636

37-
cat $2 > $4/vmlinux
37+
cat $2 > $4/vmlinuz
3838
cp $3 $4/System.map

0 commit comments

Comments
 (0)