summaryrefslogtreecommitdiff
path: root/examples/build_system/make/cpu/cortex-m4-nofpu.mk
blob: ac291600521ca8b2db50419551c8c0d3917ee7d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ifeq ($(TOOLCHAIN),gcc)
  CFLAGS += \
    -mthumb \
    -mcpu=cortex-m4 \
    -mfloat-abi=soft

else ifeq ($(TOOLCHAIN),clang)
  CFLAGS += \
	  --target=arm-none-eabi \
	  -mcpu=cortex-m4

else ifeq ($(TOOLCHAIN),iar)
  CFLAGS += --cpu cortex-m4 --fpu none
  ASFLAGS += --cpu cortex-m4 --fpu none

else
  $(error "TOOLCHAIN is not supported")
endif

FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM3