Kangheui Won | e20bc46 | 2021-04-06 16:55:48 +1000 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | verstage-generic-ccopts += -I$(src)/soc/amd/common/psp_verstage/include |
Kangheui Won | e20bc46 | 2021-04-06 16:55:48 +1000 | [diff] [blame] | 4 | verstage-generic-ccopts += -D__USER_SPACE__ |
| 5 | CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/ |
| 6 | |
Martin Roth | c420d53 | 2022-11-15 12:08:30 -0700 | [diff] [blame] | 7 | ifeq ($(CONFIG_COMPILER_GCC),y) |
Kangheui Won | e20bc46 | 2021-04-06 16:55:48 +1000 | [diff] [blame] | 8 | # This size should match the size in the linker script. |
| 9 | CFLAGS_arm += -Wstack-usage=40960 |
Martin Roth | c420d53 | 2022-11-15 12:08:30 -0700 | [diff] [blame] | 10 | else |
| 11 | CFLAGS_arm += -Wframe-larger-than=40960 |
| 12 | endif |
Kangheui Won | e20bc46 | 2021-04-06 16:55:48 +1000 | [diff] [blame] | 13 | |
Karthikeyan Ramasubramanian | c2f6f35 | 2021-09-10 12:03:30 -0600 | [diff] [blame] | 14 | verstage-y += boot_dev.c |
Kangheui Won | e20bc46 | 2021-04-06 16:55:48 +1000 | [diff] [blame] | 15 | verstage-y += delay.c |
| 16 | verstage-y += fch.c |
| 17 | verstage-y += pmutil.c |
| 18 | verstage-y += post.c |
| 19 | verstage-y += printk.c |
| 20 | verstage-y += psp_verstage.c |
| 21 | verstage-y += psp.c |
| 22 | verstage-y += reset.c |
Kangheui Won | e20bc46 | 2021-04-06 16:55:48 +1000 | [diff] [blame] | 23 | verstage-y += timer.c |
| 24 | verstage-y += vboot_crypto.c |
Kangheui Won | e20bc46 | 2021-04-06 16:55:48 +1000 | [diff] [blame] | 25 | |
| 26 | $(obj)/psp_verstage.bin: $(objcbfs)/verstage.elf |
| 27 | $(OBJCOPY_verstage) -O binary $^ $@ |
Karthikeyan Ramasubramanian | 2049bb9 | 2023-05-17 17:36:19 -0600 | [diff] [blame] | 28 | |
| 29 | # Default CONFIG_PSP_VERSTAGE_FILE configuration requires psp_verstage.bin and the above |
| 30 | # build rule takes effect. Once CONFIG_PSP_VERSTAGE_FILE is overridden with signed PSP |
| 31 | # verstage, then psp_verstage.bin is not built. The following build rule ensures that the |
| 32 | # unsigned psp_verstage.bin is still built even when not used so that it can be used for |
| 33 | # signing purposes. |
| 34 | build_complete:: $(obj)/psp_verstage.bin |