[coreboot-gerrit] Change in coreboot[master]: soc/amd/common: Move AGESA related source files

Richard Spiegel (Code Review) gerrit at coreboot.org
Sat Dec 9 02:16:15 CET 2017


Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/22792


Change subject: soc/amd/common: Move AGESA related source files
......................................................................

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 at silverbackltd.com>
---
M src/soc/amd/common/Makefile.inc
A src/soc/amd/common/block/pi/Kconfig
A src/soc/amd/common/block/pi/Makefile.inc
R src/soc/amd/common/block/pi/amd_late_init.c
M src/soc/amd/stoneyridge/Kconfig
5 files changed, 11 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/22792/1

diff --git a/src/soc/amd/common/Makefile.inc b/src/soc/amd/common/Makefile.inc
index b485bb3..7146bd9 100644
--- a/src/soc/amd/common/Makefile.inc
+++ b/src/soc/amd/common/Makefile.inc
@@ -11,7 +11,6 @@
 romstage-y += heapmanager.c
 
 ramstage-y += agesawrapper.c
-ramstage-y += amd_late_init.c
 ramstage-y += def_callouts.c
 ramstage-y += heapmanager.c
 
diff --git a/src/soc/amd/common/block/pi/Kconfig b/src/soc/amd/common/block/pi/Kconfig
new file mode 100644
index 0000000..273598b
--- /dev/null
+++ b/src/soc/amd/common/block/pi/Kconfig
@@ -0,0 +1,5 @@
+config SOC_AMD_COMMON_BLOCK_PI
+	bool
+	default n
+	help
+	  This option builds functions that interface AMD's AGESA.
diff --git a/src/soc/amd/common/block/pi/Makefile.inc b/src/soc/amd/common/block/pi/Makefile.inc
new file mode 100644
index 0000000..b18c304
--- /dev/null
+++ b/src/soc/amd/common/block/pi/Makefile.inc
@@ -0,0 +1,5 @@
+ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_PI),y)
+
+ramstage-y += amd_late_init.c
+
+endif
diff --git a/src/soc/amd/common/amd_late_init.c b/src/soc/amd/common/block/pi/amd_late_init.c
similarity index 100%
rename from src/soc/amd/common/amd_late_init.c
rename to src/soc/amd/common/block/pi/amd_late_init.c
diff --git a/src/soc/amd/stoneyridge/Kconfig b/src/soc/amd/stoneyridge/Kconfig
index 2f75307..a9bc382 100644
--- a/src/soc/amd/stoneyridge/Kconfig
+++ b/src/soc/amd/stoneyridge/Kconfig
@@ -47,6 +47,7 @@
 	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

-- 
To view, visit https://review.coreboot.org/22792
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I497cdefe64e8dff00aaff7153c4ffa9c57c9acf8
Gerrit-Change-Number: 22792
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel at silverbackltd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171209/c1b2b252/attachment.html>


More information about the coreboot-gerrit mailing list