fomu-workshop/hdl/container.mk

13 lines
463 B
Makefile

CONTAINER_ENGINE ?= docker
PWD = $(shell pwd)
CONTAINER_ARGS = run \
--rm \
-v /$(PWD)/../../..://wrk \
-w //wrk/hdl/$(notdir $(shell dirname $(PWD)))/$(notdir $(PWD))
GHDL = $(CONTAINER_ENGINE) $(CONTAINER_ARGS) hdlc/ghdl:yosys ghdl
YOSYS = $(CONTAINER_ENGINE) $(CONTAINER_ARGS) hdlc/ghdl:yosys yosys
NEXTPNR = $(CONTAINER_ENGINE) $(CONTAINER_ARGS) hdlc/nextpnr:ice40 nextpnr-ice40
ICEPACK = $(CONTAINER_ENGINE) $(CONTAINER_ARGS) hdlc/icestorm icepack