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>
This commit is contained in:
Subrata Banik 2021-12-09 02:11:08 +05:30 committed by Subrata Banik
parent de6b489ec5
commit 362dac6d6d
1 changed files with 9 additions and 2 deletions

View File

@ -1,18 +1,25 @@
## SPDX-License-Identifier: GPL-2.0-only ## SPDX-License-Identifier: GPL-2.0-only
config UDK_BASE
def_bool n
config UEFI_2_4_BINDING config UEFI_2_4_BINDING
def_bool n def_bool n
select UDK_BASE
config UDK_2015_BINDING config UDK_2015_BINDING
def_bool n def_bool n
select UDK_BASE
config UDK_2017_BINDING config UDK_2017_BINDING
def_bool n def_bool n
select UDK_BASE
config UDK_202005_BINDING config UDK_202005_BINDING
def_bool n 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 config UDK_2013_VERSION
int int
default 2013 default 2013
@ -37,4 +44,4 @@ config UDK_VERSION
default UDK_2013_VERSION default UDK_2013_VERSION
help help
UEFI Development Kit version for Platform UEFI Development Kit version for Platform
endif # {UEFI,UDK}_BINDING endif # UDK_BASE