2018-03-08 09:33:04 +00:00
|
|
|
# Minimal configuration for a x230 to support flashrom, USB and networking
|
|
|
|
BOARD=x230.flash
|
|
|
|
|
2018-03-12 01:27:19 +00:00
|
|
|
export CONFIG_COREBOOT=y
|
2020-07-10 13:44:01 +00:00
|
|
|
export CONFIG_COREBOOT_VERSION=4.8.1
|
2020-08-20 23:26:48 +00:00
|
|
|
export CONFIG_LINUX_VERSION=4.14.62
|
2020-07-10 13:44:01 +00:00
|
|
|
|
2018-05-04 18:09:20 +00:00
|
|
|
CONFIG_FLASHROM=y
|
2019-01-10 15:06:40 +00:00
|
|
|
#CONFIG_GPG=y
|
2018-03-08 09:33:04 +00:00
|
|
|
CONFIG_FLASHTOOLS=y
|
|
|
|
CONFIG_PCIUTILS=y
|
2018-05-07 20:45:47 +00:00
|
|
|
#CONFIG_MBEDTLS=y
|
|
|
|
#CONFIG_QRENCODE=y
|
|
|
|
#CONFIG_TPMTOTP=y
|
2018-07-27 14:04:53 +00:00
|
|
|
#CONFIG_DROPBEAR=y
|
2018-03-08 09:33:04 +00:00
|
|
|
|
2018-05-07 20:45:47 +00:00
|
|
|
CONFIG_LINUX_CONFIG=config/linux-x230-flash.config
|
2018-03-08 09:33:04 +00:00
|
|
|
CONFIG_LINUX_USB=y
|
|
|
|
CONFIG_LINUX_E1000E=y
|
|
|
|
|
|
|
|
export CONFIG_BOOTSCRIPT=/bin/x230-flash.init
|
2019-07-31 02:46:34 +00:00
|
|
|
export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal --ifd --image bios"
|
2018-04-18 20:41:22 +00:00
|
|
|
|
|
|
|
# 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.
|
2021-01-04 17:19:09 +00:00
|
|
|
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
|
|
|
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
|
|
|
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
|
|
|
|
@sha256sum $@
|
|
|
|
#We remove the original ROM, leaving only the 4mb top one
|
|
|
|
rm $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|