make nanolib linking explicitly by each family/board

This commit is contained in:
hathach
2023-11-23 12:43:13 +07:00
parent 1a98f5389c
commit 82880eecbd
58 changed files with 130 additions and 684 deletions

View File

@@ -0,0 +1,14 @@
ifeq ($(TOOLCHAIN),gcc)
CFLAGS += \
-mthumb \
-mcpu=cortex-m23 \
-mfloat-abi=soft \
else ifeq ($(TOOLCHAIN),iar)
# IAR Flags
CFLAGS += --cpu cortex-m23
ASFLAGS += --cpu cortex-m23
endif
# For freeRTOS port source
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM23