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

此处的代码修改工具链。

相关推荐
新时代牛马9 分钟前
Linux 内核入门地图:架构、源码目录与五大子系统
linux·运维·架构
智购科技无人售货机厂家11 分钟前
2026自动售货机制冷系统维护指南:从散热器清洁到压缩机换油的工程实践~YH
运维·redis·物联网·缓存·架构
剑客的茶馆18 分钟前
开发者,运维怎样转行FDE?
运维·ai·开发·fde
Julien200424 分钟前
控制 SELinux 文件上下文
linux·运维·服务器
sulikey33 分钟前
Linux Core Dump 完全指南:从原理到实战的崩溃调试手册。什么是core dump?程序报错core dumped怎么办?
linux·服务器·操作系统·调试·coredump
众壹新能源科技43 分钟前
功率预测误差考核怎么降?从气象源到上报口径的排查清单
运维·人工智能·自动化
DevLoom_2 小时前
SD卡插电脑提示:驱动器中的磁盘未被格式化?恢复数据正确处理步骤
运维·服务器·电脑
Orange_sparkle2 小时前
从 Docker 到 Doris:建立后端基础设施全景图
运维·docker·ai·容器·claude code
2601_962128263 小时前
Nginx目录结构
运维·nginx
MayZork3 小时前
Windows 与 Linux 下 vcpkg 的安装部署指南
linux·运维·windows