aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/gigabyte/ga-b75m-d3h/Kconfig
diff options
context:
space:
mode:
authorAlex James <theracermaster@gmail.com>2019-05-15 20:42:27 -0500
committerPatrick Georgi <pgeorgi@google.com>2019-05-29 20:01:52 +0000
commit1bffc4bda3b66ba2c91163ec396c54e51d2f056b (patch)
treee7394b8b4c4a35b29a31af8343ab4374d7fadc09 /src/mainboard/gigabyte/ga-b75m-d3h/Kconfig
parentedbcd057e6e8a991c8473a0da05081452db2f8f5 (diff)
mb/gigabyte/ga-b75m-d3{h,v}: Switch to variant setup
The Gigabyte GA-B75M-D3H/D3V mainboard trees share a lot of duplicate code, and can serve as a base for porting other Gigabyte 7 series motherboards. Switch the Gigabyte GA-B75M-D3H/D3V mainboard trees to a variant setup, defining ga-b75m-d3v as a variant of ga-b75m-d3h. Signed-off-by: Alex James <theracermaster@gmail.com> Change-Id: Ia175207a2568aefe1aa9bd8d4d990de6a26f1657 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32708 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/gigabyte/ga-b75m-d3h/Kconfig')
-rw-r--r--src/mainboard/gigabyte/ga-b75m-d3h/Kconfig17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/mainboard/gigabyte/ga-b75m-d3h/Kconfig b/src/mainboard/gigabyte/ga-b75m-d3h/Kconfig
index af884f62fb..ceb2dbc85f 100644
--- a/src/mainboard/gigabyte/ga-b75m-d3h/Kconfig
+++ b/src/mainboard/gigabyte/ga-b75m-d3h/Kconfig
@@ -1,4 +1,4 @@
-if BOARD_GIGABYTE_GA_B75M_D3H
+if BOARD_GIGABYTE_GA_B75M_D3H || BOARD_GIGABYTE_GA_B75M_D3V
config BOARD_SPECIFIC_OPTIONS
def_bool y
@@ -30,12 +30,23 @@ config MAINBOARD_DIR
string
default gigabyte/ga-b75m-d3h
+config VARIANT_DIR
+ string
+ default "ga-b75m-d3h" if BOARD_GIGABYTE_GA_B75M_D3H
+ default "ga-b75m-d3v" if BOARD_GIGABYTE_GA_B75M_D3V
+
config MAINBOARD_PART_NUMBER
string
- default "GA-B75M-D3H"
+ default "GA-B75M-D3H" if BOARD_GIGABYTE_GA_B75M_D3H
+ default "GA-B75M-D3V" if BOARD_GIGABYTE_GA_B75M_D3V
config MAX_CPUS
int
default 8
-endif # BOARD_GIGABYTE_GA_B75M_D3H
+# Override the default variant behavior, since the data.vbt is the same
+config INTEL_GMA_VBT_FILE
+ string
+ default "src/mainboard/$(MAINBOARDDIR)/data.vbt"
+
+endif # BOARD_GIGABYTE_GA_B75M*