From 4bb706555ec84e00948c65993d03f1ee1c2a83eb Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Mon, 7 May 2018 07:53:42 -0700 Subject: vendorcode/amd/pi/00670F00: Control which procedure builds Vendor code is compiled as a library, thus the whole library is included into the final image. However, not all procedures are required, they are there because original AGESA code had them. We cannot remove them, in order to facilitate porting of fixed AGESA code. Therefor add #if throughout the code to allow the control if unneeded procedures will be build. BUG=b:78610011 TEST=Build and boot grunt; build kahlee and gardenia. Change-Id: I68f9e359b2331f715a3b85486c4181866985afdf Signed-off-by: Richard Spiegel Reviewed-on: https://review.coreboot.org/26135 Reviewed-by: Martin Roth Tested-by: build bot (Jenkins) --- src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c') 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 057bf72368..c1b14f5e4c 100644 --- a/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c +++ b/src/vendorcode/amd/pi/00670F00/Proc/Fch/Common/FchPeLib.c @@ -52,6 +52,7 @@ */ #define FILECODE PROC_FCH_COMMON_FCHPELIB_FILECODE +#if IS_ENABLED(CONFIG_VENDORCODE_FULL_SUPPORT) /*----------------------------------------------------------------------------------------*/ /** * ProgramPciByteTable - Program PCI register by table (8 bits data) @@ -218,6 +219,7 @@ ProgramFchSataPhyTbl ( } } } +#endif /* IS_ENABLED(CONFIG_VENDORCODE_FULL_SUPPORT) */ /** * GetChipSysMode - Get Chip status @@ -260,7 +262,7 @@ IsImcEnabled ( } } - +#if IS_ENABLED(CONFIG_VENDORCODE_FULL_SUPPORT) /** * GetEfuseStatue - Get Efuse status * @@ -582,3 +584,4 @@ FchGetScratchFuse ( return TempData64; } +#endif /* IS_ENABLED(CONFIG_VENDORCODE_FULL_SUPPORT) */ -- cgit v1.2.3