summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-08-01 11:18:00 +0700
committerhathach <[email protected]>2023-08-01 11:18:00 +0700
commit1cccbaf7ec12ecf296644e9b51603261a0d586ac (patch)
treeb9798d797da3655be94b61570df3b884ab2e780d /hw
parent3f788a4e5a7758ce51cbcadef4ac21e427cc3c56 (diff)
fix board name with dash
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/family_support.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake
index db1ce988e..8cc7a1420 100644
--- a/hw/bsp/family_support.cmake
+++ b/hw/bsp/family_support.cmake
@@ -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}
)