coreboot build (might) work; need to do a test from clean while online

This commit is contained in:
Trammell Hudson 2016-08-02 21:49:22 -04:00
parent 3fde9759f3
commit 62c544ea96
Failed to extract signature
3 changed files with 21 additions and 1 deletions

View File

@ -12,6 +12,7 @@ include modules/tpmtotp
include modules/mbedtls
include modules/busybox
include modules/linux
include modules/coreboot
include modules/coreboot-blobs
all: $(modules)

View File

@ -550,7 +550,7 @@ CONFIG_GENERATE_SMBIOS_TABLES=y
# CONFIG_PAYLOAD_UBOOT is not set
CONFIG_PAYLOAD_LINUX=y
# CONFIG_PAYLOAD_TIANOCORE is not set
CONFIG_PAYLOAD_FILE="bzImage"
CONFIG_PAYLOAD_FILE="../linux-4.6.4/arch/x86/boot/bzImage"
CONFIG_PAYLOAD_OPTIONS=""
CONFIG_LINUX_COMMAND_LINE=""
CONFIG_LINUX_INITRD=""

19
modules/coreboot Normal file
View File

@ -0,0 +1,19 @@
modules += coreboot
coreboot_version := 4.4
coreboot_dir := coreboot-$(coreboot_version)
coreboot_tar := coreboot-$(coreboot_version).tar.xz
coreboot_url := https://www.coreboot.org/releases/$(coreboot_tar)
coreboot_hash := ccfa3ea4e6b4a6ff3e4f1a8dc72d61f794af25bf0e73640e54b0b04733cc50a5
coreboot_configure := make oldconfig
coreboot_output := buld/coreboot.rom
# The coreboot-blobs must be unpacked before we can build coreboot
coreboot_depends := coreboot-blobs linux initrd
# hack to force a build dependency on the cross compiler
$(build)/$(coreboot_dir)/.configured: $(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/iasl
$(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/iasl:
echo '******* Building gcc (this might take a while) ******'
time make -C "$(build)/$(coreboot_dir)" crossgcc