diff options
author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2021-02-02 15:09:15 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-02-02 21:25:13 +1100 |
commit | 5ef71cd16793ab254a1f0e7dd46bb9f0c5809f44 (patch) | |
tree | 7de03429bc4a929145b21f14b3fbdf77ea77b375 | |
parent | 7be1f7790278d2c40e7a828e340c43f257c7d748 (diff) |
stm32/mboot: Change debug compiler optimisation from -O0 to -Og.
With mboot encrpytion and fsload enabled, the DEBUG build -O0 compiler
settings result in mboot no longer fitting in the 32k sector. This commit
changes this to -Og which also brings it into line with the regular stm32
build.
-rwxr-xr-x | ports/stm32/mboot/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/mboot/Makefile b/ports/stm32/mboot/Makefile index ad2fda3ee..0c9244259 100755 --- a/ports/stm32/mboot/Makefile +++ b/ports/stm32/mboot/Makefile @@ -92,7 +92,7 @@ LDFLAGS += --gc-sections # Debugging/Optimization ifeq ($(DEBUG), 1) CFLAGS += -g -DPENDSV_DEBUG -COPT = -O0 +COPT = -Og else COPT += -Os -DNDEBUG endif |