Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4
Source: linux
Version: 6.12.22-1
Severity: normal
User: debian-superh@lists.debian.org
Usertags: sh4
X-Debbugs-Cc: debian-superh@lists.debian.org
Hello,
src:linux currently fails to build from source on sh4 due to the kernel
image compression set to XZ (CONFIG_KERNEL_XZ=y). I tried setting the
compression to GZIP (CONFIG_KERNEL_GZIP=y) in debian/config/sh4/config
and disabling CONFIG_KERNEL_XZ with the following configuration:
##
## file: init/Kconfig
##
## choice: Kernel compression mode
#. Decompression is done by the bootloader, so we need to be
#. conservative here.
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_ZSTD is not set
## end choice
## choice: Compiler optimization level
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
## end choice
But for some reason that still resulted in CONFIG_KERNEL_XZ=y ending up
in the .config file of the sh7751lr kernel image.
However, I can enter the schroot after the failed build, edit the .config
files in /build/reproducible-path/linux-6.12.22/debian/build/build_sh4_none_sh7751r
and manually set CONFIG_KERNEL_GZIP=y and # CONFIG_KERNEL_XZ is not set which
makes the kernel build succeed when just running "make".
Thus, could you modify the configuration on sh4 such that the kernel is
compressed with GZIP instead of XZ (and ZSTD) by default so that the
kernel package builds again on sh4?
Using XZ doesn't make sense on sh4 with its small image sizes anyway.
Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: