summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/Makefile.inc
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-10-23 11:29:35 -0600
committerMartin Roth <martinroth@google.com>2017-11-03 15:19:05 +0000
commitd540d740b6e76ece7a3fbd5d8803f652a176b50c (patch)
tree987e3c4dd96e0ada95ec7cb8f10b90b1dabe0608 /src/mainboard/google/kahlee/Makefile.inc
parentfa7d2a07fec4ecd1564d9b84f366a5f82d967c21 (diff)
mainboard/google/kahlee: Prepare for variants
Move files that are particularly specific to the mainboard into the variant directory. Files that only have small areas of mainboard specific pieces use #if to separate between the boards. Add memory.c to split out the variant board id into a weak function. Add baseboard/gpio.h to satisfy the build - this will be updated in the next commit. BUG=b:68293392 Change-Id: I7c1beb45f571f2547f3b5b0d7ec78923d0cec761 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/22185 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/kahlee/Makefile.inc')
-rw-r--r--src/mainboard/google/kahlee/Makefile.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainboard/google/kahlee/Makefile.inc b/src/mainboard/google/kahlee/Makefile.inc
index fb381bf554..131eba38c5 100644
--- a/src/mainboard/google/kahlee/Makefile.inc
+++ b/src/mainboard/google/kahlee/Makefile.inc
@@ -17,22 +17,25 @@ bootblock-y += bootblock/bootblock.c
bootblock-y += BiosCallOuts.c
bootblock-y += bootblock/OemCustomize.c
bootblock-y += ec.c
-bootblock-y += gpio.c
romstage-y += BiosCallOuts.c
romstage-y += boardid.c
romstage-y += chromeos.c
-romstage-y += gpio.c
romstage-y += OemCustomize.c
ramstage-y += BiosCallOuts.c
ramstage-y += boardid.c
ramstage-y += chromeos.c
ramstage-y += ec.c
-ramstage-y += gpio.c
ramstage-y += OemCustomize.c
verstage-y += chromeos.c
verstage-y += ec.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