mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
51312f70fd
add -Wl,--no-warn-rwx-segment for gcc 12+
14 lines
299 B
Makefile
14 lines
299 B
Makefile
ifeq ($(TOOLCHAIN),gcc)
|
|
CFLAGS += \
|
|
-mthumb \
|
|
-mcpu=cortex-m4 \
|
|
-mfloat-abi=hard \
|
|
-mfpu=fpv4-sp-d16 \
|
|
|
|
else ifeq ($(TOOLCHAIN),iar)
|
|
CFLAGS += --cpu cortex-m4 --fpu VFPv4
|
|
ASFLAGS += --cpu cortex-m4 --fpu VFPv4
|
|
endif
|
|
|
|
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|