aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc
blob: 48af71e5b4ba34897bd20d42b6a01ae1198a83ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Settings for STM32F7 platforms.
ifeq ($(TARGET), stm32f7)
  TARGET_ARCH := armf7
  TARGET_TOOLCHAIN_PREFIX := arm-none-eabi-

  CXXFLAGS += \
    -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK \
    -DTFLITE_MCU \
    -fno-rtti \
    -fmessage-length=0 \
    -fno-exceptions \
    -fno-builtin \
    -ffunction-sections \
    -fdata-sections \
    -funsigned-char \
    -MMD \
    -mcpu=cortex-m7 \
    -mthumb \
    -mfpu=fpv5-sp-d16 \
    -mfloat-abi=softfp \
    -std=gnu++11 \
    -fno-rtti \
    -Wvla \
    -c \
    -Wall \
    -Wextra \
    -Wno-unused-parameter \
    -Wno-missing-field-initializers \
    -fmessage-length=0 \
    -fno-exceptions \
    -fno-builtin \
    -ffunction-sections \
    -fdata-sections \
    -funsigned-char \
    -MMD \
    -fno-delete-null-pointer-checks \
    -fomit-frame-pointer \
    -Os
 	LIBS += -ldl
	BUILD_TYPE := micro
endif