Skip to content

Commit 38e9744

Browse files
committed
sys-kernel/coreos-modules: Enable EFI_ZBOOT for arm64
Arm64 now supports booting a compressed kernel through EFI. This is hidden behind the EFI_ZBOOT Kconfig option. The EFI_ZBOOT is only enabled in the arm64 config because it is not available for x86. X86 relies on an architecture specific compression mechanism on EFI. The KERNEL_ZSTD Kconfig option applies to both arches so move it to commonconfig. The other change required is that the kernel image name changes. In my local build it looks like the kernel size goes down from 59MB to 43MB. Signed-off-by: Jeremi Piotrowski <[email protected]>
1 parent a4d6da3 commit 38e9744

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

sdk_container/src/third_party/coreos-overlay/eclass/coreos-kernel.eclass

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ config_update() {
100100
kernel_path() {
101101
local kernel_arch=$(tc-arch-kernel)
102102
case "${kernel_arch}" in
103-
arm64) echo build/arch/arm64/boot/Image;;
103+
arm64) echo build/arch/arm64/boot/vmlinuz.efi;;
104104
x86) echo build/arch/x86/boot/bzImage;;
105105
*) die "Unsupported kernel arch '${kernel_arch}'";;
106106
esac

sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/amd64_defconfig-6.6

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ CONFIG_ISCSI_IBFT_FIND=y
7171
CONFIG_ITCO_VENDOR_SUPPORT=y
7272
CONFIG_ITCO_WDT=m
7373
CONFIG_IGC=m
74-
CONFIG_KERNEL_ZSTD=y
7574
CONFIG_KEXEC_FILE=y
7675
CONFIG_KPROBES_ON_FTRACE=y
7776
CONFIG_KVM=m

sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/arm64_defconfig-6.6

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ CONFIG_CRYPTO_SHA1_ARM64_CE=y
3232
CONFIG_CRYPTO_SHA2_ARM64_CE=y
3333
# CONFIG_DEBUG_PREEMPT is not set
3434
CONFIG_DM_DEBUG=y
35+
CONFIG_EFI_ZBOOT=y
3536
CONFIG_FB_ARMCLCD=y
3637
CONFIG_GPIO_PL061=y
3738
CONFIG_GPIO_XGENE=y

sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/commonconfig-6.6

+1
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ CONFIG_JME=m
408408
CONFIG_JOLIET=y
409409
CONFIG_JUMP_LABEL=y
410410
CONFIG_KALLSYMS_ALL=y
411+
CONFIG_KERNEL_ZSTD=y
411412
CONFIG_KEXEC=y
412413
CONFIG_KEYS=y
413414
CONFIG_KEY_DH_OPERATIONS=y

0 commit comments

Comments
 (0)