diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-03-29 16:52:46 -0500 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-12-06 05:43:20 +0100 |
commit | 986349df6492068a7f01fdfd8a6e65b93eb1bc17 (patch) | |
tree | acc8cc5283d083be5702078caf3c94a4be29fc4b /src/vendorcode/amd/agesa/f15tn/Include | |
parent | c5c21d3fe114063887653a91920dcc3a7c6a436a (diff) |
vendorcode/amd/agesa/fam15tn: Clean #includes in public headers
Right now, coreboot code using AGESA headers can only build if all the
AGESA path are given to the compiler via the "-I" option. This is sub-
optimal, as it requires us to have every AGESA source directory
specified as a compiler include path. This pollutes our global include
paths.
We restrict the compiler include paths to only allow "AGESA_ROOT/" and
"AGESA_ROOT/Include". We then modify the AGESA headers to specify
non-local include files relative to "AGESA_ROOT/Include".
We use the convention that includes relative to the directory of the
header are included as "path/to/header.h", while includes relative to
AGESA_ROOT are included as <path/to/header.h>.
This change allows building coreboot code based on AGESA with the
limited subset of include paths, but does not allow AGESA itself to
build with this restricted subset.
Change-Id: I31102273c8caa8d6b1d80774bfd35711825bec03
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/5424
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/vendorcode/amd/agesa/f15tn/Include')
25 files changed, 39 insertions, 39 deletions
diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionApmInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionApmInstall.h index e88d35b0df..368104c20f 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionApmInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionApmInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_APM_INSTALL_H_ #define _OPTION_APM_INSTALL_H_ -#include "cpuApm.h" +#include <Proc/CPU/Feature/cpuApm.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionC6Install.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionC6Install.h index 088d303a88..b6186c6fa5 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionC6Install.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionC6Install.h @@ -44,7 +44,7 @@ #ifndef _OPTION_C6_STATE_INSTALL_H_ #define _OPTION_C6_STATE_INSTALL_H_ -#include "cpuC6State.h" +#include <Proc/CPU/Feature/cpuC6State.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionCpbInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionCpbInstall.h index b2fa7d6296..308dc73b57 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionCpbInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionCpbInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_CPB_INSTALL_H_ #define _OPTION_CPB_INSTALL_H_ -#include "cpuCpb.h" +#include <Proc/CPU/Feature/cpuCpb.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionCpuCacheFlushOnHaltInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionCpuCacheFlushOnHaltInstall.h index f00ee23cfc..8b5db5aee4 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionCpuCacheFlushOnHaltInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionCpuCacheFlushOnHaltInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_CPU_CACHEFLUSHONHALT_INSTALL_H_ #define _OPTION_CPU_CACHEFLUSHONHALT_INSTALL_H_ -#include "cpuPostInit.h" +#include "Proc/CPU/cpuPostInit.h" /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionDmiInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionDmiInstall.h index 73e5041fd5..fb1b54d25a 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionDmiInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionDmiInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_DMI_INSTALL_H_ #define _OPTION_DMI_INSTALL_H_ -#include "cpuLateInit.h" +#include <Proc/CPU/cpuLateInit.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionFamily15hInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionFamily15hInstall.h index d1e5c5bf7b..f0d9194018 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionFamily15hInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionFamily15hInstall.h @@ -43,7 +43,7 @@ #ifndef _OPTION_FAMILY_15H_INSTALL_H_ #define _OPTION_FAMILY_15H_INSTALL_H_ -#include "cpuFamilyTranslation.h" +#include <Proc/CPU/cpuFamilyTranslation.h> /* * Pull in family specific services based on entry point diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionFchInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionFchInstall.h index bf4c208267..4a8237a210 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionFchInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionFchInstall.h @@ -42,7 +42,7 @@ #ifndef _OPTION_FCH_INSTALL_H_ #define _OPTION_FCH_INSTALL_H_ -#include "AmdFch.h" +#include <Proc/Common/AmdFch.h> #ifndef FCH_SUPPORT #define FCH_SUPPORT FALSE diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionGnbInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionGnbInstall.h index 022eee3cf7..f6fc162919 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionGnbInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionGnbInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_GNB_INSTALL_H_ #define _OPTION_GNB_INSTALL_H_ -#include "S3SaveState.h" +#include <Proc/Common/S3SaveState.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. * Check to validate the definition @@ -82,13 +82,13 @@ // Service installation //--------------------------------------------------------------------------------------------------- - #include "Gnb.h" - #include "GnbPcie.h" - #include "GnbGfx.h" + #include <Proc/GNB/Common/Gnb.h> + #include <Proc/GNB/Common/GnbPcie.h> + #include <Proc/GNB/Common/GnbGfx.h> #define SERVICES_POINTER NULL #if (GNB_TYPE_TN == TRUE) - #include "GnbInitTNInstall.h" + #include <Proc/GNB/Modules/GnbInitTN/GnbInitTNInstall.h> #endif GNB_SERVICE *ServiceTable = SERVICES_POINTER; diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionHtInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionHtInstall.h index d6055bcb2e..5069412541 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionHtInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionHtInstall.h @@ -45,10 +45,10 @@ #define _OPTION_HT_INSTALL_H_ #include "Topology.h" -#include "htFeat.h" -#include "htInterface.h" -#include "htNb.h" -#include "htTopologies.h" +#include <Proc/HT/htFeat.h> +#include <Proc/HT/htInterface.h> +#include <Proc/HT/htNb.h> +#include <Proc/HT/htTopologies.h> /* * Advanced Option only, hardware socket naming is the preferred method. */ diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionHtcInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionHtcInstall.h index 0b6f4f0587..671b0fb0a6 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionHtcInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionHtcInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_HTC_INSTALL_H_ #define _OPTION_HTC_INSTALL_H_ -#include "cpuHtc.h" +#include <Proc/CPU/Feature/cpuHtc.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionHwC1eInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionHwC1eInstall.h index 0f85c71043..374ceb49b7 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionHwC1eInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionHwC1eInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_HW_C1E_INSTALL_H_ #define _OPTION_HW_C1E_INSTALL_H_ -#include "cpuHwC1e.h" +#include <Proc/CPU/Feature/cpuHwC1e.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionIdsInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionIdsInstall.h index 83c28d2fdd..a60667f293 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionIdsInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionIdsInstall.h @@ -43,8 +43,8 @@ #define _OPTION_IDS_INSTALL_H_ #include "Ids.h" #include "IdsHt.h" -#include "IdsLib.h" -#include "IdsDebugPrint.h" +#include <Proc/IDS/IdsLib.h> +#include <Proc/IDS/Debug/IdsDebugPrint.h> #ifdef __IDS_EXTENDED__ #include OPTION_IDS_EXT_INSTALL_FILE #endif diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionIoCstateInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionIoCstateInstall.h index b94b043df5..b83ee6b04d 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionIoCstateInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionIoCstateInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_IO_CSTATE_INSTALL_H_ #define _OPTION_IO_CSTATE_INSTALL_H_ -#include "cpuIoCstate.h" +#include <Proc/CPU/Feature/cpuIoCstate.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionL3FeaturesInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionL3FeaturesInstall.h index 981e7c97b6..5d188e2a96 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionL3FeaturesInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionL3FeaturesInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_L3_FEATURES_INSTALL_H_ #define _OPTION_L3_FEATURES_INSTALL_H_ -#include "cpuL3Features.h" +#include <Proc/CPU/Feature/cpuL3Features.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionMemory.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionMemory.h index 017c9812da..2494ba98d9 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionMemory.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionMemory.h @@ -45,11 +45,11 @@ #define _OPTION_MEMORY_H_ /* Memory Includes */ -#include "mm.h" -#include "mn.h" -#include "mt.h" -#include "ma.h" -#include "mp.h" +#include <Proc/Mem/mm.h> +#include <Proc/Mem/mn.h> +#include <Proc/Mem/mt.h> +#include <Proc/Mem/ma.h> +#include <Proc/Mem/mp.h> /*---------------------------------------------------------------------------------------- * M I X E D (Definitions And Macros / Typedefs, Structures, Enums) *---------------------------------------------------------------------------------------- diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionMemoryRecovery.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionMemoryRecovery.h index 713e73d65f..710d218100 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionMemoryRecovery.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionMemoryRecovery.h @@ -44,9 +44,9 @@ #ifndef _OPTION_MEMORY_RECOVERY_H_ #define _OPTION_MEMORY_RECOVERY_H_ -#include "mm.h" -#include "mn.h" -#include "mt.h" +#include <Proc/Mem/mm.h> +#include <Proc/Mem/mn.h> +#include <Proc/Mem/mt.h> typedef BOOLEAN MEM_REC_NB_CONSTRUCTOR ( IN OUT MEM_NB_BLOCK *NBPtr, diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionMmioMapInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionMmioMapInstall.h index f43ff86e3a..5ba255d36c 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionMmioMapInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionMmioMapInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_MMIO_MAP_INSTALL_H_ #define _OPTION_MMIO_MAP_INSTALL_H_ -#include "mmioMapManager.h" +#include <Proc/CPU/mmioMapManager.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionMsgBasedC1eInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionMsgBasedC1eInstall.h index 986690bd36..6d0aeef50e 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionMsgBasedC1eInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionMsgBasedC1eInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_MSG_BASED_C1E_INSTALL_H_ #define _OPTION_MSG_BASED_C1E_INSTALL_H_ -#include "cpuMsgBasedC1e.h" +#include <Proc/CPU/Feature/cpuMsgBasedC1e.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionPreserveMailboxInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionPreserveMailboxInstall.h index d42175c867..310dc5419a 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionPreserveMailboxInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionPreserveMailboxInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_PRESERVE_MAILBOX_INSTALL_H_ #define _OPTION_PRESERVE_MAILBOX_INSTALL_H_ -#include "PreserveMailbox.h" +#include <Proc/CPU/Feature/PreserveMailbox.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionPsiInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionPsiInstall.h index 83e473489c..0053a49a8d 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionPsiInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionPsiInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_PSI_INSTALL_H_ #define _OPTION_PSI_INSTALL_H_ -#include "cpuPsi.h" +#include <Proc/CPU/Feature/cpuPsi.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionPstate.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionPstate.h index 1ffaf94638..2b576b1da9 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionPstate.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionPstate.h @@ -44,7 +44,7 @@ #ifndef _OPTION_PSTATE_H_ #define _OPTION_PSTATE_H_ -#include "cpuPstateTables.h" +#include <Proc/CPU/Feature/cpuPstateTables.h> /*---------------------------------------------------------------------------------------- * M I X E D (Definitions And Macros / Typedefs, Structures, Enums) diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateHpcModeInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateHpcModeInstall.h index 6b7f7f7ff2..5106ed263a 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateHpcModeInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateHpcModeInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_PSTATE_HPC_MODE_INSTALL_H_ #define _OPTION_PSTATE_HPC_MODE_INSTALL_H_ -#include "cpuPstateHpcMode.h" +#include <Proc/CPU/Feature/cpuPstateHpcMode.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateInstall.h index 18f22ac3a8..e80a69ddb3 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionPstateInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_PSTATE_INSTALL_H_ #define _OPTION_PSTATE_INSTALL_H_ -#include "cpuPstateTables.h" +#include <Proc/CPU/Feature/cpuPstateTables.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionS3ScriptInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionS3ScriptInstall.h index 5b62bdf6dc..f47004201d 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionS3ScriptInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionS3ScriptInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_S3SCRIPT_INSTALL_H_ #define _OPTION_S3SCRIPT_INSTALL_H_ -#include "S3SaveState.h" +#include <Proc/Common/S3SaveState.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. * Check to validate the definition diff --git a/src/vendorcode/amd/agesa/f15tn/Include/OptionSwC1eInstall.h b/src/vendorcode/amd/agesa/f15tn/Include/OptionSwC1eInstall.h index 34886eee14..4fa53ce0a7 100644 --- a/src/vendorcode/amd/agesa/f15tn/Include/OptionSwC1eInstall.h +++ b/src/vendorcode/amd/agesa/f15tn/Include/OptionSwC1eInstall.h @@ -44,7 +44,7 @@ #ifndef _OPTION_SW_C1E_INSTALL_H_ #define _OPTION_SW_C1E_INSTALL_H_ -#include "cpuSwC1e.h" +#include <Proc/CPU/Feature/cpuSwC1e.h> /* This option is designed to be included into the platform solution install * file. The platform solution install file will define the options status. |