[eclass] sabayon-kernel: force gzip compression on initramfs

This workaround a bug inside splash_geninitramfs which corrupts the
whole initramfs if xz is selected by genkernel
This commit is contained in:
Fabio Erculiani
2012-05-24 15:51:09 +02:00
parent 779d1e5844
commit c04534d38d
+7
View File
@@ -451,6 +451,13 @@ _kernel_src_compile() {
K_GENKERNEL_ARGS+=" --kernel-target=uImage --kernel-binary=arch/arm/boot/uImage"
fi
# Workaround bug in splash_geninitramfs corrupting the initramfs
# if xz compression is used (newer genkernel >3.4.24)
local support_comp=$(genkernel --help | grep compress-initramfs-type)
if [ -n "${support_comp}" ]; then
GKARGS+=" --compress-initramfs-type=gzip"
fi
unset LDFLAGS
DEFAULT_KERNEL_SOURCE="${S}" CMD_KERNEL_DIR="${S}" genkernel ${GKARGS} ${K_GENKERNEL_ARGS} \
--kerneldir="${S}" \