forked from 1847123212/esp32_mpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-tensorflow-lite-micro.sh
More file actions
10 lines (7 loc) · 926 Bytes
/
Copy pathbuild-tensorflow-lite-micro.sh
File metadata and controls
10 lines (7 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
cd submodule/tflite-micro
# These CFLAGS came from looking at what the Micropython c++ build was emitting.
make -j12 -f tensorflow/lite/micro/tools/make/Makefile \
CXXFLAGS="-std=c++11 -DNDEBUG -fstrict-volatile-bitfields -mlongcalls -nostdlib -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-unwind-tables -ffunction-sections -fdata-sections -fmessage-length=0 -DTF_LITE_STATIC_MEMORY -DTF_LITE_DISABLE_X86_NEON -O3 -Werror -Wno-maybe-uninitialized -Wsign-compare -Wdouble-promotion -Wshadow -Wunused-variable -Wmissing-field-initializers -Wunused-function -Wswitch -Wvla -Wall -Wextra -Wstrict-aliasing -Wno-unused-parameter -DESP -Wno-return-type -Wno-strict-aliasing -Wno-ignored-qualifiers -Wno-return-type -Wno-strict-aliasing" \
TARGET_TOOLCHAIN_PREFIX=xtensa-esp32s3-elf- TARGET=esp TARGET_ARCH=xtensa-esp32 $@
#tensorflow/lite/micro/tools/make/gen/esp32_xtensawin/lib/libtensorflow-microlite.a