southbridge/amd: update for amdfwtool size on command line
amdfwtool was getting the ROM size as a #define when it was built.
It has been updated to pass it in as a command line parameter, so
now it can be built just once for abuild as a shared tool.
Update the calls to amdfwtool to pass the ROM size.
All platforms using amdfwtool had the output verified using
a binary compare.
This reverts commit 0529236ed2
(Makefile.inc: Don't share amdfwtool between platforms)
Change-Id: I188b34e08249f2d00bd48957ced750b21f1ec348
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://review.coreboot.org/17327
Tested-by: build bot (Jenkins)
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
31d95a2eb2
commit
d61b5404dc
|
@ -425,7 +425,7 @@ ADAFLAGS_common += -gnata
|
||||||
endif
|
endif
|
||||||
|
|
||||||
additional-dirs := $(objutil)/cbfstool $(objutil)/romcc $(objutil)/ifdtool \
|
additional-dirs := $(objutil)/cbfstool $(objutil)/romcc $(objutil)/ifdtool \
|
||||||
$(objutil)/ifdfake $(objutil)/options $(obj)/amdfwtool \
|
$(objutil)/ifdfake $(objutil)/options $(objutil)/amdfwtool \
|
||||||
$(objutil)/cbootimage $(objutil)/bimgtool
|
$(objutil)/cbootimage $(objutil)/bimgtool
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
@ -488,8 +488,7 @@ $(IFDFAKE): $(top)/util/ifdfake/ifdfake.c
|
||||||
@printf " HOSTCC $(subst $(obj)/,,$(@))\n"
|
@printf " HOSTCC $(subst $(obj)/,,$(@))\n"
|
||||||
$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
|
$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
|
||||||
|
|
||||||
#TODO: update amdfwtool to pass in size of rom
|
AMDFWTOOL:=$(objutil)/amdfwtool/amdfwtool
|
||||||
AMDFWTOOL:=$(obj)/amdfwtool/amdfwtool
|
|
||||||
$(AMDFWTOOL): $(top)/util/amdfwtool/amdfwtool.c
|
$(AMDFWTOOL): $(top)/util/amdfwtool/amdfwtool.c
|
||||||
@printf " HOSTCC $(subst $(obj)/,,$(@))\n"
|
@printf " HOSTCC $(subst $(obj)/,,$(@))\n"
|
||||||
$(HOSTCC) $(HOSTCFLAGS) -DCONFIG_ROM_SIZE=$(CONFIG_ROM_SIZE) -o $@ $<
|
$(HOSTCC) $(HOSTCFLAGS) -DCONFIG_ROM_SIZE=$(CONFIG_ROM_SIZE) -o $@ $<
|
||||||
|
|
|
@ -62,6 +62,7 @@ $(obj)/amdfw.rom: $(call strip_quotes, $(CONFIG_HUDSON_XHCI_FWM_FILE)) \
|
||||||
$(OPT_HUDSON_XHCI_FWM_FILE) \
|
$(OPT_HUDSON_XHCI_FWM_FILE) \
|
||||||
$(OPT_HUDSON_IMC_FWM_FILE) \
|
$(OPT_HUDSON_IMC_FWM_FILE) \
|
||||||
$(OPT_HUDSON_GEC_FWM_FILE) \
|
$(OPT_HUDSON_GEC_FWM_FILE) \
|
||||||
|
--flashsize $(CONFIG_ROM_SIZE) \
|
||||||
--output $@
|
--output $@
|
||||||
|
|
||||||
cbfs-files-y += apu/amdfw
|
cbfs-files-y += apu/amdfw
|
||||||
|
|
|
@ -291,6 +291,7 @@ $(obj)/amdfw.rom: $(call strip_quotes, $(CONFIG_HUDSON_XHCI_FWM_FILE)) \
|
||||||
$(OPT_2TRUSTLETKEY_FILE) \
|
$(OPT_2TRUSTLETKEY_FILE) \
|
||||||
$(OPT_2SMUFIRMWARE2_FILE) \
|
$(OPT_2SMUFIRMWARE2_FILE) \
|
||||||
$(OPT_2SMUSCS_FILE) \
|
$(OPT_2SMUSCS_FILE) \
|
||||||
|
--flashsize $(CONFIG_ROM_SIZE) \
|
||||||
--output $@
|
--output $@
|
||||||
|
|
||||||
cbfs-files-y += apu/amdfw
|
cbfs-files-y += apu/amdfw
|
||||||
|
|
Loading…
Reference in New Issue