From 90d3b2b0c0d63d58d75cf28616724a41e7951e58 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 19 Apr 2018 10:23:30 +0530 Subject: soc/intel/common: Make infrastructure ready for Intel common stage files Select all Kconfig belongs into Intel SoC Family basecode/stage files and include required headers from include/intelbasecode/ files. BUG=None BRANCH=none TEST=Code is compiling with cannonlake configurations and also booting on cannonlake RVP. Change-Id: Iac99b4346e8bf6e260b00be9fefede5ad7b3e778 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/25734 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/common/Kconfig | 3 +++ src/soc/intel/common/basecode/Kconfig | 12 ++++++++++++ src/soc/intel/common/basecode/Makefile.inc | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 src/soc/intel/common/basecode/Kconfig create mode 100644 src/soc/intel/common/basecode/Makefile.inc diff --git a/src/soc/intel/common/Kconfig b/src/soc/intel/common/Kconfig index 3613965fbf..ea6f10e1f6 100644 --- a/src/soc/intel/common/Kconfig +++ b/src/soc/intel/common/Kconfig @@ -11,6 +11,9 @@ source "src/soc/intel/common/block/Kconfig" comment "Intel SoC Common PCH Code" source "src/soc/intel/common/pch/Kconfig" +comment "Intel SoC Common coreboot stages" +source "src/soc/intel/common/basecode/Kconfig" + config DISPLAY_MTRRS bool "MTRRs: Display the MTRR settings" default n diff --git a/src/soc/intel/common/basecode/Kconfig b/src/soc/intel/common/basecode/Kconfig new file mode 100644 index 0000000000..68aea15671 --- /dev/null +++ b/src/soc/intel/common/basecode/Kconfig @@ -0,0 +1,12 @@ +config SOC_INTEL_COMMON_BASECODE + bool + help + Common coreboot stages for Intel platform + +if SOC_INTEL_COMMON_BASECODE + +comment "Intel platform Common coreboot stage files" +source "src/soc/intel/common/basecode/*/Kconfig" +source "src/soc/intel/common/basecode/*/*/Kconfig" + +endif diff --git a/src/soc/intel/common/basecode/Makefile.inc b/src/soc/intel/common/basecode/Makefile.inc new file mode 100644 index 0000000000..7fdd0e544b --- /dev/null +++ b/src/soc/intel/common/basecode/Makefile.inc @@ -0,0 +1,7 @@ +ifeq ($(CONFIG_SOC_INTEL_COMMON_BASECODE),y) + +subdirs-y += ./* + +CPPFLAGS_common += -I$(src)/soc/intel/common/basecode/include/ + +endif -- cgit v1.2.3