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)