Changes to add compiler optimization option
This commit is contained in:
parent
2aef9b02bd
commit
d83a4ac72d
|
@ -106,11 +106,11 @@ CFLAGS += -Os -DNDEBUG
|
|||
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAMD51 -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
|
||||
endif
|
||||
|
||||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
ifdef OPTIMIZATION_LEVEL
|
||||
CFLAGS += -O$(OPTIMIZATION_LEVEL)
|
||||
endif
|
||||
|
||||
|
||||
$(echo PERIPHERALS_CHIP_FAMILY=$(PERIPHERALS_CHIP_FAMILY))
|
||||
#Debugging/Optimization
|
||||
ifeq ($(DEBUG), 1)
|
||||
|
|
|
@ -15,5 +15,4 @@ LONGINT_IMPL = MPZ
|
|||
CIRCUITPY_AUDIOBUSIO = 0
|
||||
|
||||
CIRCUITPY_BITBANG_APA102 = 1
|
||||
|
||||
OPTIMIZATION_LEVEL = 2
|
||||
|
|
|
@ -16,5 +16,4 @@ CIRCUITPY_GAMEPADSHIFT = 1
|
|||
CIRCUITPY_STAGE = 1
|
||||
|
||||
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/pybadge
|
||||
|
||||
OPTIMIZATION_LEVEL = 2
|
||||
|
|
|
@ -10,5 +10,4 @@ QSPI_FLASH_FILESYSTEM = 1
|
|||
EXTERNAL_FLASH_DEVICE_COUNT = 2
|
||||
EXTERNAL_FLASH_DEVICES = "W25Q64JV_IQ, GD25Q64C"
|
||||
LONGINT_IMPL = MPZ
|
||||
|
||||
OPTIMIZATION_LEVEL = 2
|
||||
|
|
|
@ -123,6 +123,7 @@ CFLAGS += \
|
|||
-fdata-sections \
|
||||
-Wall \
|
||||
|
||||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
ifdef OPTIMIZATION_LEVEL
|
||||
CFLAGS += -O$(OPTIMIZATION_LEVEL)
|
||||
endif
|
||||
|
|
|
@ -109,6 +109,7 @@ else
|
|||
### CFLAGS += -flto
|
||||
endif
|
||||
|
||||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
ifdef OPTIMIZATION_LEVEL
|
||||
CFLAGS += -O$(OPTIMIZATION_LEVEL)
|
||||
endif
|
||||
|
|
|
@ -17,5 +17,4 @@ CIRCUITPY_ESP_FLASH_FREQ=40m
|
|||
CIRCUITPY_ESP_FLASH_SIZE=4MB
|
||||
|
||||
CIRCUITPY_MODULE=wroom
|
||||
|
||||
OPTIMIZATION_LEVEL = 2
|
||||
|
|
|
@ -83,6 +83,7 @@ else
|
|||
### CFLAGS += -flto
|
||||
endif
|
||||
|
||||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
ifdef OPTIMIZATION_LEVEL
|
||||
CFLAGS += -O$(OPTIMIZATION_LEVEL)
|
||||
endif
|
||||
|
|
|
@ -108,6 +108,7 @@ CFLAGS += \
|
|||
-Os -g3 -Wno-unused-parameter \
|
||||
-ffunction-sections -fdata-sections -fstack-usage
|
||||
|
||||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
ifdef OPTIMIZATION_LEVEL
|
||||
CFLAGS += -O$(OPTIMIZATION_LEVEL)
|
||||
endif
|
||||
|
|
|
@ -92,6 +92,7 @@ else
|
|||
CFLAGS += -flto -flto-partition=none
|
||||
endif
|
||||
|
||||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
ifdef OPTIMIZATION_LEVEL
|
||||
CFLAGS += -O$(OPTIMIZATION_LEVEL)
|
||||
endif
|
||||
|
|
|
@ -14,3 +14,5 @@ EXTERNAL_FLASH_DEVICES = "GD25Q16C"
|
|||
# We use a CFLAGS define here because there are include order issues
|
||||
# if we try to include "mpconfigport.h" into nrfx_config.h .
|
||||
CFLAGS += -DCIRCUITPY_NRF_NUM_I2C=2
|
||||
|
||||
OPTIMIZATION_LEVEL = 2
|
||||
|
|
|
@ -91,6 +91,7 @@ else
|
|||
# CFLAGS += -flto
|
||||
endif
|
||||
|
||||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
ifdef OPTIMIZATION_LEVEL
|
||||
CFLAGS += -O$(OPTIMIZATION_LEVEL)
|
||||
endif
|
||||
|
|
|
@ -15,3 +15,5 @@ LD_COMMON = boards/common_default.ld
|
|||
LD_DEFAULT = boards/STM32F405_default.ld
|
||||
LD_BOOT = boards/STM32F405_boot.ld # UF2 boot option
|
||||
UF2_OFFSET = 0x8010000
|
||||
|
||||
OPTIMIZATION_LEVEL = 2
|
||||
|
|
Loading…
Reference in New Issue