From 362dac6d6d2e1b595a70d2f39f8b1647548da07b Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 9 Dec 2021 02:11:08 +0530 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59985 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/vendorcode/intel/Kconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/vendorcode/intel') diff --git a/src/vendorcode/intel/Kconfig b/src/vendorcode/intel/Kconfig index 6b7e49530baf..5e75143eb654 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 -- cgit v1.2.3