2017-10-18 17:56:32 +00:00
|
|
|
# Configuration for a Winterfell OCP node
|
2018-02-13 20:47:31 +00:00
|
|
|
# and it uses LinuxBoot, not coreboot.
|
2018-02-05 16:27:45 +00:00
|
|
|
CONFIG_LINUXBOOT=y
|
|
|
|
CONFIG_LINUXBOOT_ROM=blobs/winterfell.rom
|
2018-02-05 20:59:26 +00:00
|
|
|
CONFIG_LINUX_CONFIG=config/linux-linuxboot.config
|
2018-02-05 16:27:45 +00:00
|
|
|
|
2018-02-13 22:46:48 +00:00
|
|
|
# If you want to build with the go-based u-root instead of Heads
|
2018-02-13 20:47:31 +00:00
|
|
|
CONFIG_UROOT=y
|
|
|
|
|
2018-02-13 22:46:48 +00:00
|
|
|
ifeq "$(CONFIG_UROOT)" "y"
|
|
|
|
# The busybox will likely be redundant and can be trimmed for space.
|
|
|
|
CONFIG_BUSYBOX=n
|
|
|
|
CONFIG_ZLIB=n
|
|
|
|
CONFIG_MUSL=n
|
|
|
|
else
|
|
|
|
# These don't fit if u-root is turned on
|
2018-02-08 00:05:56 +00:00
|
|
|
CONFIG_CRYPTSETUP=y
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_FLASHROM=y
|
2018-02-13 22:46:48 +00:00
|
|
|
CONFIG_GPG=y
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_KEXEC=y
|
|
|
|
CONFIG_UTIL_LINUX=y
|
2018-02-08 00:05:56 +00:00
|
|
|
CONFIG_LVM2=y
|
2018-02-13 22:46:48 +00:00
|
|
|
CONFIG_MBEDTLS=y
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_PCIUTILS=y
|
|
|
|
CONFIG_POPT=y
|
2018-02-08 00:05:56 +00:00
|
|
|
#CONFIG_QRENCODE=y
|
|
|
|
#CONFIG_TPMTOTP=y
|
2018-02-13 22:46:48 +00:00
|
|
|
CONFIG_XEN=y
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_DROPBEAR=y
|
2018-02-13 22:46:48 +00:00
|
|
|
endif
|
2017-10-18 17:56:32 +00:00
|
|
|
|
2018-02-13 20:47:31 +00:00
|
|
|
# Linux modules will still be linked into the u-root tree
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_LINUX_USB=y
|
2018-02-02 21:27:13 +00:00
|
|
|
CONFIG_LINUX_MLX4=y
|
2018-02-08 00:05:56 +00:00
|
|
|
CONFIG_LINUX_ATA=y
|
|
|
|
CONFIG_LINUX_AHCI=y
|
|
|
|
CONFIG_LINUX_E1000E=y
|
2017-10-18 17:56:32 +00:00
|
|
|
|
|
|
|
CONFIG_BOOTSCRIPT=/bin/generic-init
|
|
|
|
|
|
|
|
CONFIG_BOOT_REQ_HASH=n
|
|
|
|
CONFIG_BOOT_REQ_ROLLBACK=n
|
|
|
|
CONFIG_BOOT_DEV="/dev/sda1"
|
|
|
|
CONFIG_USB_BOOT_DEV="/dev/sdb1"
|
2018-02-08 00:05:56 +00:00
|
|
|
|
|
|
|
$(build)/$(BOARD)/linuxboot.rom: linuxboot.intermediate
|
|
|
|
|
|
|
|
# No 0x on these since the flasher doesn't handle that
|
|
|
|
dxe_offset := 860000
|
|
|
|
dxe_size := 6a0000
|
|
|
|
flash-dxe: $(build)/$(BOARD)/linuxboot.rom
|
|
|
|
( echo u$(dxe_offset) $(dxe_size) ; \
|
|
|
|
pv $(build)/linuxboot-git/build/$(BOARD)/dxe.vol \
|
|
|
|
) > /dev/ttyACM0
|
|
|
|
|
|
|
|
flash: $(build)/$(BOARD)/linuxboot.rom
|
|
|
|
( echo u0 1000000 ; \
|
|
|
|
pv $< \
|
|
|
|
) > /dev/ttyACM0
|