aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy/Makefile.inc
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-04-13 14:15:56 -0700
committerFurquan Shaikh <furquan@google.com>2017-04-19 19:16:34 +0200
commit76c392d29481129ed425df62739666b94a3438d0 (patch)
tree1df0aa27e493b28d6b67428c20166489780f0bf8 /src/mainboard/google/poppy/Makefile.inc
parent3189ea6dd19c9a9df25af687cfaa014f37b68dd9 (diff)
mainboard/google/poppy: Provide baseboard and variant concepts
In order to be able to share code across different poppy variants, provide the concept of baseboard and variants. New directory layout: variants/baseboard - code variants/baseboard/include/baseboard - headers variants/poppy - code variants/poppy/include/variant - headers New boards would then add themselves under their board name within "variants" directory. This is purely an organizational change. BUG=b:37375693 Change-Id: If6c1c5f479cfffe768abf27495d379744104e2dc Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/19322 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/poppy/Makefile.inc')
-rw-r--r--src/mainboard/google/poppy/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/Makefile.inc b/src/mainboard/google/poppy/Makefile.inc
index 64a948c059..b151b0c140 100644
--- a/src/mainboard/google/poppy/Makefile.inc
+++ b/src/mainboard/google/poppy/Makefile.inc
@@ -30,3 +30,9 @@ ramstage-y += mainboard.c
ramstage-y += ramstage.c
smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
+
+subdirs-y += variants/baseboard
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include
+
+subdirs-y += variants/$(VARIANT_DIR)
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include