summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-01-17 12:36:39 +0700
committerGitHub <[email protected]>2022-01-17 12:36:39 +0700
commitefc29baead577185c577bf8e313f4c411f4eae9e (patch)
tree1a081093d4196ae478d2bf8e3e8136d81c2dc77e /examples/make.mk
parent8d373b08879ac382c59dcbfb2d351d4af35e3d00 (diff)
parent976405dea3bc421cd3631b3af93380bdb122af66 (diff)
Merge branch 'master' into port-ft90x
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk
index 793c40aa2..bed46d02b 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -54,6 +54,8 @@ endif
#-------------- Cross Compiler ------------
# Can be set by board, default to ARM GCC
CROSS_COMPILE ?= arm-none-eabi-
+# Allow for -Os to be changed by board makefiles in case -Os is not allowed
+CFLAGS_OPTIMIZED ?= -Os
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
@@ -112,7 +114,7 @@ CFLAGS += \
ifeq ($(DEBUG), 1)
CFLAGS += -Og
else
- CFLAGS += -Os
+ CFLAGS += $(CFLAGS_OPTIMIZED)
endif
# Log level is mapped to TUSB DEBUG option