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 += \
36
36
-isystem ./../../lib/cmsis/inc \
37
37
-I$(BUILD )
38
38
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
57
40
58
41
DISABLE_WARNINGS = -Wno-cast-align
59
42
CFLAGS += $(INC ) -Wall -Werror -std=gnu11 -fshort-enums $(BASE_CFLAGS ) $(CFLAGS_MOD ) $(COPT ) $(DISABLE_WARNINGS ) -Werror=missing-prototypes
@@ -65,7 +48,7 @@ CFLAGS += \
65
48
-mcpu=cortex-m0plus \
66
49
-msoft-float \
67
50
-mfloat-abi=soft \
68
- --specs=nano.specs
51
+ --specs=nano.specs
69
52
70
53
# Use toolchain libm if we're not using our own.
71
54
ifndef INTERNAL_LIBM
Original file line number Diff line number Diff line change 1
1
LONGINT_IMPL = MPZ
2
2
INTERNAL_LIBM = 1
3
3
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
+
4
8
# The port manages flash itself instead of using SPI flash via busio.SPI.
5
9
INTERNAL_FLASH_FILESYSTEM = 1
6
10
You can’t perform that action at this time.
0 commit comments