1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg: add support for utensor as a package

This commit is contained in:
Alexandre Abadie 2019-11-23 14:48:31 +01:00
parent 421d174f60
commit 087246ea0f
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
10 changed files with 57 additions and 0 deletions

16
pkg/utensor/Makefile Normal file
View File

@ -0,0 +1,16 @@
PKG_NAME=utensor
PKG_URL=https://github.com/uTensor/uTensor
PKG_VERSION=b22aa5cbc1ef1b3dd42a899b393a9b999afd1305
PKG_LICENSE=Apache2.0
PKG_BASEDIR = $(PKG_BUILDDIR)/src/uTensor
.PHONY: all
all:
"$(MAKE)" -C $(PKG_BASEDIR)/core -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BASEDIR)/util -f $(CURDIR)/Makefile.$(PKG_NAME).util
"$(MAKE)" -C $(PKG_BASEDIR)/ops -f $(CURDIR)/Makefile.$(PKG_NAME).ops
include $(RIOTBASE)/pkg/pkg.mk

4
pkg/utensor/Makefile.dep Normal file
View File

@ -0,0 +1,4 @@
FEATURES_REQUIRED += cpp
USEMODULE += utensor-ops
USEMODULE += utensor-util

View File

@ -0,0 +1,17 @@
INCLUDES += -I$(PKGDIRBASE)/utensor
INCLUDES += -I$(PKGDIRBASE)/utensor/src
INCLUDES += -I$(PKGDIRBASE)/utensor/src/uTensor
INCLUDES += -I$(PKGDIRBASE)/utensor/src/uTensor/core
INCLUDES += -I$(PKGDIRBASE)/utensor/src/uTensor/ops
INCLUDES += -I$(PKGDIRBASE)/utensor/src/uTensor/util
CXXEXFLAGS += -Wno-sign-compare
ifeq (llvm,$(TOOLCHAIN))
CXXEXFLAGS += -Wno-unused-variable
CXXEXFLAGS += -Wno-shift-count-negative
endif
ifneq (native,$(BOARD))
CXXEXFLAGS += -std=c++11
endif

View File

@ -0,0 +1,5 @@
MODULE = utensor
CXXEXFLAGS += -Wno-unused-parameter
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,3 @@
MODULE = utensor-ops
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,5 @@
MODULE = utensor-util
CXXEXFLAGS += -Wno-c++14-binary-literal
include $(RIOTBASE)/Makefile.base

7
pkg/utensor/doc.txt Normal file
View File

@ -0,0 +1,7 @@
/**
* @defgroup pkg_utensor uTensor
* @ingroup pkg
* @brief Provides a package for AI inference based on TensorFlow
*
* @see https://github.com/uTensor/uTensor
*/

Binary file not shown.

Binary file not shown.

Binary file not shown.