2022-02-18 01:20:43 +00:00
|
|
|
# Minimal configuration for a x230 to support flashrom and USB
|
2018-03-08 09:33:04 +00:00
|
|
|
|
2018-03-12 01:27:19 +00:00
|
|
|
export CONFIG_COREBOOT=y
|
2021-07-26 18:02:42 +00:00
|
|
|
export CONFIG_COREBOOT_VERSION=4.13
|
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
|
2022-02-18 01:20:43 +00:00
|
|
|
#CONFIG_FLASHTOOLS=y
|
2018-03-08 09:33:04 +00:00
|
|
|
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
|
2022-02-18 01:20:43 +00:00
|
|
|
#CONFIG_LINUX_E1000E=y
|
2018-03-08 09:33:04 +00:00
|
|
|
|
|
|
|
export CONFIG_BOOTSCRIPT=/bin/x230-flash.init
|
2023-01-31 16:46:32 +00:00
|
|
|
export CONFIG_BOARD_NAME="ThinkPad X230-legacy-flash"
|
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
|
|
|
|
2022-02-18 01:20:43 +00:00
|
|
|
# This board is "special" in that we need a 4MB top SPI flashable ROM.
|
|
|
|
# This is enough to allow the board to boot into a minimal Heads and read the full Legacy
|
2018-04-18 20:41:22 +00:00
|
|
|
# ROM from an external USB media.
|
2022-02-18 01:20:43 +00:00
|
|
|
#
|
|
|
|
# No tools outside of flashrom are provided here as you can see per activated modules above.
|
|
|
|
# Everything Heads is now delegated to the Legacy ROM to be flashed
|
|
|
|
# from xx30-flash ROMs.
|
|
|
|
#
|
|
|
|
# Instructions to mount USB thumb drive and flash legacy 12Mb image will be given on screen
|
|
|
|
# per CONFIG_BOOTSCRIPT script above.
|
|
|
|
#
|
|
|
|
# Below, we just move produced ROM with a name appended with -top.rom for clarity.
|
2021-07-22 22:24:55 +00:00
|
|
|
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
|
|
|
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
|
2022-02-18 01:20:43 +00:00
|
|
|
$(call do,MV 4MB top ROM,$@, mv $< $@)
|
2021-01-04 17:19:09 +00:00
|
|
|
@sha256sum $@
|