soc/amd: move psp_verstage to amd/common
psp_verstage is not specific to picasso. There might be picasso-specific code but move everything into common as a first step. While developing psp_verstage for cezanne picasso-specific code will move back to picasso directory. BUG=b:182477057 BRANCH=none TEST=build psp_verstage on zork Signed-off-by: Kangheui Won <khwon@chromium.org> Change-Id: Ifb1df0d82b972f28be2ffebd476c2553cbda9810 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52306 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
d9ce2859a3
commit
e20bc464fb
|
@ -0,0 +1,24 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
verstage-generic-ccopts += -I$(src)/soc/amd/common/psp_verstage/include
|
||||||
|
verstage-generic-ccopts += -I$(src)/vendorcode/amd/fsp/picasso/include
|
||||||
|
verstage-generic-ccopts += -D__USER_SPACE__
|
||||||
|
CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/
|
||||||
|
|
||||||
|
# This size should match the size in the linker script.
|
||||||
|
CFLAGS_arm += -Wstack-usage=40960
|
||||||
|
|
||||||
|
verstage-y += delay.c
|
||||||
|
verstage-y += fch.c
|
||||||
|
verstage-y += pmutil.c
|
||||||
|
verstage-y += post.c
|
||||||
|
verstage-y += printk.c
|
||||||
|
verstage-y += psp_verstage.c
|
||||||
|
verstage-y += psp.c
|
||||||
|
verstage-y += reset.c
|
||||||
|
verstage-y += svc.c
|
||||||
|
verstage-y += timer.c
|
||||||
|
verstage-y += vboot_crypto.c
|
||||||
|
|
||||||
|
$(obj)/psp_verstage.bin: $(objcbfs)/verstage.elf
|
||||||
|
$(OBJCOPY_verstage) -O binary $^ $@
|
|
@ -7,6 +7,7 @@ subdirs-y += ../../../cpu/x86/cache
|
||||||
subdirs-y += ../../../cpu/x86/mtrr
|
subdirs-y += ../../../cpu/x86/mtrr
|
||||||
subdirs-y += ../../../cpu/x86/pae
|
subdirs-y += ../../../cpu/x86/pae
|
||||||
subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += psp_verstage
|
subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += psp_verstage
|
||||||
|
subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += ../common/psp_verstage
|
||||||
|
|
||||||
# Beware that all-y also adds the compilation unit to verstage on PSP
|
# Beware that all-y also adds the compilation unit to verstage on PSP
|
||||||
all-y += config.c
|
all-y += config.c
|
||||||
|
|
|
@ -2,26 +2,6 @@
|
||||||
|
|
||||||
verstage-generic-ccopts += -I$(src)/soc/amd/picasso/psp_verstage/include
|
verstage-generic-ccopts += -I$(src)/soc/amd/picasso/psp_verstage/include
|
||||||
verstage-generic-ccopts += -I$(src)/vendorcode/amd/fsp/picasso/include
|
verstage-generic-ccopts += -I$(src)/vendorcode/amd/fsp/picasso/include
|
||||||
verstage-generic-ccopts += -D__USER_SPACE__
|
|
||||||
CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/
|
|
||||||
|
|
||||||
# This size should match the size in the linker script.
|
|
||||||
CFLAGS_arm += -Wstack-usage=40960
|
|
||||||
|
|
||||||
verstage-y += delay.c
|
|
||||||
verstage-y += fch.c
|
|
||||||
verstage-y += pmutil.c
|
|
||||||
verstage-y += post.c
|
|
||||||
verstage-y += printk.c
|
|
||||||
verstage-y += psp_verstage.c
|
|
||||||
verstage-y += psp.c
|
|
||||||
verstage-y += reset.c
|
|
||||||
verstage-y += svc.c
|
|
||||||
verstage-y += timer.c
|
|
||||||
verstage-y += vboot_crypto.c
|
|
||||||
|
|
||||||
verstage-y += $(top)/src/vendorcode/amd/fsp/picasso/bl_uapp/bl_uapp_startup.S
|
verstage-y += $(top)/src/vendorcode/amd/fsp/picasso/bl_uapp/bl_uapp_startup.S
|
||||||
verstage-y += $(top)/src/vendorcode/amd/fsp/picasso/bl_uapp/bl_uapp_end.S
|
verstage-y += $(top)/src/vendorcode/amd/fsp/picasso/bl_uapp/bl_uapp_end.S
|
||||||
|
|
||||||
$(obj)/psp_verstage.bin: $(objcbfs)/verstage.elf
|
|
||||||
$(OBJCOPY_verstage) -O binary $^ $@
|
|
||||||
|
|
Loading…
Reference in New Issue