mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 13:07:58 +00:00
bd7a945bbb
* config/coreboot-*: drop CONFIG_LOCALVERSION Will be injected as part of the build using $(HEADS_GIT_VERSION) Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> * modules/coreboot: inject $(HEADS_GIT_VERSION) as CONFIG_LOCALVERSION Needed for fwupd to handle board updates Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> * modules/coreboot: override SMBIOS ProductName with $(BOARD) Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> * Use $(BOARD)-$(HEADS_GIT_VERSION) as basis for output filename makes builds uniquely identifiable based on board and version. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
32 lines
964 B
Plaintext
32 lines
964 B
Plaintext
# Minimal configuration for a x230 to support flashrom, USB and networking
|
|
BOARD=x230.flash
|
|
|
|
export CONFIG_COREBOOT=y
|
|
export CONFIG_COREBOOT_VERSION=4.8.1
|
|
export CONFIG_LINUX_VERSION=4.14.62
|
|
|
|
CONFIG_FLASHROM=y
|
|
#CONFIG_GPG=y
|
|
CONFIG_FLASHTOOLS=y
|
|
CONFIG_PCIUTILS=y
|
|
#CONFIG_MBEDTLS=y
|
|
#CONFIG_QRENCODE=y
|
|
#CONFIG_TPMTOTP=y
|
|
#CONFIG_DROPBEAR=y
|
|
|
|
CONFIG_LINUX_CONFIG=config/linux-x230-flash.config
|
|
CONFIG_LINUX_USB=y
|
|
CONFIG_LINUX_E1000E=y
|
|
|
|
export CONFIG_BOOTSCRIPT=/bin/x230-flash.init
|
|
export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal --ifd --image bios"
|
|
|
|
# This board is "special" in that we only want the top 4 MB of the ROM
|
|
# for flashing into SPI flash 1 on the mainboard. This is enough to
|
|
# allow the board to boot into a minimal Heads and read the full
|
|
# ROM from an external USB media.
|
|
all: $(build)/$(BOARD)/$(BOARD).rom
|
|
$(build)/$(BOARD)/$(BOARD).rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
|
dd of=$@ if=$< bs=65536 count=64 skip=128
|
|
sha256sum $@
|