Skip to content

Commit 62c544e

Browse files
committed
coreboot build (might) work; need to do a test from clean while online
1 parent 3fde975 commit 62c544e

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ include modules/tpmtotp
1212
include modules/mbedtls
1313
include modules/busybox
1414
include modules/linux
15+
include modules/coreboot
1516
include modules/coreboot-blobs
1617

1718
all: $(modules)

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="bzImage"
553+
CONFIG_PAYLOAD_FILE="../linux-4.6.4/arch/x86/boot/bzImage"
554554
CONFIG_PAYLOAD_OPTIONS=""
555555
CONFIG_LINUX_COMMAND_LINE=""
556556
CONFIG_LINUX_INITRD=""

modules/coreboot

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
modules += coreboot
2+
3+
coreboot_version := 4.4
4+
coreboot_dir := coreboot-$(coreboot_version)
5+
coreboot_tar := coreboot-$(coreboot_version).tar.xz
6+
coreboot_url := https://www.coreboot.org/releases/$(coreboot_tar)
7+
coreboot_hash := ccfa3ea4e6b4a6ff3e4f1a8dc72d61f794af25bf0e73640e54b0b04733cc50a5
8+
9+
coreboot_configure := make oldconfig
10+
coreboot_output := buld/coreboot.rom
11+
12+
# The coreboot-blobs must be unpacked before we can build coreboot
13+
coreboot_depends := coreboot-blobs linux initrd
14+
15+
# hack to force a build dependency on the cross compiler
16+
$(build)/$(coreboot_dir)/.configured: $(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/iasl
17+
$(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/iasl:
18+
echo '******* Building gcc (this might take a while) ******'
19+
time make -C "$(build)/$(coreboot_dir)" crossgcc

0 commit comments

Comments
 (0)