Skip to content

Commit 4589e5d

Browse files
committed
copy the bzImage into the coreboot build directory
1 parent c01435a commit 4589e5d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,9 @@ initrd.cpio: $(initrd_bins) initrd_libs
145145
# hack for the linux kernel to depend on the initrd image
146146
# this will change once coreboot can link in the initrd separately
147147
$(call outputs,linux): initrd.cpio
148+
149+
# hack for the coreboot to find the linux kernel
150+
$(build)/$(coreboot_dir)/bzImage: $(call outputs,linux)
151+
cmp --quiet "$$@" "$$^" || \
152+
cp -a "$$^" "$$@"
153+
$(call outputs,corebot): $(build)/$(coreboot_dir)/bzImage

config/coreboot.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ CONFIG_GENERATE_SMBIOS_TABLES=y
550550
# CONFIG_PAYLOAD_UBOOT is not set
551551
CONFIG_PAYLOAD_LINUX=y
552552
# CONFIG_PAYLOAD_TIANOCORE is not set
553-
CONFIG_PAYLOAD_FILE="../linux-4.6.4/arch/x86/boot/bzImage"
553+
CONFIG_PAYLOAD_FILE="./bzImage"
554554
CONFIG_PAYLOAD_OPTIONS=""
555555
CONFIG_LINUX_COMMAND_LINE=""
556556
CONFIG_LINUX_INITRD=""

0 commit comments

Comments
 (0)