misc: Disable rtl-loop2_doloop for M55.

Current toolchains are broken.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2025-06-20 11:44:33 +02:00
parent 1864a85396
commit f2823a53c1
3 changed files with 14 additions and 1 deletions

View File

@ -111,6 +111,7 @@ ifeq ($(PROFILE), 1)
CFLAGS += -DOMV_PROFILE_ENABLE=1
endif
# Include OpenMV board config first to set the port.
include $(OMV_BOARD_CONFIG_DIR)/omv_boardconfig.mk
@ -125,6 +126,12 @@ MPY_MKARGS = PORT=$(PORT) BOARD=$(TARGET) DEBUG=$(DEBUG) MICROPY_MANIFEST_OMV_LI
FROZEN_MANIFEST=$(FROZEN_MANIFEST) OMV_SRC_QSTR="$(OMV_SRC_QSTR)"\
MICROPY_ROM_TEXT_COMPRESSION=$(ROM_TEXT_COMPRESSION) USER_C_MODULES=$(TOP_DIR)
# Disable broken optimization for CM55.
ifeq ($(CPU),cortex-m55)
CFLAGS += -fdisable-rtl-loop2_doloop
endif
# Configure additional built-in modules. Note must define both the CFLAGS and the Make command line args.
ifeq ($(MICROPY_PY_CSI), 1)
MPY_CFLAGS += -DMICROPY_PY_CSI=1

View File

@ -48,3 +48,9 @@ endif
# Include the port Makefile.
include $(PORT_DIR)/$(PORT_LOWER)_port.mk
# Disable broken optimization for CM55.
ifeq ($(CPU),cortex-m55)
CFLAGS += -fdisable-rtl-loop2_doloop
endif

View File

@ -90,7 +90,7 @@ CLANG_FLAGS = -fshort-enums \
-Wno-unused-command-line-argument \
-D__ARMCC_VERSION=6100100 \
-DALIF_CMSIS_H=$(CMSIS_MCU_H) \
$(filter-out -march%,$(CFLAGS))
$(filter-out -march% -fdisable-rtl%,$(CFLAGS))
OMV_CFLAGS += -I$(TOP_DIR)/$(OMV_DIR)/$(COMMON_DIR)
OMV_CFLAGS += -I$(TOP_DIR)/$(OMV_DIR)/modules/