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

此处的代码修改工具链。

相关推荐
starvapour7 分钟前
Ubuntu系统下基于终端的音频相关命令
linux·ubuntu·音视频
杨云龙UP41 分钟前
Oracle Data Pump实战:expdp/impdp常用参数与导入导出命令整理_20260406
linux·运维·服务器·数据库·oracle
浪客灿心1 小时前
线程同步与互斥
linux
我科绝伦(Huanhuan Zhou)2 小时前
分享一个服务故障自愈系统
运维·人工智能·自动化
失伟2 小时前
Stratovirt安装及使用
运维·虚拟化
牛马鸡niumasi3 小时前
C/C++ 程序编译过程、静态/动态链接、静态/动态库
linux
捧月华如3 小时前
Linux 系统性能压测工具全景指南(含工程实战)
linux·运维·服务器
YMWM_4 小时前
export MPLBACKEND=Agg命令使用
linux·python
s19134838482d4 小时前
vlan实验报告
运维·服务器·网络
想唱rap4 小时前
线程的同步与互斥
linux·运维·服务器·数据库·mysql