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. Original-Change-Id: I36775d0018fc8591d5e77c2943e28a51381713f5 Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/207839 Original-Reviewed-by: Tom Warren <twarren@nvidia.com> Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> (cherry picked from commit 6f1de0e7fd312c1d6798e65d4b43d586f0994337) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I660cb9d8bd13c765c89b54b0807b5b3ee836e807 Reviewed-on: http://review.coreboot.org/8614 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
df324f5a10
commit
c13fc15a45
|
@ -87,4 +87,10 @@ config CONSOLE_PRERAM_BUFFER_BASE
|
|||
hex "memory address of the CBMEM console buffer"
|
||||
default 0x40004020
|
||||
|
||||
config MTS_DIRECTORY
|
||||
string "Directory where MTS microcode files are located"
|
||||
default "3rdparty/cpu/nvidia/tegra132/current/prod"
|
||||
help
|
||||
Path to directory where MTS microcode files are located.
|
||||
|
||||
endif
|
||||
|
|
|
@ -74,7 +74,8 @@ $(obj)/generated/bct.bin: $(obj)/generated/bct.cfg $(CBOOTIMAGE)
|
|||
|
||||
BCT_BIN = $(obj)/generated/bct.bin
|
||||
BCT_WRAPPER = $(obj)/generated/bct.wrapper
|
||||
PREBOOT_MTS_FILE = 3rdparty/cpu/nvidia/tegra132/current/prod/preboot_cr.bin
|
||||
MTS_DIR = $(CONFIG_MTS_DIRECTORY)
|
||||
PREBOOT_MTS_FILE = $(MTS_DIR)/preboot_cr.bin
|
||||
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BCT_BIN) $(CBOOTIMAGE)
|
||||
echo "Version = 1;" > $(BCT_WRAPPER)
|
||||
echo "Redundancy = 1;" >> $(BCT_WRAPPER)
|
||||
|
@ -84,3 +85,10 @@ $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BCT_BIN) $(CBOOTIMAGE)
|
|||
echo "BootLoader = $<,$(CONFIG_BOOTBLOCK_BASE),$(CONFIG_BOOTBLOCK_BASE),Complete;" >> $(BCT_WRAPPER)
|
||||
@printf " CBOOTIMAGE $(subst $(obj)/,,$(@))\n"
|
||||
$(CBOOTIMAGE) $(CBOOTIMAGE_OPTS) $(BCT_WRAPPER) $@
|
||||
|
||||
# MTS microcode
|
||||
MTS_FILE = $(MTS_DIR)/mts_cr.bin
|
||||
MTS_FILE_CBFS = mts
|
||||
cbfs-files-y += $(MTS_FILE_CBFS)
|
||||
$(MTS_FILE_CBFS)-file := $(MTS_FILE)
|
||||
$(MTS_FILE_CBFS)-type := 0x50
|
||||
|
|
Loading…
Reference in New Issue