From 6f1de0e7fd312c1d6798e65d4b43d586f0994337 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 14 Jul 2014 19:13:07 -0500 Subject: [PATCH] t132: add Kconfig option for MTS microcode directory In order to make sharing of the location of MTS microcode easier provide a Kconfig option that is the path to the files. BUG=chrome-os-partner:30569 BRANCH=None TEST=Built rush coreboot. Change-Id: I36775d0018fc8591d5e77c2943e28a51381713f5 Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/207839 Reviewed-by: Tom Warren Reviewed-by: Furquan Shaikh --- configs/config.rush | 1 + src/soc/nvidia/tegra132/Kconfig | 6 ++++++ src/soc/nvidia/tegra132/Makefile.inc | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/configs/config.rush b/configs/config.rush index 1aa4f109b8..7b9e97dc79 100644 --- a/configs/config.rush +++ b/configs/config.rush @@ -3,3 +3,4 @@ CONFIG_BOARD_GOOGLE_RUSH=y CONFIG_COREBOOT_ROMSIZE_KB_4096=y CONFIG_CONSOLE_SERIAL=y CONFIG_CONSOLE_CBMEM=y +CONFIG_MTS_DIRECTORY="3rdparty/mainboard/google/rush" diff --git a/src/soc/nvidia/tegra132/Kconfig b/src/soc/nvidia/tegra132/Kconfig index d262c2e498..0a50d3e718 100644 --- a/src/soc/nvidia/tegra132/Kconfig +++ b/src/soc/nvidia/tegra132/Kconfig @@ -130,4 +130,10 @@ config CONSOLE_SERIAL_TEGRA132_UART_ADDRESS help Map the UART names to the respective MMIO addres. +config MTS_DIRECTORY + string "Directory where MTS microcode files are located" + default "." + help + Path to directory where MTS microcode files are located. + endif diff --git a/src/soc/nvidia/tegra132/Makefile.inc b/src/soc/nvidia/tegra132/Makefile.inc index fa15119542..c91457495c 100644 --- a/src/soc/nvidia/tegra132/Makefile.inc +++ b/src/soc/nvidia/tegra132/Makefile.inc @@ -78,7 +78,8 @@ $(obj)/generated/bct.bin: $(obj)/generated/bct.cfg BCT_BIN = $(obj)/generated/bct.bin BCT_WRAPPER = $(obj)/generated/bct.wrapper -PREBOOT_MTS_FILE = 3rdparty/mainboard/$(MAINBOARDDIR)/mts_preboot_si +MTS_DIR = $(CONFIG_MTS_DIRECTORY) +PREBOOT_MTS_FILE = $(MTS_DIR)/mts_preboot_si $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BCT_BIN) echo "Version = 1;" > $(BCT_WRAPPER) echo "Redundancy = 1;" >> $(BCT_WRAPPER) @@ -90,7 +91,7 @@ $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BCT_BIN) $(CBOOTIMAGE) $(CBOOTIMAGE_OPTS) $(BCT_WRAPPER) $@ # MTS microcode -MTS_FILE = 3rdparty/mainboard/$(MAINBOARDDIR)/mts_si +MTS_FILE = $(MTS_DIR)/mts_si MTS_FILE_CBFS = mts cbfs-files-y += $(MTS_FILE_CBFS) $(MTS_FILE_CBFS)-file := $(MTS_FILE)