Skip to content

Commit

Permalink
hdl/Makefile: enable early rules termination
Browse files Browse the repository at this point in the history
- set default shell to bash
- add pipefail option

Fixes #412
  • Loading branch information
proppy committed Aug 10, 2021
1 parent 8c35c90 commit 522e5a1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hdl/mixed/blink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ YOSYS ?= yosys
NEXTPNR ?= nextpnr-ice40
ICEPACK ?= icepack

SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

QUIET = @

# If ghdl-yosys-plugin is built as a module (not the case with fomu-toolchain)
Expand Down
3 changes: 3 additions & 0 deletions hdl/verilog/blink-expanded/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ YOSYS ?= yosys
NEXTPNR ?= nextpnr-ice40
ICEPACK ?= icepack

SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

QUIET = @

# If a container engine is used, each tool is executed in a separated container
Expand Down
3 changes: 3 additions & 0 deletions hdl/verilog/blink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ YOSYS ?= yosys
NEXTPNR ?= nextpnr-ice40
ICEPACK ?= icepack

SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

QUIET = @

# If a container engine is used, each tool is executed in a separated container
Expand Down
4 changes: 4 additions & 0 deletions hdl/vhdl/blink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ YOSYS ?= yosys
NEXTPNR ?= nextpnr-ice40
ICEPACK ?= icepack

SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

QUIET = @

# If ghdl-yosys-plugin is built as a module (not the case with fomu-toolchain)
Expand Down Expand Up @@ -39,6 +42,7 @@ $(DESIGN).json: $(VHDL_SYN_FILES)
synth_ice40 \
-top $(TOP) \
-json $@" 2>&1 | tee yosys-report.txt
echo foo

include ../../PnR_Prog.mk

Expand Down

0 comments on commit 522e5a1

Please sign in to comment.