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

此处的代码修改工具链。

相关推荐
Azure DevOps2 小时前
Azure DevOps Server:2026年3月份补丁
运维·microsoft·azure·devops
wanhengidc8 小时前
云手机的运行环境如何
运维·服务器·游戏·智能手机·生活
炸膛坦客8 小时前
Linux - Ubuntu - PC端:(三)切换中英文,Fcitx5
linux·ubuntu
7yewh8 小时前
jetson_yolo_deployment 01_linux_dev_env
linux·嵌入式硬件·yolo·机器人·嵌入式
cyber_两只龙宝8 小时前
【Haproxy】Haproxy的算法详解及配置
linux·运维·服务器·云原生·负载均衡·haproxy·调度算法
阿常呓语8 小时前
Linux命令 jq详解
linux·运维·shell·jq
君生我老10 小时前
Linux 权限
linux
hy____12310 小时前
Linux_网络基础3
linux·服务器·网络
我不听你讲话10 小时前
LNMP网络服务搭建
linux·php·apache