2019-11-27 11:55:47 +01:00
|
|
|
# Ensure minimal size by default
|
|
|
|
DEVELHELP ?= 0
|
|
|
|
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
2019-12-20 15:11:26 +01:00
|
|
|
# Other available example: hello_world
|
|
|
|
EXAMPLE ?= mnist
|
2019-11-27 11:55:47 +01:00
|
|
|
|
|
|
|
USEPKG += tensorflow-lite
|
2019-12-20 15:11:26 +01:00
|
|
|
|
|
|
|
# internal mnist example is available as an external module
|
|
|
|
ifeq (mnist,$(EXAMPLE))
|
|
|
|
# TensorFlow-Lite crashes on M4/M7 CPUs when FPU is enabled, so disable it by
|
|
|
|
# default for now
|
|
|
|
DISABLE_MODULE += cortexm_fpu
|
|
|
|
USEMODULE += $(EXAMPLE)
|
|
|
|
EXTERNAL_MODULE_DIRS += $(CURDIR)/$(EXAMPLE)
|
|
|
|
else
|
|
|
|
# Use upstream example
|
|
|
|
USEMODULE += tensorflow-lite-$(EXAMPLE)
|
|
|
|
endif
|
2019-11-27 11:55:47 +01:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|