mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 13:33:10 +00:00
7cbcdd8ed7
- Add additional requirements to linux config - Add additional CONFIG_MOBILE_TETHERING=y to all maximized board configs - Fix issue under network-recovery-init to NTP sync against NTP server pool - Extend network-recovery-init to first try NTP sync against DNS server returned by DHCP answer - Remove network-recovery-init earlytty and tty0 redirection (console should be setuped properly by init in all cases) - If CONFIG_MOBILE_TETHERING=y added to board config and network-recovery-init called, wait to user input on instructions and warning 30 secs before proceeding (non-blocking) - Machines having STATIC_IP under board config won't benefit of autoatic NTP sync Since network-recovery-init can only be called from recovery shell now, and recovery shell can be guarded by GPG auth, this is PoC code to be used to complement TOTP being out of sync TODO(Future PR): - Refactor into functions and reuse into TOTP/HOTP being out of sync automatically. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# Configuration for a ThinkPad W541.
|
|
CONFIG_COREBOOT_CONFIG=config/coreboot-w541.config
|
|
# TODO: Make a ThinkPad-common Linux config file.
|
|
CONFIG_LINUX_CONFIG=config/linux-w541.config
|
|
|
|
export CONFIG_COREBOOT=y
|
|
export CONFIG_COREBOOT_VERSION=4.19
|
|
export CONFIG_LINUX_VERSION=5.10.5
|
|
|
|
CONFIG_CRYPTSETUP2=y
|
|
CONFIG_FLASHROM=y
|
|
CONFIG_FLASHTOOLS=y
|
|
CONFIG_GPG2=y
|
|
CONFIG_KEXEC=y
|
|
CONFIG_UTIL_LINUX=y
|
|
CONFIG_LVM2=y
|
|
CONFIG_MBEDTLS=y
|
|
CONFIG_PCIUTILS=y
|
|
CONFIG_POPT=y
|
|
CONFIG_QRENCODE=y
|
|
CONFIG_TPMTOTP=y
|
|
|
|
#platform locking finalization (PR0)
|
|
CONFIG_IO386=y
|
|
export CONFIG_FINALIZE_PLATFORM_LOCKING_PRESKYLAKE=y
|
|
|
|
|
|
# Dependencies for a graphical menu. Enable CONFIG_SLANG and CONFIG_NEWT instead
|
|
# for a console-based menu.
|
|
CONFIG_CAIRO=y
|
|
CONFIG_FBWHIPTAIL=y
|
|
|
|
CONFIG_LINUX_USB=y
|
|
CONFIG_MOBILE_TETHERING=y
|
|
|
|
export CONFIG_TPM=y
|
|
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
|
export CONFIG_BOOT_REQ_HASH=n
|
|
export CONFIG_BOOT_REQ_ROLLBACK=n
|
|
export CONFIG_BOOT_DEV="/dev/sda1"
|
|
export CONFIG_BOARD_NAME="ThinkPad W541-maximized"
|
|
export CONFIG_FLASHROM_OPTIONS="-p internal"
|
|
|
|
# Make the Coreboot build depend on the following 3rd party blobs:
|
|
$(build)/coreboot-$(CONFIG_COREBOOT_VERSION)/$(BOARD)/.build: \
|
|
$(pwd)/blobs/haswell/mrc.bin $(pwd)/blobs/w541/me.bin
|
|
|
|
$(pwd)/blobs/haswell/mrc.bin:
|
|
COREBOOT_DIR="$(build)/$(coreboot_base_dir)" \
|
|
$(pwd)/blobs/haswell/obtain-mrc $(pwd)/blobs/haswell
|
|
|
|
$(pwd)/blobs/w541/me.bin:
|
|
COREBOOT_DIR="$(build)/$(coreboot_base_dir)" \
|
|
$(pwd)/blobs/w541/download-clean-me $(pwd)/blobs/w541
|
|
|
|
# Generate split 4MB top / 8MB bottom ROMs
|
|
BOARD_TARGETS += split_8mb4mb
|