aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2018-12-04 15:12:43 -0500
committerPaul Selkirk <paul@psgd.org>2018-12-04 15:12:43 -0500
commitaf8de11dc0b5e138ae78be9d6b7bfa5724be3141 (patch)
tree0dfe502b2fa65efcefaa395b587361b6daaa9e97 /build
parent7be8f9437441b07793e3b0f2a220cb15cc206354 (diff)
Collapse build targets into one rule, because that's exactly what $@ is designed for.
Diffstat (limited to 'build')
-rw-r--r--build/Makefile34
1 files changed, 3 insertions, 31 deletions
diff --git a/build/Makefile b/build/Makefile
index 8115637..4328fbd 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -32,37 +32,9 @@ core_selector.v core_vfiles.mk:
# Build some different configurations
-bare:
- $(CONFIG_GEN) -p bare
- $(MAKE) project=$(project)_bare ucf=$(ucf)
-
-trng:
- $(CONFIG_GEN) -p trng
- $(MAKE) project=$(project)_trng ucf=$(ucf)
-
-hash:
- $(CONFIG_GEN) -p hash
- $(MAKE) project=$(project)_hash ucf=$(ucf)
-
-rsa:
- $(CONFIG_GEN) -p rsa
- $(MAKE) project=$(project)_rsa ucf=$(ucf)
-
-mkmif:
- $(CONFIG_GEN) -p mkmif
- $(MAKE) project=$(project)_mkmif ucf=$(ucf)
-
-hsm:
- $(CONFIG_GEN) -p hsm
- $(MAKE) project=$(project)_hsm ucf=$(ucf)
-
-hsm-super:
- $(CONFIG_GEN) -p hsm-super
- $(MAKE) project=$(project)_hsm-super ucf=$(ucf)
-
-keywrap:
- $(CONFIG_GEN) -p keywrap
- $(MAKE) project=$(project)_keywrap ucf=$(ucf)
+bare trng hash mkmif rsa hsm hsm-super keywrap:
+ $(CONFIG_GEN) -p $@
+ $(MAKE) project=$(project)_$@ ucf=$(ucf)
# Verilog files that always go with builds on this platform.