diff options
author | Karthikeyan Ramasubramanian <kramasub@google.com> | 2023-07-14 16:30:07 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-08-04 20:52:36 +0000 |
commit | 647abfd1d43dd7bb7a052595bd413192f711e29d (patch) | |
tree | 45cc54776cf384ba4f8a1abb40d5dcf09ecce013 /src/soc | |
parent | 2c828436a7ac491cc97294b5c94d319ef822b7a3 (diff) |
soc/amd/phoenix: Makefile change to include split hash table
Include multiple hash tables into relevant CBFS.
BUG=b:277292697
TEST=Ensure that all multiple hash tables are part of Myst BIOS image
with PSP verstage enabled.
Change-Id: I1601f4a01db5b2bbf8b5636ef9e69e41c1d9a980
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76589
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/phoenix/Makefile.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/amd/phoenix/Makefile.inc b/src/soc/amd/phoenix/Makefile.inc index bbc24d5e0a..852934ffb3 100644 --- a/src/soc/amd/phoenix/Makefile.inc +++ b/src/soc/amd/phoenix/Makefile.inc @@ -338,6 +338,18 @@ build_complete:: $(obj)/amdfw_a.rom $(obj)/amdfw_b.rom -n apu/amdfw_a_hash -t raw $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_B -f $(obj)/amdfw_b.rom.signed.hash \ -n apu/amdfw_b_hash -t raw + if [ -n "$(wildcard $(obj)/amdfw_a.rom.signed.1.hash)" ]; then \ + $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_A -f \ + $(obj)/amdfw_a.rom.signed.1.hash -n apu/amdfw_a_hash1 -t raw; \ + $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_B -f \ + $(obj)/amdfw_b.rom.signed.1.hash -n apu/amdfw_b_hash1 -t raw; \ + fi + if [ -n "$(wildcard $(obj)/amdfw_a.rom.signed.2.hash)" ]; then \ + $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_A -f \ + $(obj)/amdfw_a.rom.signed.2.hash -n apu/amdfw_a_hash2 -t raw; \ + $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_B -f \ + $(obj)/amdfw_b.rom.signed.2.hash -n apu/amdfw_b_hash2 -t raw; \ + fi endif # CONFIG_SEPARATE_SIGNED_PSPFW endif |