Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+18 -11
+11 -4
arch/parisc/Makefile
··· 17 17 # Mike Shaver, Helge Deller and Martin K. Petersen 18 18 # 19 19 20 + KBUILD_IMAGE := vmlinuz 21 + 20 22 KBUILD_DEFCONFIG := default_defconfig 21 23 22 24 NM = sh $(srctree)/arch/parisc/nm ··· 94 92 else echo $(obj)/palo.conf; \ 95 93 fi) 96 94 97 - palo: vmlinux 95 + palo: vmlinuz 98 96 @if test ! -x "$(PALO)"; then \ 99 97 echo 'ERROR: Please install palo first (apt-get install palo)';\ 100 98 echo 'or build it from source and install it somewhere in your $$PATH';\ ··· 109 107 fi 110 108 $(PALO) -f $(PALOCONF) 111 109 112 - # Shorthands for known targets not supported by parisc, use vmlinux as default 113 - Image zImage bzImage: vmlinux 110 + # Shorthands for known targets not supported by parisc, use vmlinux/vmlinuz as default 111 + Image: vmlinux 112 + zImage bzImage: vmlinuz 114 113 115 - install: vmlinux 114 + vmlinuz: vmlinux 115 + @gzip -cf -9 $< > $@ 116 + 117 + install: vmlinuz 116 118 sh $(src)/arch/parisc/install.sh \ 117 119 $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)" 118 120 ··· 125 119 126 120 define archhelp 127 121 @echo '* vmlinux - Uncompressed kernel image (./vmlinux)' 122 + @echo ' vmlinuz - Compressed kernel image (./vmlinuz)' 128 123 @echo ' palo - Bootable image (./lifimage)' 129 124 @echo ' install - Install kernel using' 130 125 @echo ' (your) ~/bin/$(INSTALLKERNEL) or'
+4 -4
arch/parisc/defpalo.conf
··· 4 4 # Most people using 'make palo' want a bootable file, usable for 5 5 # network or tape booting for example. 6 6 --init-tape=lifimage 7 - --recoverykernel=vmlinux 7 + --recoverykernel=vmlinuz 8 8 9 9 ########## Pick your ROOT here! ########## 10 10 # You need at least one 'root='! ··· 12 12 # If you want a root ramdisk, use the next 2 lines 13 13 # (Edit the ramdisk image name!!!!) 14 14 --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 16 16 17 17 # 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 19 19 20 20 # 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
+3 -3
arch/parisc/install.sh
··· 26 26 27 27 # Default install 28 28 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 31 31 fi 32 32 33 33 if [ -f $4/System.map ]; then 34 34 mv $4/System.map $4/System.old 35 35 fi 36 36 37 - cat $2 > $4/vmlinux 37 + cat $2 > $4/vmlinuz 38 38 cp $3 $4/System.map