mb/siemens/chili: Rework Kconfig

Rework Kconfig file so that each variant has its own config option with
their specific selects / configuration and move common selects to a
seperate config option, which is used as base for each variant.

Built chili/base with BUILD_TIMELESS=1, coreboot.rom remains the same.

Change-Id: I5e2a09db80232457b2f78ad9b100c468d281f753
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49063
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Felix Singer 2021-01-03 21:34:26 +00:00 committed by Nico Huber
parent 086f2f6860
commit 0ab6f0bd4c
2 changed files with 20 additions and 10 deletions

View File

@ -1,29 +1,37 @@
# SPDX-License-Identifier: GPL-2.0-only
if BOARD_SIEMENS_CHILI_BASE || BOARD_SIEMENS_CHILI_CHILI
config BOARD_SPECIFIC_OPTIONS
def_bool y
config BOARD_SIEMENS_CHILI_COMMON
def_bool n
select BOARD_ROMSIZE_KB_32768
select DRIVERS_I2C_GENERIC
select DRIVERS_I2C_HID
select DRIVERS_I2C_LM96000 if BOARD_SIEMENS_CHILI_CHILI
select DRIVERS_UART_8250IO if BOARD_SIEMENS_CHILI_BASE
select EC_ACPI
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
select INTEL_LPSS_UART_FOR_CONSOLE if BOARD_SIEMENS_CHILI_CHILI
select MAINBOARD_HAS_LIBGFXINIT
select MAINBOARD_HAS_LPC_TPM
select MAINBOARD_HAS_TPM2
select MAINBOARD_USES_IFD_GBE_REGION
select SMBIOS_PROVIDED_BY_MOBO if BOARD_SIEMENS_CHILI_CHILI
select SOC_INTEL_CANNONLAKE_PCH_H
select SOC_INTEL_COFFEELAKE
select SOC_INTEL_COMMON_BLOCK_HDA_VERB if BOARD_SIEMENS_CHILI_CHILI
select SECUNET_DMI if BOARD_SIEMENS_CHILI_CHILI
config BOARD_SIEMENS_CHILI_BASE_OPTIONS
bool
select BOARD_SIEMENS_CHILI_COMMON
select DRIVERS_UART_8250IO
config BOARD_SIEMENS_CHILI_CHILI_OPTIONS
bool
select BOARD_SIEMENS_CHILI_COMMON
select DRIVERS_I2C_LM96000
select INTEL_LPSS_UART_FOR_CONSOLE
select SECUNET_DMI
select SMBIOS_PROVIDED_BY_MOBO
select SOC_INTEL_COMMON_BLOCK_HDA_VERB
if BOARD_SIEMENS_CHILI_COMMON
config MAINBOARD_DIR
string

View File

@ -4,6 +4,8 @@ comment "CHILI"
config BOARD_SIEMENS_CHILI_BASE
bool "-> Base board"
select BOARD_SIEMENS_CHILI_BASE_OPTIONS
config BOARD_SIEMENS_CHILI_CHILI
bool "-> Chili (AiO)"
select BOARD_SIEMENS_CHILI_CHILI_OPTIONS