From effa9f63e36cc2b11f420d758d26066b0e07ced4 Mon Sep 17 00:00:00 2001 From: AK Unterkontrolle Date: Tue, 4 Feb 2025 11:21:53 +0100 Subject: [PATCH] Add board config for T480 Signed-off-by: Thierry Laurion --- boards/t480-maximized/t480-maximized.config | 65 +++++++++++++++++++ .../t480-hotp-maximized.config | 7 ++ 2 files changed, 72 insertions(+) create mode 100644 boards/t480-maximized/t480-maximized.config create mode 100644 boards/t480p-hotp-maximized/t480-hotp-maximized.config diff --git a/boards/t480-maximized/t480-maximized.config b/boards/t480-maximized/t480-maximized.config new file mode 100644 index 00000000..b987ab9f --- /dev/null +++ b/boards/t480-maximized/t480-maximized.config @@ -0,0 +1,65 @@ +# Configuration for a ThinkPad T480. +CONFIG_COREBOOT_CONFIG=config/coreboot-t480.config +# TODO: Make a ThinkPad-common Linux config file. +CONFIG_LINUX_CONFIG=config/linux-t480.config + +export CONFIG_COREBOOT=y +export CONFIG_COREBOOT_VERSION=t480 +export CONFIG_LINUX_VERSION=6.1.8 + +CONFIG_CRYPTSETUP2=y +CONFIG_FLASHPROG=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) +# Disable for first try, enable when rest works +#CONFIG_IO386=y +#export CONFIG_FINALIZE_PLATFORM_LOCKING=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 +#Enable DEBUG output, debug output probably a good idea for first tests +export CONFIG_DEBUG_OUTPUT=y +export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=n +#Enable TPM2 pcap output under /tmp +export CONFIG_TPM2_CAPTURE_PCAP=n +#Enable quiet mode: technical information logged under /tmp/debug.log, not quiet for first test +export CONFIG_QUIET_MODE=n +export CONFIG_BOOTSCRIPT=/bin/gui-init +export CONFIG_BOOT_REQ_HASH=n +export CONFIG_BOOT_REQ_ROLLBACK=n +export CONFIG_BOARD_NAME="ThinkPad T480" +export CONFIG_FLASH_OPTIONS="flashprog --progress --programmer internal" + +# COPIED FROM T440p! NEEDS ADAPTION!!!! +# 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/t440p/me.bin + +$(pwd)/blobs/haswell/mrc.bin: + COREBOOT_DIR="$(build)/$(coreboot_base_dir)" \ + $(pwd)/blobs/haswell/obtain-mrc $(pwd)/blobs/haswell + +$(pwd)/blobs/t440p/me.bin: + COREBOOT_DIR="$(build)/$(coreboot_base_dir)" \ + $(pwd)/blobs/t440p/download-clean-me $(pwd)/blobs/t440p + +# Generate split 4MB top / 8MB bottom ROMs +#BOARD_TARGETS += split_8mb4mb Is there an other command for not splitting stuff at the end or is this the default option anyways? diff --git a/boards/t480p-hotp-maximized/t480-hotp-maximized.config b/boards/t480p-hotp-maximized/t480-hotp-maximized.config new file mode 100644 index 00000000..e48ee2fe --- /dev/null +++ b/boards/t480p-hotp-maximized/t480-hotp-maximized.config @@ -0,0 +1,7 @@ +# Inherit the rest from the base T440p config. +include $(pwd)/boards/t480-maximized/t480-maximized.config + +CONFIG_HOTPKEY=y +export CONFIG_AUTO_BOOT_TIMEOUT=5 + +export CONFIG_BOARD_NAME="ThinkPad T480-hotp-maximized"