soc/amd/common: Move AGESA related source files

Move AGESA related source files in soc/amd/common under block directory.
Folder soc/amd/common/block subfolders should mimic soc/intel/common/block
subfolders (one subfolder per subject).

BUG=b:69262110
TEST=Build with no error gardenia and kahlee (no code change, just folder
reorg).

Change-Id: I497cdefe64e8dff00aaff7153c4ffa9c57c9acf8
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/22792
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Richard Spiegel 2017-12-08 18:16:02 -07:00 committed by Martin Roth
parent 0ad74ace8b
commit 19f67a392a
8 changed files with 22 additions and 13 deletions

View File

@ -2,19 +2,6 @@ ifeq ($(CONFIG_SOC_AMD_COMMON),y)
CPPFLAGS_common += -I$(src)/soc/amd/common
bootblock-y += agesawrapper.c
bootblock-y += def_callouts.c
bootblock-y += heapmanager.c
romstage-y += agesawrapper.c
romstage-y += def_callouts.c
romstage-y += heapmanager.c
ramstage-y += agesawrapper.c
ramstage-y += amd_late_init.c
ramstage-y += def_callouts.c
ramstage-y += heapmanager.c
subdirs-$(CONFIG_SOC_AMD_COMMON_BLOCK) += block
endif

View File

@ -0,0 +1,5 @@
config SOC_AMD_COMMON_BLOCK_PI
bool
default n
help
This option builds functions that interface AMD's AGESA.

View File

@ -0,0 +1,16 @@
ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_PI),y)
bootblock-y += agesawrapper.c
bootblock-y += def_callouts.c
bootblock-y += heapmanager.c
romstage-y += agesawrapper.c
romstage-y += def_callouts.c
romstage-y += heapmanager.c
ramstage-y += agesawrapper.c
ramstage-y += amd_late_init.c
ramstage-y += def_callouts.c
ramstage-y += heapmanager.c
endif

View File

@ -47,6 +47,7 @@ config CPU_SPECIFIC_OPTIONS
select SOC_AMD_COMMON
select SOC_AMD_COMMON_BLOCK
select SOC_AMD_COMMON_BLOCK_PCI
select SOC_AMD_COMMON_BLOCK_PI
select SOC_AMD_COMMON_BLOCK_PSP
select SOC_AMD_COMMON_BLOCK_CAR
select SOC_AMD_COMMON_BLOCK_S3