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 <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/207839 Reviewed-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
cf2b889637
commit
6f1de0e7fd
3 changed files with 10 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue