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/soc/amd/stoneyridge/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/soc/amd') diff --git a/src/soc/amd/stoneyridge/Kconfig b/src/soc/amd/stoneyridge/Kconfig index f544796aab..5e4800f121 100644 --- a/src/soc/amd/stoneyridge/Kconfig +++ b/src/soc/amd/stoneyridge/Kconfig @@ -393,4 +393,11 @@ config MAINBOARD_POWER_RESTORE return to S0. Otherwise the system will remain in S5 once power is restored. +config VENDORCODE_FULL_SUPPORT + def_bool n + help + This option determines if all files under + vendorcode/amd/pi/00670F00/ will be compiled or only + selected procedures of source files (minimum required). + endif # SOC_AMD_STONEYRIDGE_FP4 || SOC_AMD_STONEYRIDGE_FT4 -- cgit v1.2.3