aboutsummaryrefslogtreecommitdiffstats
path: root/examples/docker.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docker.mk')
-rw-r--r--examples/docker.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/docker.mk b/examples/docker.mk
new file mode 100644
index 0000000..dd9acc2
--- /dev/null
+++ b/examples/docker.mk
@@ -0,0 +1,17 @@
+# Use Docker images
+DOCKER=docker
+#DOCKER=podman
+#
+PWD = $(shell pwd)
+DOCKERARGS = run --rm -v $(PWD)/../..:/src \
+ -w /src/examples/$(notdir $(PWD))
+
+
+GHDL = $(DOCKER) $(DOCKERARGS) ghdl/synth:beta ghdl
+GHDLSYNTH = ghdl
+YOSYS = $(DOCKER) $(DOCKERARGS) ghdl/synth:beta yosys
+NEXTPNR = $(DOCKER) $(DOCKERARGS) ghdl/synth:nextpnr-ecp5 nextpnr-ecp5
+ECPPACK = $(DOCKER) $(DOCKERARGS) ghdl/synth:trellis ecppack
+OPENOCD = $(DOCKER) $(DOCKERARGS) --device /dev/bus/usb ghdl/synth:prog openocd
+
+