mb/google/hatch: fix variants' selection of CHROMEOS_DSM_CALIB

CHROMEOS_DSM_CALIB requires/selects CHROMEOS, so only select if
CHROMEOS already selected, otherwise building for non-ChromeOS
targets fails.

Test: build HELIOS for non-ChromeOS target (Tianocore payload)

Change-Id: Ic0fd3b0a0efbc5a1f6896eb379569a55cb0f67f8
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42414
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Matt DeVillier 2020-06-16 01:17:29 -05:00 committed by Patrick Georgi
parent d8aff6098a
commit 7583ffbb60
1 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ config BOARD_GOOGLE_KINDRED
config BOARD_GOOGLE_HELIOS
bool "-> Helios"
select BOARD_GOOGLE_BASEBOARD_HATCH
select CHROMEOS_DSM_CALIB
select CHROMEOS_DSM_CALIB if CHROMEOS
select DRIVERS_I2C_RT1011
config BOARD_GOOGLE_MUSHU
@ -58,13 +58,13 @@ config BOARD_GOOGLE_MUSHU
config BOARD_GOOGLE_PALKIA
bool "-> Palkia"
select BOARD_GOOGLE_BASEBOARD_HATCH
select CHROMEOS_DSM_CALIB
select CHROMEOS_DSM_CALIB if CHROMEOS
select DRIVERS_I2C_RT1011
config BOARD_GOOGLE_NIGHTFURY
bool "-> Nightfury"
select BOARD_GOOGLE_BASEBOARD_HATCH
select CHROMEOS_DSM_CALIB
select CHROMEOS_DSM_CALIB if CHROMEOS
select DRIVERS_I2C_MAX98390
config BOARD_GOOGLE_NOIBAT
@ -79,7 +79,7 @@ config BOARD_GOOGLE_PUFF
config BOARD_GOOGLE_HELIOS_DISKSWAP
bool "-> Helios_Diskswap"
select BOARD_GOOGLE_BASEBOARD_HATCH
select CHROMEOS_DSM_CALIB
select CHROMEOS_DSM_CALIB if CHROMEOS
select DRIVERS_I2C_RT1011
config BOARD_GOOGLE_STRYKE