File tree Expand file tree Collapse file tree 2 files changed +6
-19
lines changed
Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -36,24 +36,7 @@ INC += \
3636 -isystem ./../../lib/cmsis/inc \
3737 -I$(BUILD )
3838
39- OPTIMIZATION_FLAGS ?= -O3
40- # option to override default optimization level, set in boards/$(BOARD)/mpconfigboard.mk
41- CFLAGS += $(OPTIMIZATION_FLAGS )
42-
43- # flags specific to wifi / cyw43
44- # Debugging/Optimization
45- ifeq ($(DEBUG ) , 1)
46- CFLAGS += -ggdb3 -O3
47- # No LTO because we may place some functions in RAM instead of flash.
48- else
49- CFLAGS += -DNDEBUG
50-
51- # No LTO because we may place some functions in RAM instead of flash.
52-
53- ifdef CFLAGS_BOARD
54- CFLAGS += $(CFLAGS_BOARD )
55- endif
56- endif
39+ CFLAGS += -ggdb3 -Os
5740
5841DISABLE_WARNINGS = -Wno-cast-align
5942CFLAGS += $(INC ) -Wall -Werror -std=gnu11 -fshort-enums $(BASE_CFLAGS ) $(CFLAGS_MOD ) $(COPT ) $(DISABLE_WARNINGS ) -Werror=missing-prototypes
@@ -65,7 +48,7 @@ CFLAGS += \
6548 -mcpu=cortex-m0plus \
6649 -msoft-float \
6750 -mfloat-abi=soft \
68- --specs=nano.specs
51+ --specs=nano.specs
6952
7053# Use toolchain libm if we're not using our own.
7154ifndef INTERNAL_LIBM
Original file line number Diff line number Diff line change 11LONGINT_IMPL = MPZ
22INTERNAL_LIBM = 1
33
4+ # We build .elf files to run in the simulator. Generally, this will be a file
5+ # type supported by the chip family's bootloader.
6+ CIRCUITPY_BUILD_EXTENSIONS = elf
7+
48# The port manages flash itself instead of using SPI flash via busio.SPI.
59INTERNAL_FLASH_FILESYSTEM = 1
610
You can’t perform that action at this time.
0 commit comments