aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc')
-rw-r--r--tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc41
1 files changed, 41 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc b/tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc
new file mode 100644
index 0000000000..48af71e5b4
--- /dev/null
+++ b/tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc
@@ -0,0 +1,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