Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60379 )
Change subject: mb/google/brya: Rework BOARD_GOOGLE_BASEBOARD_* Kconfig ......................................................................
mb/google/brya: Rework BOARD_GOOGLE_BASEBOARD_* Kconfig
Current mainboard code supports different baseboard binding example: brya uses BOARD_GOOGLE_BASEBOARD_BRYA and brask uses BOARD_GOOGLE_BASEBOARD_BRASK Kconfig.
This patch introduces the `BASEBOARD_GOOGLE_BRYA` Kconfig option so if clause don't need to add specific baseboard binding Kconfig everytime with introduction of newer mainboard in future.
Tested with BUILD_TIMELESS=1, brya remains identical.
Signed-off-by: Subrata Banik subratabanik@google.com Change-Id: I754159447e68b8ac2ea21009cc801fc5ba5df56e --- M src/mainboard/google/brya/Kconfig 1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/60379/1
diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index 83376f7..4626441 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -1,5 +1,9 @@ +config BASEBOARD_GOOGLE_BRYA + def_bool n + config BOARD_GOOGLE_BASEBOARD_BRYA def_bool n + select BASEBOARD_GOOGLE_BRYA select CHROMEOS_DRAM_PART_NUMBER_IN_CBI if CHROMEOS select HAVE_SPD_IN_CBFS select SOC_INTEL_ALDERLAKE_PCH_P @@ -7,6 +11,7 @@
config BOARD_GOOGLE_BASEBOARD_BRASK def_bool n + select BASEBOARD_GOOGLE_BRYA select SPD_CACHE_IN_FMAP select ENABLE_TCSS_DISPLAY_DETECTION if RUN_FSP_GOP select RT8168_GET_MAC_FROM_VPD @@ -14,7 +19,7 @@ select RT8168_GEN_ACPI_POWER_RESOURCE select SOC_INTEL_ALDERLAKE_PCH_P
-if BOARD_GOOGLE_BASEBOARD_BRYA || BOARD_GOOGLE_BASEBOARD_BRASK +if BASEBOARD_GOOGLE_BRYA
config BOARD_GOOGLE_BRYA_COMMON def_bool y @@ -187,4 +192,4 @@
endchoice
-endif # BOARD_GOOGLE_BASEBOARD_BRYA || BOARD_GOOGLE_BASEBOARD_BRASK +endif # BASEBOARD_GOOGLE_BRYA