Linux下是STM32的编译修改配置文件tensorflow

具体的需要修改配置文件如下:

c 复制代码
# limitations under the License.
# ==============================================================================

ifneq (3.82,$(firstword $(sort $(MAKE_VERSION) 3.82)))
  $(error "Requires make version 3.82 or later (current is $(MAKE_VERSION))")
endif

# root directory of tensorflow
TENSORFLOW_ROOT :=
RELATIVE_MAKEFILE_DIR := tensorflow/lite/micro/tools/make
MAKEFILE_DIR := $(TENSORFLOW_ROOT)$(RELATIVE_MAKEFILE_DIR)

# Pull in some convenience functions.
include $(MAKEFILE_DIR)/helper_functions.inc

# Try to figure out the host system
HOST_OS :=
ifeq ($(OS),Windows_NT)
        HOST_OS = windows
else
        UNAME_S := $(shell uname -s)
        ifeq ($(UNAME_S),Linux)
                HOST_OS := linux
        endif
        ifeq ($(UNAME_S),Darwin)
                HOST_OS := osx
        endif
endif

# Determine the host architecture, with any ix86 architecture being labelled x86_32
HOST_ARCH := $(shell if uname -m | grep -Eq 'i[345678]86'; then echo x86_32; else echo $(shell uname -m); fi)

# Override these on the make command line to target a specific architecture. For example:
# make -f tensorflow/lite/Makefile TARGET=rpi TARGET_ARCH=armv7l
TARGET := $(HOST_OS)
TARGET_ARCH := $(HOST_ARCH)

# Default compiler and tool names:
TOOLCHAIN:=arm-none-eabi-gcc
CXX_TOOL := arm-none-eabi-g++
CC_TOOL := arm-none-eabi-gcc
AR_TOOL := arm-none-eabi-ar

此处的代码修改工具链。

相关推荐
程序员阿明15 小时前
docker搭建openPLC runTime
运维·docker·容器
报错小能手15 小时前
讲讲docker
运维·docker·容器
Agent手记15 小时前
生产环节费用智能管控与超支预警方案:基于AGI智能体的精细化治理实践
运维·服务器·人工智能·ai·agi
dxxt_yy15 小时前
精准定位、高效运维:DLJ-1 护航交通电缆安全
运维·安全
梓䈑15 小时前
【Linux网络】构建UDP网络服务:从Echo到聊天室的线程池架构演进
linux·网络·c++·udp
初願致夕霞15 小时前
Linux网络编程_数据链路层MAC帧协议与ARP协议
linux·网络·网络协议·macos
在角落发呆15 小时前
跨越网络孤岛:不同内网间的远程桌面连接指南
运维·服务器
IT瑞先生15 小时前
运维专题2——分区、挂载、扩容及问题排查
linux·运维
程序猿编码15 小时前
藏在TCP握手里的暗号:一种基于序列号触发的加密回连后门
linux·网络·网络协议·tcp/ip
minji...15 小时前
Linux 网络基础之传输层协议TCP(八)拥塞控制,延迟应答,捎带应答,TCP粘包问题,异常退出问题
linux·服务器·网络·网络协议·tcp/ip·http·智能路由器