mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-20 04:21:29 +00:00
fix board name with dash
This commit is contained in:
parent
3f788a4e5a
commit
1cccbaf7ec
@ -116,7 +116,7 @@ INC += \
|
||||
$(TOP)/$(FAMILY_PATH) \
|
||||
$(TOP)/src \
|
||||
|
||||
BOARD_UPPER = $(shell echo $(BOARD) | tr a-z A-Z)
|
||||
BOARD_UPPER = $(shell echo $(subst -,_,$(BOARD)) | tr a-z A-Z)
|
||||
CFLAGS += -DBOARD_$(BOARD_UPPER)
|
||||
|
||||
# Log level is mapped to TUSB DEBUG option
|
||||
|
@ -182,6 +182,7 @@ function(family_configure_common TARGET RTOS)
|
||||
family_add_rtos(${TARGET} ${RTOS})
|
||||
|
||||
string(TOUPPER ${BOARD} BOARD_UPPER)
|
||||
string(REPLACE "-" "_" BOARD_UPPER ${BOARD_UPPER})
|
||||
target_compile_definitions(${TARGET} PUBLIC
|
||||
BOARD_${BOARD_UPPER}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user