From f147fe68c432c887ef702bfb8c69225bcede6a3d Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Wed, 18 Apr 2018 08:34:17 +0200 Subject: [PATCH] [hppa] Switch to self-decompressing kernel --- debian/changelog | 3 +++ debian/config/hppa/defines | 5 ++-- .../debian/parisc-fix-make-target.patch | 25 +++++++++++++++++++ debian/patches/series | 1 + 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 debian/patches/debian/parisc-fix-make-target.patch diff --git a/debian/changelog b/debian/changelog index 8df9bcf31..d2ebd539c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -27,6 +27,9 @@ linux (4.16-1~exp2) UNRELEASED; urgency=medium - Add package dependency of mtd-modules to jffs2-modules. - Add package dependency of lzo-modules to squashfs-modules. + [ Helge Deller ] + * [hppa] Switch to self-decompressing kernel to save disk space in /boot + -- Ben Hutchings Sun, 08 Apr 2018 19:03:49 +0100 linux (4.16-1~exp1) experimental; urgency=medium diff --git a/debian/config/hppa/defines b/debian/config/hppa/defines index f79b6cee5..69bd3885a 100644 --- a/debian/config/hppa/defines +++ b/debian/config/hppa/defines @@ -3,11 +3,12 @@ flavours: parisc parisc-smp parisc64-smp kernel-arch: parisc [build] -image-file: vmlinux +image-file: arch/parisc/boot/bzImage +debug-info: true [image] suggests: palo -install-stem: vmlinux +install-stem: vmlinuz [parisc_description] hardware: 32-bit PA-RISC diff --git a/debian/patches/debian/parisc-fix-make-target.patch b/debian/patches/debian/parisc-fix-make-target.patch new file mode 100644 index 000000000..1f2f827de --- /dev/null +++ b/debian/patches/debian/parisc-fix-make-target.patch @@ -0,0 +1,25 @@ +Subject: parisc: Make bzImage default build target +From: Helge Deller +Date: Wed, 18 Apr 2018 07:49:19 +0200 +Forwarded: https://patchwork.kernel.org/patch/10347405/ + +Debian uses "make all" to build the Linux kernel, thus to be able to use +the self-decompressing kernel as default debian kernel we need to make +bzImage the default build target. + +Signed-off-by: Helge Deller + +diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile +index e2364ff59180..34ac503e28ad 100644 +--- a/arch/parisc/Makefile ++++ b/arch/parisc/Makefile +@@ -123,6 +123,9 @@ INSTALL_TARGETS = zinstall install + + PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS) + ++# Default kernel to build ++all: bzImage ++ + zImage: vmlinuz + Image: vmlinux + diff --git a/debian/patches/series b/debian/patches/series index b2d9a8283..3c4cd1cf9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -12,6 +12,7 @@ debian/modpost-symbol-prefix.patch debian/tools-perf-version.patch debian/tools-perf-install.patch debian/wireless-add-debian-wireless-regdb-certificates.patch +debian/parisc-fix-make-target.patch # Fixes/improvements to firmware loading features/all/drivers-media-dvb-usb-af9005-request_firmware.patch