summaryrefslogtreecommitdiff
path: root/src/mainboard/gigabyte/ga-b75m-d3h/Makefile.inc
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/Makefile.inc
parentedbcd057e6e8a991c8473a0da05081452db2f8f5 (diff)
downloadcoreboot-1bffc4bda3b66ba2c91163ec396c54e51d2f056b.tar.xz
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/Makefile.inc')
-rw-r--r--src/mainboard/gigabyte/ga-b75m-d3h/Makefile.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mainboard/gigabyte/ga-b75m-d3h/Makefile.inc b/src/mainboard/gigabyte/ga-b75m-d3h/Makefile.inc
index 63976c4b79..07fc277c28 100644
--- a/src/mainboard/gigabyte/ga-b75m-d3h/Makefile.inc
+++ b/src/mainboard/gigabyte/ga-b75m-d3h/Makefile.inc
@@ -13,5 +13,10 @@
## GNU General Public License for more details.
##
-romstage-y += gpio.c
-ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
+romstage-y += variants/$(VARIANT_DIR)/gpio.c
+
+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads
+
+subdirs-y += variants/$(VARIANT_DIR)
+
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include