summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-08-04 11:48:04 +0700
committerGitHub <[email protected]>2023-08-04 11:48:04 +0700
commit1b04db2a777c3bac88c964f8171af0928a55477d (patch)
tree37d65952d6560d8e6a3580379dcd2a3f90860a41 /examples/make.mk
parent2029ca9536e7e889f0f420218136e7bd1ac091fc (diff)
parentde4ad2c7754cd2b11a4a9afafbc82766eccea3b2 (diff)
Merge branch 'master' into master
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),)