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:
parent
421d174f60
commit
087246ea0f
16
pkg/utensor/Makefile
Normal file
16
pkg/utensor/Makefile
Normal 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
4
pkg/utensor/Makefile.dep
Normal file
@ -0,0 +1,4 @@
|
||||
FEATURES_REQUIRED += cpp
|
||||
|
||||
USEMODULE += utensor-ops
|
||||
USEMODULE += utensor-util
|
17
pkg/utensor/Makefile.include
Normal file
17
pkg/utensor/Makefile.include
Normal 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
|
5
pkg/utensor/Makefile.utensor
Normal file
5
pkg/utensor/Makefile.utensor
Normal file
@ -0,0 +1,5 @@
|
||||
MODULE = utensor
|
||||
|
||||
CXXEXFLAGS += -Wno-unused-parameter
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
3
pkg/utensor/Makefile.utensor.ops
Normal file
3
pkg/utensor/Makefile.utensor.ops
Normal file
@ -0,0 +1,3 @@
|
||||
MODULE = utensor-ops
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
5
pkg/utensor/Makefile.utensor.util
Normal file
5
pkg/utensor/Makefile.utensor.util
Normal 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
7
pkg/utensor/doc.txt
Normal 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
|
||||
*/
|
BIN
pkg/utensor/patches/0001-fix-integer-format.patch
Normal file
BIN
pkg/utensor/patches/0001-fix-integer-format.patch
Normal file
Binary file not shown.
BIN
pkg/utensor/patches/0002-fix-mbed-specific-code.patch
Normal file
BIN
pkg/utensor/patches/0002-fix-mbed-specific-code.patch
Normal file
Binary file not shown.
BIN
pkg/utensor/patches/0003-fix-variadic-macro.patch
Normal file
BIN
pkg/utensor/patches/0003-fix-variadic-macro.patch
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user