Skip to content

Commit b33aa54

Browse files
committed
tensorflow-lite: update to version 2.4.1
Signed-off-by: Vincent ABRIOU <vincent.abriou@st.com>
1 parent 3695024 commit b33aa54

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed
File renamed without changes.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
From 14d8bd430a720dd6a01d18440fafa015bdeb5260 Mon Sep 17 00:00:00 2001
2+
From: Vincent ABRIOU <vincent.abriou@st.com>
3+
Date: Fri, 29 Jan 2021 10:39:10 +0100
4+
Subject: [PATCH 1/1] TFLite: tools: make: remove test_delegate_providers.cc
5+
from the build resources for libtensorflow-lite.a
6+
7+
lite/kernel/test_delegate_providers.cc should not be include in
8+
libtensorflow-lite.a but it was not par of CORE_CC_EXCLUDE_SRCS because the
9+
file syntax was not recognized as an excluded file.
10+
This patch propose to exclude all the file containing *test*.cc.
11+
12+
Signed-off-by: Vincent ABRIOU <vincent.abriou@st.com>
13+
---
14+
tensorflow/lite/tools/make/Makefile | 3 +--
15+
1 file changed, 1 insertion(+), 2 deletions(-)
16+
17+
diff --git a/tensorflow/lite/tools/make/Makefile b/tensorflow/lite/tools/make/Makefile
18+
index 9d90e9526be..617e818c87f 100644
19+
--- a/tensorflow/lite/tools/make/Makefile
20+
+++ b/tensorflow/lite/tools/make/Makefile
21+
@@ -171,6 +171,7 @@ CORE_CC_EXCLUDE_SRCS := \
22+
$(wildcard tensorflow/lite/*test.cc) \
23+
$(wildcard tensorflow/lite/*/*test.c) \
24+
$(wildcard tensorflow/lite/*/*test.cc) \
25+
+$(wildcard tensorflow/lite/*/*test*.cc) \
26+
$(wildcard tensorflow/lite/*/*/benchmark.cc) \
27+
$(wildcard tensorflow/lite/*/*/example*.cc) \
28+
$(wildcard tensorflow/lite/*/*/test*.cc) \
29+
@@ -186,8 +187,6 @@ $(wildcard tensorflow/lite/*/*/*/*/*/example*.cc) \
30+
$(wildcard tensorflow/lite/*/*/*/*/*/test*.cc) \
31+
$(wildcard tensorflow/lite/*/*/*/*/*/*test.cc) \
32+
$(wildcard tensorflow/lite/*/*/*/*/*/*tool.cc) \
33+
-$(wildcard tensorflow/lite/kernels/*test_main.cc) \
34+
-$(wildcard tensorflow/lite/kernels/*test_util*.cc) \
35+
$(wildcard tensorflow/lite/tools/make/downloads/cpuinfo/src/*/mock*.c) \
36+
tensorflow/lite/tflite_with_xnnpack.cc \
37+
$(MINIMAL_SRCS)
38+
--
39+
2.17.1
40+

recipes-frameworks/tensorflow-lite/tensorflow-lite_2.3.1.bb renamed to recipes-frameworks/tensorflow-lite/tensorflow-lite_2.4.1.bb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ LICENSE = "Apache-2.0"
66

77
LIC_FILES_CHKSUM = "file://LICENSE;md5=64a34301f8e355f57ec992c2af3e5157"
88

9-
SRC_URI = " git://github.com/tensorflow/tensorflow.git;branch=r2.3 "
10-
SRCREV = "fcc4b966f1265f466e82617020af93670141b009"
9+
SRC_URI = " git://github.com/tensorflow/tensorflow.git;branch=r2.4 "
10+
SRCREV = "85c8b2a817f95a3e979ecd1ed95bff1dc1335cff"
1111
S = "${WORKDIR}/git"
1212

13+
# Patch to be applied
14+
SRC_URI += " file://0001-TFLite-tools-make-remove-test_delegate_providers.cc-.patch "
15+
1316
inherit setuptools3
1417

1518
DEPENDS = " \

0 commit comments

Comments
 (0)