2016-08-03 01:49:22 +00:00
|
|
|
modules += coreboot
|
|
|
|
|
2016-08-14 20:03:11 +00:00
|
|
|
coreboot_version := git
|
2016-08-03 01:49:22 +00:00
|
|
|
coreboot_dir := coreboot-$(coreboot_version)
|
2016-08-14 20:03:11 +00:00
|
|
|
#coreboot_tar := coreboot-$(coreboot_version).tar.xz
|
2016-08-19 15:31:07 +00:00
|
|
|
#coreboot_tar := coreboot-4.4.tar.xz
|
|
|
|
#coreboot_url := https://www.coreboot.org/releases/$(coreboot_tar)
|
|
|
|
#coreboot_hash := ccfa3ea4e6b4a6ff3e4f1a8dc72d61f794af25bf0e73640e54b0b04733cc50a5
|
|
|
|
|
|
|
|
coreboot_repo := https://github.com/osresearch/coreboot
|
2016-08-03 01:49:22 +00:00
|
|
|
|
2016-11-23 17:11:08 +00:00
|
|
|
# Coreboot builds are specialized on a per-target basis.
|
|
|
|
# The builds are done in a per-target subdirectory
|
2016-11-29 16:19:48 +00:00
|
|
|
#coreboot_config := coreboot-$(TARGET).config
|
2016-11-23 17:11:08 +00:00
|
|
|
|
|
|
|
coreboot_configure := \
|
2016-11-29 16:19:48 +00:00
|
|
|
make oldconfig obj=./$(BOARD) DOTCONFIG=../../config/coreboot-$(BOARD).config
|
2016-11-23 17:11:08 +00:00
|
|
|
|
|
|
|
coreboot_target := \
|
2016-11-29 16:19:48 +00:00
|
|
|
obj=./$(BOARD) DOTCONFIG=../../config/coreboot-$(BOARD).config -j 8
|
2016-11-23 17:11:08 +00:00
|
|
|
|
2016-11-29 16:19:48 +00:00
|
|
|
coreboot_output := $(BOARD)/coreboot.rom
|
2016-11-23 17:11:08 +00:00
|
|
|
|
2016-08-03 01:49:22 +00:00
|
|
|
|
|
|
|
# hack to force a build dependency on the cross compiler
|
2016-11-23 17:11:08 +00:00
|
|
|
$(build)/$(coreboot_dir)/.configured: $(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/i386-elf-gcc
|
|
|
|
$(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/i386-elf-gcc:
|
|
|
|
echo '******* Building crossgcc-i386 (this might take a while) ******'
|
2016-08-14 20:03:11 +00:00
|
|
|
time make -C "$(build)/$(coreboot_dir)" crossgcc-i386
|
2016-11-23 17:11:08 +00:00
|
|
|
#echo '******* Building crossgcc-arm (this might take a while) ******'
|
|
|
|
#time make -C "$(build)/$(coreboot_dir)" crossgcc-arm
|
2016-08-14 20:03:11 +00:00
|
|
|
|
|
|
|
# The coreboot-blobs must be unpacked before we can build coreboot
|
|
|
|
# if we are using a tar file; git checkout will clone the submodule.
|
|
|
|
coreboot_depends := linux initrd
|
|
|
|
|
|
|
|
#coreboot_depends += coreboot_blobs
|
|
|
|
#modules += coreboot-blobs
|
|
|
|
#
|
|
|
|
#coreboot-blobs_version := 4.4
|
|
|
|
#coreboot-blobs_tar := coreboot-blobs-$(coreboot-blobs_version).tar.xz
|
|
|
|
#coreboot-blobs_dir := coreboot-$(coreboot-blobs_version)/3rdparty/blobs
|
|
|
|
#coreboot-blobs_url := https://www.coreboot.org/releases/$(coreboot-blobs_tar)
|
|
|
|
#coreboot-blobs_hash := 43b993915c0f46a77ee7ddaa2dbe47581f399510632c62f2558dff931358d8ab
|
|
|
|
#
|
|
|
|
## there is nothing to build for the blobs, this should be
|
|
|
|
## made easier to make happen
|
|
|
|
#coreboot-blobs_output := .built
|
|
|
|
#coreboot-blobs_configure := echo -e 'all:\n\ttouch .built' > Makefile
|
|
|
|
|