summaryrefslogtreecommitdiff
path: root/src/mainboard/google/herobrine
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2023-11-14 15:41:03 -0800
committerJulius Werner <jwerner@chromium.org>2023-11-22 01:49:57 +0000
commit53b79bef610d00c500d2acec7da6eb02e809fcf6 (patch)
treeb0f3805a7af21e9852170d689529c22aadde424b /src/mainboard/google/herobrine
parent6f74bc60281c26cc5c92c1b6f4bc3a27d76b9331 (diff)
google/*: Clean up Kconfig board selection for non-MTK Google Arm boards
This patch unifies and simplifies the Kconfig selection model for the Gru, Herobrine, Trogdor and Veyron boards according to the model discussed in CB:78972. Also add missing license headers to two Kconfig files while I'm here. Change-Id: If679a05afd10869afba9c2a33b54862e102b5f40 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79022 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/herobrine')
-rw-r--r--src/mainboard/google/herobrine/Kconfig46
1 files changed, 14 insertions, 32 deletions
diff --git a/src/mainboard/google/herobrine/Kconfig b/src/mainboard/google/herobrine/Kconfig
index 45f296cb28..8758fb9c4f 100644
--- a/src/mainboard/google/herobrine/Kconfig
+++ b/src/mainboard/google/herobrine/Kconfig
@@ -1,39 +1,21 @@
-config BOARD_GOOGLE_HEROBRINE_COMMON # Umbrella option to be selected by variants
- def_bool n
-
-config BOARD_GOOGLE_HEROBRINE
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_HEROBRINE_REV0
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_SENOR
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_PIGLIN
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_HOGLIN
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_VILLAGER
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_EVOKER
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_ZOGLIN
- select BOARD_GOOGLE_HEROBRINE_COMMON
-
-config BOARD_GOOGLE_ZOMBIE
- select BOARD_GOOGLE_HEROBRINE_COMMON
+## SPDX-License-Identifier: GPL-2.0-only
+
+config BOARD_GOOGLE_HEROBRINE_COMMON
+ def_bool BOARD_GOOGLE_EVOKER || \
+ BOARD_GOOGLE_HEROBRINE || \
+ BOARD_GOOGLE_HEROBRINE_REV0 || \
+ BOARD_GOOGLE_HOGLIN || \
+ BOARD_GOOGLE_PIGLIN || \
+ BOARD_GOOGLE_SENOR || \
+ BOARD_GOOGLE_VILLAGER || \
+ BOARD_GOOGLE_ZOGLIN || \
+ BOARD_GOOGLE_ZOMBIE
if BOARD_GOOGLE_HEROBRINE_COMMON
config HEROBRINE_HAS_FINGERPRINT
- bool
- default y if BOARD_GOOGLE_HEROBRINE || BOARD_GOOGLE_HEROBRINE_REV0
- default n
+ def_bool BOARD_GOOGLE_HEROBRINE || \
+ BOARD_GOOGLE_HEROBRINE_REV0
config BOARD_SPECIFIC_OPTIONS
def_bool y