[coreboot-gerrit] Change in coreboot[master]: vendorcode/amd/pi/00670F00: Remove unneeded includes

Richard Spiegel (Code Review) gerrit at coreboot.org
Mon May 7 16:54:20 CEST 2018


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


Change subject: vendorcode/amd/pi/00670F00: Remove unneeded includes
......................................................................

vendorcode/amd/pi/00670F00: Remove unneeded includes

Vendor code has several headers included into source code that are not
needed in order to build them. Remove unneeded #include. This is part of
controlling the build of unneeded procedures within vendor code.

BUG=b:78610011
TEST=Build grunt.

Change-Id: Id7d451b6be564632836fc64fd343131edb85183a
Signed-off-by: Richard Spiegel <richard.spiegel at silverbackltd.com>
---
M src/vendorcode/amd/pi/00670F00/Lib/amdlib.c
M src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c
M src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/MemLib.c
M src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c
M src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
5 files changed, 0 insertions(+), 13 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/26134/1

diff --git a/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c b/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c
index 38df878..849d1a2 100644
--- a/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c
+++ b/src/vendorcode/amd/pi/00670F00/Lib/amdlib.c
@@ -45,8 +45,6 @@
 
 #include <AGESA.h>
 #include <cpuRegisters.h>
-#include <Ids.h>
-#include <Porting.h>
 #include "amdlib.h"
 CODE_GROUP (G1_PEICC)
 RDATA_GROUP (G1_PEICC)
diff --git a/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c b/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c
index c833a9f..46125584 100644
--- a/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c
+++ b/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c
@@ -43,10 +43,6 @@
 
 #include "FchPlatform.h"
 #include  "cpuFamilyTranslation.h"
-//#include  "Porting.h"
-//#include  "AMD.h"
-//#include  "amdlib.h"
-#include  "heapManager.h"
 #define FILECODE PROC_FCH_COMMON_FCHPELIB_FILECODE
 
 /*----------------------------------------------------------------------------------------*/
diff --git a/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/MemLib.c b/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/MemLib.c
index 8313d81..2ab39a3 100644
--- a/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/MemLib.c
+++ b/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/MemLib.c
@@ -41,7 +41,6 @@
  *
  ***************************************************************************/
 #include "FchPlatform.h"
-#include "Ids.h"
 #define FILECODE PROC_FCH_COMMON_MEMLIB_FILECODE
 
 
diff --git a/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c b/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c
index e49fb78..199c3ff 100644
--- a/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c
+++ b/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c
@@ -48,7 +48,6 @@
  */
 #include "AGESA.h"
 #include "Filecode.h"
-#include "Fch.h"
 #include "PspBaseLib.h"
 
 #define FILECODE PROC_PSP_PSPBASELIB_PSPBASELIB_FILECODE
diff --git a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
index 0985504..4e6262d 100644
--- a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
+++ b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
@@ -39,12 +39,7 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  ***************************************************************************/
-// TODO This list needs to be pruned of anything that is not API
-#include "AGESA.h"
 #include <amdblocks/agesawrapper.h>
-#include "cbfs.h"
-#include <console/console.h>
-#include <commonlib/loglevel.h>
 
 CONST UINT32 ImageSignature = IMAGE_SIGNATURE;
 CONST UINT32 ModuleSignature = MODULE_SIGNATURE;

-- 
To view, visit https://review.coreboot.org/26134
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id7d451b6be564632836fc64fd343131edb85183a
Gerrit-Change-Number: 26134
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/20180507/cd6eaf28/attachment.html>


More information about the coreboot-gerrit mailing list