We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f788a4 commit 1cccbafCopy full SHA for 1cccbaf
examples/make.mk
@@ -116,7 +116,7 @@ INC += \
116
$(TOP)/$(FAMILY_PATH) \
117
$(TOP)/src \
118
119
-BOARD_UPPER = $(shell echo $(BOARD) | tr a-z A-Z)
+BOARD_UPPER = $(shell echo $(subst -,_,$(BOARD)) | tr a-z A-Z)
120
CFLAGS += -DBOARD_$(BOARD_UPPER)
121
122
# Log level is mapped to TUSB DEBUG option
hw/bsp/family_support.cmake
@@ -182,6 +182,7 @@ function(family_configure_common TARGET RTOS)
182
family_add_rtos(${TARGET} ${RTOS})
183
184
string(TOUPPER ${BOARD} BOARD_UPPER)
185
+ string(REPLACE "-" "_" BOARD_UPPER ${BOARD_UPPER})
186
target_compile_definitions(${TARGET} PUBLIC
187
BOARD_${BOARD_UPPER}
188
)
0 commit comments