Browse Source

build: When creating verilog define for board name, replace - with _

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut 5 years ago
parent
commit
f33e481214
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build/project-rules.mk

+ 1 - 1
build/project-rules.mk

@@ -51,7 +51,7 @@ PROJ_TOP_SRC  := $(abspath $(PROJ_TOP_SRC))
 # Board config
 PIN_DEF ?= $(abspath data/$(PROJ_TOP_MOD)-$(BOARD).pcf)
 
-BOARD_DEFINE=BOARD_$(shell echo $(BOARD) | tr a-z A-Z)
+BOARD_DEFINE=BOARD_$(shell echo $(BOARD) | tr a-z\- A-Z_)
 YOSYS_READ_ARGS += -D$(BOARD_DEFINE)=1
 
 # Add those to the list