aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-09-29 13:56:35 +0700
committerDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-09-29 14:08:42 +0700
commitb30731ff6cad0b7d00f50c511b3ed3c0ca13a6b2 (patch)
treedd120b452be2a2fa653bd8602aec199b93ab51c2 /Makefile
parent68e4ce488d0a011c2e03c631b5cc0c24dff7e1f8 (diff)
feat: add build option for usb-c version
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 749073b..80b3acc 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ TARGET = badgemagic-ch582
######################################
# Uncomment below line to enable debugging
# DEBUG = 1
+# Uncomment below to build for USB-C version
+# USBC_VERSION = 1
# optimization for size
OPT = -Os
@@ -120,6 +122,10 @@ ifeq ($(DEBUG), 1)
CFLAGS += -g -gdwarf-2 -DDEBUG=$(DEBUG)
endif
+ifeq ($(USBC_VERSION), 1)
+CFLAGS += -DUSBC_VERSION=$(USBC_VERSION)
+endif
+
# Generate dependency information
CFLAGS += -MMD -MP