mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
30 lines
1.3 KiB
Makefile
30 lines
1.3 KiB
Makefile
|
PKG_NAME=tensorflow-lite
|
||
|
PKG_URL=https://github.com/tensorflow/tensorflow
|
||
|
PKG_VERSION=1768c8f2fa155d4c6406e8ff7addf374c83de7ad
|
||
|
PKG_LICENSE=Apache2.0
|
||
|
|
||
|
include $(RIOTBASE)/pkg/pkg.mk
|
||
|
|
||
|
TF_MODULES = tensorflow-lite-hello_world
|
||
|
TF_USEMODULE = $(filter $(TF_MODULES),$(USEMODULE))
|
||
|
|
||
|
.PHONY: tensorflow-lite tensorflow-lite-%
|
||
|
|
||
|
CFLAGS += -Wno-pedantic
|
||
|
CFLAGS += -DTF_LITE_STATIC_MEMORY
|
||
|
CFLAGS += -DTF_LITE_USE_GLOBAL_ROUND
|
||
|
|
||
|
all: tensorflow-lite
|
||
|
|
||
|
tensorflow-lite: $(TF_USEMODULE)
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/c -f $(CURDIR)/Makefile.$(PKG_NAME)-c
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/core/api -f $(CURDIR)/Makefile.$(PKG_NAME)-core
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/kernels/internal -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels-internal
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-micro-kernels
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro/memory_planner -f $(CURDIR)/Makefile.$(PKG_NAME)-memory
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||
|
|
||
|
tensorflow-lite-%:
|
||
|
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro/examples/$* -f $(CURDIR)/Makefile.$(PKG_NAME)-$*
|