From 62c544ea96839d7c33adcb2a0f6acd24c081160f Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Tue, 2 Aug 2016 21:49:22 -0400 Subject: [PATCH] coreboot build (might) work; need to do a test from clean while online --- Makefile | 1 + config/coreboot.config | 2 +- modules/coreboot | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 modules/coreboot diff --git a/Makefile b/Makefile index 23f988a..8c25411 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/config/coreboot.config b/config/coreboot.config index d9bed6c..44b2cf9 100644 --- a/config/coreboot.config +++ b/config/coreboot.config @@ -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="" diff --git a/modules/coreboot b/modules/coreboot new file mode 100644 index 0000000..dd727a3 --- /dev/null +++ b/modules/coreboot @@ -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