summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-08-04 00:31:12 +0700
committerhathach <[email protected]>2023-08-04 00:31:12 +0700
commitef5bd9ee6cc2506745c0c5d602d4c540da681b69 (patch)
treecf25b4da1827914720fed5b3abb78029da280e7c /examples/make.mk
parent9360a3bd5197792584ede8a33c50a4d3054d84e6 (diff)
parent6d03bb9ffc4c80a0c2663f0b791856af89e20adc (diff)
Merge branch 'master' into enhance-bsp
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/make.mk b/examples/make.mk
index 3c3a920cc..4773189df 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -116,6 +116,8 @@ INC += \
$(TOP)/$(FAMILY_PATH) \
$(TOP)/src \
+BOARD_UPPER = $(shell echo $(subst -,_,$(BOARD)) | tr a-z A-Z)
+CFLAGS += -DBOARD_$(BOARD_UPPER)
# Log level is mapped to TUSB DEBUG option
ifneq ($(LOG),)