Browse Source

Add dockerfile & make target for GateMate FPGA toolchain

master
T. Meissner 1 year ago
parent
commit
4846357602
2 changed files with 18 additions and 3 deletions
  1. +9
    -3
      Makefile
  2. +9
    -0
      gatemate.Dockerfile

+ 9
- 3
Makefile View File

@ -1,4 +1,4 @@
.PHONY: symbiyosys ghdl-formal riscv-gcc all NOCACHE clean copy
.PHONY: symbiyosys ghdl-formal riscv-gcc gatemate all NOCACHE clean copy
# Support for make environment variable NOCACHE
ifeq (NOCACHE,$(lastword $(MAKECMDGOALS)))
@ -19,15 +19,20 @@ else
endif
all: symbiyosys ghdl-formal riscv-gcc
all: symbiyosys ghdl-formal riscv-gcc gatemate
copy: copy-ghdl copy-riscv
copy-ghdl: ghdl-formal_${TAG}.tar.gz
copy-riscv: riscv-gcc_${TAG}.tar.gz
packages/gatemate-toolchain.tar.gz:
curl https://colognechip.com/downloads/cc-toolchain-linux.tar.gz --output $@
gatemate: packages/gatemate-toolchain.tar.gz
.SECONDEXPANSION:
symbiyosys ghdl-formal riscv-gcc: $$@.Dockerfile
symbiyosys ghdl-formal riscv-gcc gatemate: $$@.Dockerfile
docker build ${OPTIONS} -t $@:${TAG} -f $@.Dockerfile .
@ -43,3 +48,4 @@ symbiyosys ghdl-formal riscv-gcc: $$@.Dockerfile
clean:
rm -rf artefacts
rm -f *.tar.*
rm -f packages/gatemate-toolchain.tar.gz

+ 9
- 0
gatemate.Dockerfile View File

@ -0,0 +1,9 @@
FROM hdlc/ghdl:yosys as gatemate
COPY packages/gatemate-toolchain.tar.gz /root/
RUN cd /root && \
tar xf gatemate-toolchain.tar.gz -C /opt/ && \
rm gatemate-toolchain.tar.gz
## Enhance path variable
ENV PATH "/opt/cc-toolchain-linux/bin/p_r:$PATH"

Loading…
Cancel
Save