summaryrefslogtreecommitdiff
path: root/src/vendorcode/intel
diff options
context:
space:
mode:
authorSubrata Banik <subi.banik@gmail.com>2021-12-09 02:11:08 +0530
committerSubrata Banik <subrata.banik@intel.com>2021-12-10 04:48:57 +0000
commit362dac6d6d2e1b595a70d2f39f8b1647548da07b (patch)
treea7f648e2efb21b719121ac7892651d8c1b9198f3 /src/vendorcode/intel
parentde6b489ec52763ba1a6fa65a275c5f457f5d8238 (diff)
vendorcode/intel: Rework UDK binding Kconfig
coreboot code currently supports different UDK binding as per underlying FSP requirement, example: ICL and TGL uses UDK_2017_BINDING while ADL uses UDK_202005_BINDING Kconfig. These UDK binding Kconfigs are being used to choose the correct UDK_VERSION. This patch introduces `UDK_BASE` Kconfig option so UDK_VERSION if clause don't need to add specific UDK binding Kconfig everytime with introduction of newer UDK bindings in future. Tested with BUILD_TIMELESS=1, Hatch remains identical. Change-Id: I64c51aa06a14f0ce541537363870ac3925b79a68 Signed-off-by: Subrata Banik <subi.banik@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59985 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/vendorcode/intel')
-rw-r--r--src/vendorcode/intel/Kconfig11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vendorcode/intel/Kconfig b/src/vendorcode/intel/Kconfig
index 6b7e49530b..5e75143eb6 100644
--- a/src/vendorcode/intel/Kconfig
+++ b/src/vendorcode/intel/Kconfig
@@ -1,18 +1,25 @@
## SPDX-License-Identifier: GPL-2.0-only
+config UDK_BASE
+ def_bool n
+
config UEFI_2_4_BINDING
def_bool n
+ select UDK_BASE
config UDK_2015_BINDING
def_bool n
+ select UDK_BASE
config UDK_2017_BINDING
def_bool n
+ select UDK_BASE
config UDK_202005_BINDING
def_bool n
+ select UDK_BASE
-if (UEFI_2_4_BINDING || UDK_2015_BINDING || UDK_2017_BINDING || UDK_202005_BINDING)
+if UDK_BASE
config UDK_2013_VERSION
int
default 2013
@@ -37,4 +44,4 @@ config UDK_VERSION
default UDK_2013_VERSION
help
UEFI Development Kit version for Platform
-endif # {UEFI,UDK}_BINDING
+endif # UDK_BASE