Skip to content

Commit

Permalink
Allow signed char for Cortex M cores (#3035)
Browse files Browse the repository at this point in the history
BUG=384562154
  • Loading branch information
chasezheng authored Jan 16, 2025
1 parent 10ebaab commit 9b79b9f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ endif

FLOAT := soft
GCC_TARGET_ARCH := $(TARGET_ARCH)
SIGNED_CHAR := false

# Explicitly set this to true to include the kissfft symbols.
INCLUDE_MICRO_SPEECH := false
Expand Down Expand Up @@ -174,14 +175,19 @@ PLATFORM_FLAGS = \
-DTF_LITE_MCU_DEBUG_LOG \
-mthumb \
-mfloat-abi=$(FLOAT) \
-funsigned-char \
-mlittle-endian \
-Wno-type-limits \
-Wno-unused-private-field \
-fomit-frame-pointer \
-MD \
-DCPU_$(CORE)=1

ifeq ($(SIGNED_CHAR), false)
PLATFORM_FLAGS += -funsigned-char
else
PLATFORM_FLAGS += -fsigned-char
endif

# For DWT/PMU counters. Header file name is depending on target architecture.
PLATFORM_FLAGS += -DCMSIS_DEVICE_ARM_CORTEX_M_XX_HEADER_FILE=\"$(ARM_CPU).h\"
PLATFORM_FLAGS += -D$(ARM_CPU)
Expand Down

0 comments on commit 9b79b9f

Please sign in to comment.