blob: c65c36979a37f9f108fe1a745e9a6f72a01b384b [file] [log] [blame]
Martin Roth1a3de8e2022-10-06 15:57:21 -06001# SPDX-License-Identifier: BSD-3-Clause
2
3# TODO: Move as much as possible to common
Martin Roth20646cd2023-01-04 21:27:06 -07004# TODO: Update for Phoenix
Martin Roth1a3de8e2022-10-06 15:57:21 -06005
Martin Roth20646cd2023-01-04 21:27:06 -07006ifeq ($(CONFIG_SOC_AMD_PHOENIX),y)
Martin Roth1a3de8e2022-10-06 15:57:21 -06007
8subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += psp_verstage
9
10# Beware that all-y also adds the compilation unit to verstage on PSP
Martin Roth1a3de8e2022-10-06 15:57:21 -060011all-y += aoac.c
Felix Held46cd1b52023-04-01 01:21:27 +020012all-y += config.c
13all-y += i2c.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060014
Felix Heldf008e0a2023-04-01 01:31:24 +020015# all_x86-y adds the compilation unit to all stages that run on the x86 cores
16all_x86-y += gpio.c
17all_x86-y += uart.c
18
Martin Roth1a3de8e2022-10-06 15:57:21 -060019bootblock-y += early_fch.c
20bootblock-y += espi_util.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060021
Martin Roth1a3de8e2022-10-06 15:57:21 -060022verstage-y += espi_util.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060023
24romstage-y += fsp_m_params.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060025romstage-y += romstage.c
Felix Held8f705b92023-02-06 19:56:35 +010026romstage-y += soc_util.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060027
28ramstage-y += acpi.c
29ramstage-y += agesa_acpi.c
30ramstage-y += chip.c
31ramstage-y += cpu.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060032ramstage-y += fch.c
33ramstage-y += fsp_s_params.c
Ritul Guru4843ded2023-02-20 00:45:11 +053034ramstage-y += graphics.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060035ramstage-y += mca.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060036ramstage-y += root_complex.c
Felix Held8f705b92023-02-06 19:56:35 +010037ramstage-y += soc_util.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060038ramstage-y += xhci.c
39
40smm-y += gpio.c
41smm-y += smihandler.c
Martin Roth1a3de8e2022-10-06 15:57:21 -060042smm-$(CONFIG_DEBUG_SMI) += uart.c
43
Martin Roth20646cd2023-01-04 21:27:06 -070044CPPFLAGS_common += -I$(src)/soc/amd/phoenix/include
45CPPFLAGS_common += -I$(src)/soc/amd/phoenix/acpi
46CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/phoenix
Martin Roth1a3de8e2022-10-06 15:57:21 -060047CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/common
48
Martin Roth1a3de8e2022-10-06 15:57:21 -060049# ROMSIG Normally At ROMBASE + 0x20000
50# Overridden by CONFIG_AMD_FWM_POSITION_INDEX
51# +-----------+---------------+----------------+------------+
52# |0x55AA55AA | | | |
53# +-----------+---------------+----------------+------------+
54# | | PSPDIR ADDR | BIOSDIR ADDR |
55# +-----------+---------------+----------------+
56
57$(if $(CONFIG_AMD_FWM_POSITION_INDEX), ,\
58 $(error Invalid AMD firmware position index. Check if the board sets a valid ROM size))
59
Martin Rothb486fe92023-01-09 21:21:48 -070060# Fixed EFS location
61PHOENIX_FWM_POSITION=0xff020000
Martin Roth1a3de8e2022-10-06 15:57:21 -060062
63# 0x40 accounts for the cbfs_file struct + filename + metadata structs, aligned to 64 bytes
64# Building the cbfs image will fail if the offset isn't large enough
65AMD_FW_AB_POSITION := 0x40
66
Martin Roth20646cd2023-01-04 21:27:06 -070067PHOENIX_FW_A_POSITION=$(call int-add, \
Matt DeVillier163dbdd2023-06-29 16:56:09 -050068 $(call get_fmap_value,FMAP_SECTION_FW_MAIN_A_START) $(AMD_FW_AB_POSITION))
Martin Roth1a3de8e2022-10-06 15:57:21 -060069
Martin Roth20646cd2023-01-04 21:27:06 -070070PHOENIX_FW_B_POSITION=$(call int-add, \
Matt DeVillier163dbdd2023-06-29 16:56:09 -050071 $(call get_fmap_value,FMAP_SECTION_FW_MAIN_B_START) $(AMD_FW_AB_POSITION))
Fred Reitbergerdbf1b632023-06-30 13:44:14 -040072
73FMAP_FLASH_START=$(call get_fmap_value,FMAP_SECTION_FLASH_START)
74
Martin Roth1a3de8e2022-10-06 15:57:21 -060075#
76# PSP Directory Table items
77#
78# Certain ordering requirements apply, however these are ensured by amdfwtool.
79# For more information see "AMD Platform Security Processor BIOS Architecture
80# Design Guide for AMD Family 17h Processors" (PID #55758, NDA only).
81#
82
83ifeq ($(CONFIG_PSP_DISABLE_POSTCODES),y)
84PSP_SOFTFUSE_BITS += 7
85endif
86
87ifeq ($(CONFIG_PSP_UNLOCK_SECURE_DEBUG),y)
88# Enable secure debug unlock
89PSP_SOFTFUSE_BITS += 0
90OPT_TOKEN_UNLOCK="--token-unlock"
91endif
92
93ifeq ($(CONFIG_PSP_LOAD_MP2_FW),y)
94OPT_PSP_LOAD_MP2_FW="--load-mp2-fw"
95else
96# Disable MP2 firmware loading
97PSP_SOFTFUSE_BITS += 29
98endif
99
100# Use additional Soft Fuse bits specified in Kconfig
101PSP_SOFTFUSE_BITS += $(call strip_quotes, $(CONFIG_PSP_SOFTFUSE_BITS))
102
103# type = 0x3a
104ifeq ($(CONFIG_HAVE_PSP_WHITELIST_FILE),y)
105PSP_WHITELIST_FILE=$(CONFIG_PSP_WHITELIST_FILE)
106endif
107
108# type = 0x55
109ifeq ($(CONFIG_HAVE_SPL_FILE),y)
110SPL_TABLE_FILE=$(CONFIG_SPL_TABLE_FILE)
111ifeq ($(CONFIG_HAVE_SPL_RW_AB_FILE),y)
112SPL_RW_AB_TABLE_FILE=$(CONFIG_SPL_RW_AB_TABLE_FILE)
113else
114SPL_RW_AB_TABLE_FILE=$(CONFIG_SPL_TABLE_FILE)
115endif
116endif
117
118#
119# BIOS Directory Table items - proper ordering is managed by amdfwtool
120#
121
122# type = 0x60
123PSP_APCB_FILES=$(APCB_SOURCES) $(APCB_SOURCES_RECOVERY)
124
125# type = 0x61
126PSP_APOB_BASE=$(CONFIG_PSP_APOB_DRAM_ADDRESS)
127
128# type = 0x62
129PSP_BIOSBIN_FILE=$(obj)/amd_biospsp.img
130PSP_ELF_FILE=$(objcbfs)/bootblock.elf
Felix Held3b89c952022-11-22 20:02:46 +0100131PSP_BIOSBIN_SIZE=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD | awk '{print $$5}')
132PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD | awk '{print $$3}')
Martin Roth1a3de8e2022-10-06 15:57:21 -0600133
134# type = 0x63 - construct APOB NV base/size from flash map
135# The flashmap section used for this is expected to be named RW_MRC_CACHE
Matt DeVillier163dbdd2023-06-29 16:56:09 -0500136APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
Fred Reitberger41a162b2023-06-29 12:58:53 -0400137APOB_NV_BASE=$(shell printf "%#x" $(call int-subtract, \
Fred Reitbergerdbf1b632023-06-30 13:44:14 -0400138 $(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START) $(FMAP_FLASH_START)))
Martin Roth1a3de8e2022-10-06 15:57:21 -0600139
Fred Reitberger097f5402023-02-24 13:27:13 -0500140ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE),y)
141# On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
142# Else use RW_MRC_CACHE. This entry will be added in the RO section.
Matt DeVillier163dbdd2023-06-29 16:56:09 -0500143APOB_NV_RO_SIZE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE)
Fred Reitberger41a162b2023-06-29 12:58:53 -0400144APOB_NV_RO_BASE=$(shell printf "%#x" $(call int-subtract, \
Fred Reitbergerdbf1b632023-06-30 13:44:14 -0400145 $(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_START) $(FMAP_FLASH_START)))
Fred Reitberger097f5402023-02-24 13:27:13 -0500146else
147APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
148APOB_NV_RO_BASE=$(APOB_NV_BASE)
149endif
150
Zheng Baoa4284b02023-02-01 13:16:52 +0800151ifeq ($(CONFIG_AMDFW_SPLIT),y)
Matt DeVillier163dbdd2023-06-29 16:56:09 -0500152FMAP_AMDFW_BODY_LOCATION=$(call get_fmap_value,FMAP_SECTION_AMDFWBODY_START)
Zheng Baoa4284b02023-02-01 13:16:52 +0800153endif
154
Martin Roth1a3de8e2022-10-06 15:57:21 -0600155ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
156# type = 0x6B - PSP Shared memory location
157ifneq ($(CONFIG_PSP_SHAREDMEM_SIZE),0x0)
158PSP_SHAREDMEM_SIZE=$(CONFIG_PSP_SHAREDMEM_SIZE)
159PSP_SHAREDMEM_BASE=$(shell awk '$$3 == "_psp_sharedmem_dram" {printf "0x" $$1}' $(objcbfs)/bootblock.map)
160endif
161
162# type = 0x52 - PSP Bootloader Userspace Application (verstage)
163PSP_VERSTAGE_FILE=$(call strip_quotes,$(CONFIG_PSP_VERSTAGE_FILE))
164PSP_VERSTAGE_SIG_FILE=$(call strip_quotes,$(CONFIG_PSP_VERSTAGE_SIGNING_TOKEN))
165endif # CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
166
167ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
168SIGNED_AMDFW_A_POSITION=$(call int-subtract, \
Fred Reitbergerdbf1b632023-06-30 13:44:14 -0400169 $(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_A_START) $(FMAP_FLASH_START))
Martin Roth1a3de8e2022-10-06 15:57:21 -0600170SIGNED_AMDFW_B_POSITION=$(call int-subtract, \
Fred Reitbergerdbf1b632023-06-30 13:44:14 -0400171 $(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_B_START) $(FMAP_FLASH_START))
Martin Roth1a3de8e2022-10-06 15:57:21 -0600172SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.signed
173SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.signed
174endif # CONFIG_SEPARATE_SIGNED_PSPFW
175
176# Helper function to return a value with given bit set
177# Soft Fuse type = 0xb - See #55758 (NDA) for bit definitions.
178set-bit=$(call int-shift-left, 1 $(call _toint,$1))
179PSP_SOFTFUSE=$(shell A=$(call int-add, \
180 $(foreach bit,$(PSP_SOFTFUSE_BITS),$(call set-bit,$(bit)))); printf "0x%x" $$A)
181
182#
183# Build the arguments to amdfwtool (order is unimportant). Missing file names
184# result in empty OPT_ variables, i.e. the argument is not passed to amdfwtool.
185#
186
187add_opt_prefix=$(if $(call strip_quotes, $(1)), $(2) $(call strip_quotes, $(1)), )
188
189OPT_VERSTAGE_FILE=$(call add_opt_prefix, $(PSP_VERSTAGE_FILE), --verstage)
190OPT_VERSTAGE_SIG_FILE=$(call add_opt_prefix, $(PSP_VERSTAGE_SIG_FILE), --verstage_sig)
191
192OPT_PSP_APCB_FILES= $(if $(APCB_SOURCES), --instance 0 --apcb $(APCB_SOURCES)) \
193 $(if $(APCB_SOURCES_RECOVERY), --instance 10 --apcb $(APCB_SOURCES_RECOVERY)) \
194 $(if $(APCB_SOURCES_68), --instance 18 --apcb $(APCB_SOURCES_68))
195
196OPT_APOB_ADDR=$(call add_opt_prefix, $(PSP_APOB_BASE), --apob-base)
197OPT_PSP_BIOSBIN_FILE=$(call add_opt_prefix, $(PSP_BIOSBIN_FILE), --bios-bin)
198OPT_PSP_BIOSBIN_DEST=$(call add_opt_prefix, $(PSP_BIOSBIN_DEST), --bios-bin-dest)
199OPT_PSP_BIOSBIN_SIZE=$(call add_opt_prefix, $(PSP_BIOSBIN_SIZE), --bios-uncomp-size)
200
201OPT_PSP_SHAREDMEM_BASE=$(call add_opt_prefix, $(PSP_SHAREDMEM_BASE), --sharedmem)
202OPT_PSP_SHAREDMEM_SIZE=$(call add_opt_prefix, $(PSP_SHAREDMEM_SIZE), --sharedmem-size)
203OPT_APOB_NV_SIZE=$(call add_opt_prefix, $(APOB_NV_SIZE), --apob-nv-size)
204OPT_APOB_NV_BASE=$(call add_opt_prefix, $(APOB_NV_BASE),--apob-nv-base)
Fred Reitberger097f5402023-02-24 13:27:13 -0500205OPT_APOB_NV_RO_SIZE=$(call add_opt_prefix, $(APOB_NV_RO_SIZE), --apob-nv-size)
206OPT_APOB_NV_RO_BASE=$(call add_opt_prefix, $(APOB_NV_RO_BASE),--apob-nv-base)
Martin Roth1a3de8e2022-10-06 15:57:21 -0600207OPT_EFS_SPI_READ_MODE=$(call add_opt_prefix, $(CONFIG_EFS_SPI_READ_MODE), --spi-read-mode)
208OPT_EFS_SPI_SPEED=$(call add_opt_prefix, $(CONFIG_EFS_SPI_SPEED), --spi-speed)
209OPT_EFS_SPI_MICRON_FLAG=$(call add_opt_prefix, $(CONFIG_EFS_SPI_MICRON_FLAG), --spi-micron-flag)
210
211OPT_SIGNED_AMDFW_A_POSITION=$(call add_opt_prefix, $(SIGNED_AMDFW_A_POSITION), --signed-addr)
212OPT_SIGNED_AMDFW_A_FILE=$(call add_opt_prefix, $(SIGNED_AMDFW_A_FILE), --signed-output)
213OPT_SIGNED_AMDFW_B_POSITION=$(call add_opt_prefix, $(SIGNED_AMDFW_B_POSITION), --signed-addr)
214OPT_SIGNED_AMDFW_B_FILE=$(call add_opt_prefix, $(SIGNED_AMDFW_B_FILE), --signed-output)
215
216OPT_PSP_SOFTFUSE=$(call add_opt_prefix, $(PSP_SOFTFUSE), --soft-fuse)
217
218OPT_WHITELIST_FILE=$(call add_opt_prefix, $(PSP_WHITELIST_FILE), --whitelist)
219OPT_SPL_TABLE_FILE=$(call add_opt_prefix, $(SPL_TABLE_FILE), --spl-table)
220OPT_SPL_RW_AB_TABLE_FILE=$(call add_opt_prefix, $(SPL_RW_AB_TABLE_FILE), --spl-table)
221
222# If vboot uses 2 RW slots, then 2 copies of PSP binaries are redundant
223OPT_RECOVERY_AB_SINGLE_COPY=$(if $(CONFIG_VBOOT_SLOTS_RW_AB), --recovery-ab-single-copy)
224
Zheng Baoa4284b02023-02-01 13:16:52 +0800225OPT_AMDFW_BODY_LOCATION=$(call add_opt_prefix, $(FMAP_AMDFW_BODY_LOCATION), --body-location)
226
Martin Roth1a3de8e2022-10-06 15:57:21 -0600227AMDFW_COMMON_ARGS=$(OPT_PSP_APCB_FILES) \
228 $(OPT_APOB_ADDR) \
Martin Roth0acf59d2023-03-08 15:18:24 -0700229 $(OPT_DEBUG_AMDFWTOOL) \
Martin Roth1a3de8e2022-10-06 15:57:21 -0600230 $(OPT_PSP_BIOSBIN_FILE) \
231 $(OPT_PSP_BIOSBIN_DEST) \
232 $(OPT_PSP_BIOSBIN_SIZE) \
233 $(OPT_PSP_SOFTFUSE) \
234 $(OPT_PSP_LOAD_MP2_FW) \
235 --use-pspsecureos \
236 --load-s0i3 \
Martin Roth1a3de8e2022-10-06 15:57:21 -0600237 $(OPT_TOKEN_UNLOCK) \
238 $(OPT_WHITELIST_FILE) \
239 $(OPT_PSP_SHAREDMEM_BASE) \
240 $(OPT_PSP_SHAREDMEM_SIZE) \
241 $(OPT_EFS_SPI_READ_MODE) \
242 $(OPT_EFS_SPI_SPEED) \
243 $(OPT_EFS_SPI_MICRON_FLAG) \
244 --config $(CONFIG_AMDFW_CONFIG_FILE) \
Martin Roth1a3de8e2022-10-06 15:57:21 -0600245 --flashsize $(CONFIG_ROM_SIZE) \
Zheng Baoa4284b02023-02-01 13:16:52 +0800246 $(OPT_RECOVERY_AB_SINGLE_COPY) \
247 $(OPT_AMDFW_BODY_LOCATION)
Martin Roth1a3de8e2022-10-06 15:57:21 -0600248
249$(obj)/amdfw.rom: $(call strip_quotes, $(PSP_BIOSBIN_FILE)) \
250 $(PSP_VERSTAGE_FILE) \
251 $(PSP_VERSTAGE_SIG_FILE) \
252 $$(PSP_APCB_FILES) \
253 $(DEP_FILES) \
254 $(AMDFWTOOL) \
255 $(obj)/fmap_config.h \
256 $(objcbfs)/bootblock.elf # this target also creates the .map file
Martin Roth1a3de8e2022-10-06 15:57:21 -0600257 rm -f $@
258 @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n"
259 $(AMDFWTOOL) \
260 $(AMDFW_COMMON_ARGS) \
Fred Reitberger097f5402023-02-24 13:27:13 -0500261 $(OPT_APOB_NV_RO_SIZE) \
262 $(OPT_APOB_NV_RO_BASE) \
Martin Roth1a3de8e2022-10-06 15:57:21 -0600263 $(OPT_VERSTAGE_FILE) \
264 $(OPT_VERSTAGE_SIG_FILE) \
265 $(OPT_SPL_TABLE_FILE) \
Martin Roth20646cd2023-01-04 21:27:06 -0700266 --location $(shell printf "%#x" $(PHOENIX_FWM_POSITION)) \
Martin Roth1a3de8e2022-10-06 15:57:21 -0600267 --output $@
268
Zheng Baoa4284b02023-02-01 13:16:52 +0800269ifeq ($(CONFIG_AMDFW_SPLIT),y)
270$(obj)/amdfw.rom.body: $(obj)/amdfw.rom
271$(call add_intermediate, add_amdfwbody, $(obj)/amdfw.rom.body)
272 $(CBFSTOOL) $(obj)/coreboot.pre write -r AMDFWBODY -f $(obj)/amdfw.rom.body --fill-upward
273endif
274
Martin Roth1a3de8e2022-10-06 15:57:21 -0600275$(PSP_BIOSBIN_FILE): $(PSP_ELF_FILE) $(AMDCOMPRESS)
276 rm -f $@
277 @printf " AMDCOMPRS $(subst $(obj)/,,$(@))\n"
278 $(AMDCOMPRESS) --infile $(PSP_ELF_FILE) --outfile $@ --compress \
279 --maxsize $(PSP_BIOSBIN_SIZE)
280
281$(obj)/amdfw_a.rom: $(obj)/amdfw.rom
282 rm -f $@
283 @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n"
284 $(AMDFWTOOL) \
285 $(AMDFW_COMMON_ARGS) \
286 $(OPT_APOB_NV_SIZE) \
287 $(OPT_APOB_NV_BASE) \
288 $(OPT_SPL_RW_AB_TABLE_FILE) \
289 $(OPT_SIGNED_AMDFW_A_POSITION) \
290 $(OPT_SIGNED_AMDFW_A_FILE) \
Martin Roth20646cd2023-01-04 21:27:06 -0700291 --location $(shell printf "%#x" $(PHOENIX_FW_A_POSITION)) \
Martin Roth1a3de8e2022-10-06 15:57:21 -0600292 --anywhere \
293 --output $@
294
295$(obj)/amdfw_b.rom: $(obj)/amdfw.rom
296 rm -f $@
297 @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n"
298 $(AMDFWTOOL) \
299 $(AMDFW_COMMON_ARGS) \
300 $(OPT_APOB_NV_SIZE) \
301 $(OPT_APOB_NV_BASE) \
302 $(OPT_SPL_RW_AB_TABLE_FILE) \
303 $(OPT_SIGNED_AMDFW_B_POSITION) \
304 $(OPT_SIGNED_AMDFW_B_FILE) \
Martin Roth20646cd2023-01-04 21:27:06 -0700305 --location $(shell printf "%#x" $(PHOENIX_FW_B_POSITION)) \
Martin Roth1a3de8e2022-10-06 15:57:21 -0600306 --anywhere \
307 --output $@
308
309
Martin Roth1a3de8e2022-10-06 15:57:21 -0600310ifeq ($(CONFIG_VBOOT_SLOTS_RW_AB)$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),yy)
311cbfs-files-y += apu/amdfw_a
312apu/amdfw_a-file := $(obj)/amdfw_a.rom
313apu/amdfw_a-position := $(AMD_FW_AB_POSITION)
314apu/amdfw_a-type := raw
315
316cbfs-files-y += apu/amdfw_b
317apu/amdfw_b-file := $(obj)/amdfw_b.rom
318apu/amdfw_b-position := $(AMD_FW_AB_POSITION)
319apu/amdfw_b-type := raw
320
321ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
322build_complete:: $(obj)/amdfw_a.rom $(obj)/amdfw_b.rom
323 @printf " Adding Signed ROM and HASH\n"
324 $(CBFSTOOL) $(obj)/coreboot.rom write -u -r SIGNED_AMDFW_A -i 0 -f $(obj)/amdfw_a.rom.signed
325 $(CBFSTOOL) $(obj)/coreboot.rom write -u -r SIGNED_AMDFW_B -i 0 -f $(obj)/amdfw_b.rom.signed
326 $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_A -f $(obj)/amdfw_a.rom.signed.hash \
327 -n apu/amdfw_a_hash -t raw
328 $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_B -f $(obj)/amdfw_b.rom.signed.hash \
329 -n apu/amdfw_b_hash -t raw
330endif # CONFIG_SEPARATE_SIGNED_PSPFW
331endif
332
Martin Roth20646cd2023-01-04 21:27:06 -0700333endif # ($(CONFIG_SOC_AMD_PHOENIX),y)