summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/bare-arm/Makefile1
-rw-r--r--ports/minimal/Makefile2
2 files changed, 3 insertions, 0 deletions
diff --git a/ports/bare-arm/Makefile b/ports/bare-arm/Makefile
index a515db80e..7cb343281 100644
--- a/ports/bare-arm/Makefile
+++ b/ports/bare-arm/Makefile
@@ -14,6 +14,7 @@ INC += -I$(BUILD)
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
CFLAGS = $(INC) -Wall -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
+CSUPEROPT = -Os # save some code space
#Debugging/Optimization
ifeq ($(DEBUG), 1)
diff --git a/ports/minimal/Makefile b/ports/minimal/Makefile
index b3e27509f..f26a7ec97 100644
--- a/ports/minimal/Makefile
+++ b/ports/minimal/Makefile
@@ -28,6 +28,8 @@ CFLAGS = -m32 $(INC) -Wall -Werror -std=c99 $(COPT)
LDFLAGS = -m32 -Wl,-Map=$@.map,--cref -Wl,--gc-sections
endif
+CSUPEROPT = -Os # save some code space
+
# Tune for Debugging or Optimization
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -ggdb