From 80a7cf86ca148b463a522d111f0648976ca46be0 Mon Sep 17 00:00:00 2001 From: Kasper Hjort Berthelsen Date: Tue, 28 May 2024 11:30:37 +0200 Subject: [PATCH] pkg/tflite-micro: add proper options to flatc --- pkg/tflite-micro/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tflite-micro/Makefile b/pkg/tflite-micro/Makefile index cc39303e28..d3504e41fd 100644 --- a/pkg/tflite-micro/Makefile +++ b/pkg/tflite-micro/Makefile @@ -47,7 +47,7 @@ all: $(TFLITE_MODULES_USED) .PHONY: tflite-% $(PKG_SOURCE_DIR)/tensorflow/lite/schema/schema_generated.h: $(PKG_SOURCE_DIR)/tensorflow/lite/schema/schema.fbs $(FLATC) - $(FLATC) --cpp -o "$(dir $@)" "$<" + $(FLATC) --cpp --reflect-types --reflect-names --no-union-value-namespacing --gen-object-api -o "$(dir $@)" "$<" tflite-%: $(PKG_SOURCE_DIR)/tensorflow/lite/schema/schema_generated.h $(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/$(DIR_$@) -f $(CURDIR)/$@.mk