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

此处的代码修改工具链。

相关推荐
志栋智能16 分钟前
超自动化安全:构建智能安全运营的核心引擎
大数据·运维·服务器·数据库·安全·自动化·产品运营
AnalogElectronic1 小时前
linux 测试网络和端口是否连通的命令详解
linux·网络·php
Edward111111112 小时前
4月28日防火墙问题
linux·运维·服务器
想学后端的前端工程师2 小时前
【补充内外网突然不通的情况】
运维·服务器
面汤放盐2 小时前
何时使用以及何时不应使用微服务:没有银弹
java·运维·云计算
子琦啊3 小时前
【算法复习】字符串 | 两个底层直觉,吃透高频题
linux·运维·算法
AOwhisky4 小时前
Kubernetes 学习笔记:集群管理、命名空间与 Pod 基础
linux·运维·笔记·学习·云原生·kubernetes
小龙在慢慢变强..4 小时前
目录结构(FHS 标准)
linux·运维·服务器
2035去旅行4 小时前
嵌入式开发,如何选择C标准库
linux·arm开发