Skip to content

Commit 1cccbaf

Browse files
committed
fix board name with dash
1 parent 3f788a4 commit 1cccbaf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/make.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ INC += \
116116
$(TOP)/$(FAMILY_PATH) \
117117
$(TOP)/src \
118118

119-
BOARD_UPPER = $(shell echo $(BOARD) | tr a-z A-Z)
119+
BOARD_UPPER = $(shell echo $(subst -,_,$(BOARD)) | tr a-z A-Z)
120120
CFLAGS += -DBOARD_$(BOARD_UPPER)
121121

122122
# Log level is mapped to TUSB DEBUG option

hw/bsp/family_support.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ function(family_configure_common TARGET RTOS)
182182
family_add_rtos(${TARGET} ${RTOS})
183183

184184
string(TOUPPER ${BOARD} BOARD_UPPER)
185+
string(REPLACE "-" "_" BOARD_UPPER ${BOARD_UPPER})
185186
target_compile_definitions(${TARGET} PUBLIC
186187
BOARD_${BOARD_UPPER}
187188
)

0 commit comments

Comments
 (0)