1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_VBOOT_VBNV_CMOS
),y
)
3 bootblock-y
+= vbnv_cmos.c
4 verstage-y
+= vbnv_cmos.c
5 romstage-y
+= vbnv_cmos.c
6 ramstage-y
+= vbnv_cmos.c
9 bootblock-
$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
) += vboot_bootblock.c
10 bootblock-
$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
) += transfer_buffer.c
11 smm-
$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
) += transfer_buffer.c
13 # We don't use the early RAM memlayout linker for SMM, so we don't have access
14 # to the early RAM symbols. We manually generate a file that defines the symbols
16 $(obj
)/smm
/early_ram_symbols.
ld: $(objcbfs
)/bootblock.map
$(src
)/soc
/amd
/common
/vboot
/early_ram_symbols.awk
17 awk
-f
$(src
)/soc
/amd
/common
/vboot
/early_ram_symbols.awk
-- "$<" > "$@"
19 $(obj
)/smm
/smm.elf
: $(obj
)/smm
/early_ram_symbols.
ld
20 $(obj
)/smm
/smm.elf-ldflags
+= -T
$(obj
)/smm
/early_ram_symbols.
ld