aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-03-03 16:39:11 -0500
committerRob Austein <sra@hactrn.net>2017-03-03 16:39:11 -0500
commit74415e8d386b5080aaf7270a2d5356ed4f533859 (patch)
tree66fd1104fbb73ee77bea3b48e0ff6f57a8e623fa /build
parentcd91e7201f87184bbcdc290edbf9e8f6c2559b00 (diff)
Allow project and board selection via Makefile variables.
Diffstat (limited to 'build')
-rw-r--r--build/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/Makefile b/build/Makefile
index 9f46771..763ad5e 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -23,7 +23,10 @@ all: $(project).bit
# Build the default core_selector if it doesn't already exist.
CONFIG = $(CORE_TREE)/platform/common/config
-CONFIG_GEN = $(CONFIG)/core_config.py -c $(CONFIG)/core.cfg -b alpha
+CONFIG_BOARD = alpha
+CONFIG_PROJECT = hsm
+CONFIG_GEN = $(CONFIG)/core_config.py -c $(CONFIG)/core.cfg -b $(CONFIG_BOARD) -p $(CONFIG_PROJECT)
+
core_selector.v core_vfiles.mk:
$(CONFIG_GEN)