pass extra parameters to xz to compress initrd.cpio for Linux kernel (issue #127)

This commit is contained in:
Trammell Hudson 2017-03-17 15:17:14 -04:00 committed by Trammell Hudson
parent 356e9307a2
commit 54cded7f59
Failed to extract signature
4 changed files with 11 additions and 6 deletions

View File

@ -280,10 +280,15 @@ initrd.intermediate: initrd.cpio
# populate the coreboot initrd image from the one we built.
# 4.4 doesn't allow this, but building from head does.
$(call outputs,linux): initrd.cpio
#$(call outputs,coreboot): $(build)/$(coreboot_dir)/initrd.cpio.xz
#$(call outputs,linux): initrd.cpio
coreboot.intermediate: $(build)/$(coreboot_dir)/initrd.cpio.xz
$(build)/$(coreboot_dir)/initrd.cpio.xz: initrd.cpio
xz --extreme < "$<" > "$@"
xz \
--check=crc32 \
--lzma2=dict=1MiB \
--extreme \
< "$<" \
> "$@"
# hack for the coreboot to find the linux kernel
$(build)/$(coreboot_dir)/bzImage: $(call outputs,linux)

View File

@ -521,7 +521,7 @@ CONFIG_PAYLOAD_FILE="./bzImage"
CONFIG_PAYLOAD_OPTIONS=""
# CONFIG_PXE is not set
CONFIG_LINUX_COMMAND_LINE="acpi=off console=ttyS0 console=tty"
CONFIG_LINUX_INITRD=""
CONFIG_LINUX_INITRD="./initrd.cpio.xz"
# CONFIG_PAYLOAD_IS_FLAT_BINARY is not set
#

View File

@ -597,7 +597,7 @@ CONFIG_PAYLOAD_FILE="./bzImage"
CONFIG_PAYLOAD_OPTIONS=""
# CONFIG_PXE is not set
CONFIG_LINUX_COMMAND_LINE=""
CONFIG_LINUX_INITRD=""
CONFIG_LINUX_INITRD="./initrd.cpio.xz"
# CONFIG_PAYLOAD_IS_FLAT_BINARY is not set
#

View File

@ -143,7 +143,7 @@ CONFIG_ARCH_SUPPORTS_INT128=y
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="../../initrd.cpio"
CONFIG_INITRAMFS_SOURCE=""
CONFIG_INITRAMFS_ROOT_UID=0
CONFIG_INITRAMFS_ROOT_GID=0
# CONFIG_RD_GZIP is not set