From 334415e9fbb3790885f361bb9b181b283d713b68 Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Tue, 24 May 2022 09:30:41 -0500
Subject: [PATCH] ti-tensorflow-8.1 (8.1.0.23)

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 ti-tensorflow-8.1/suite/bullseye/debian/changelog |  4 ++--
 ti-tensorflow-8.1/suite/bullseye/debian/control   |  9 +++------
 ti-tensorflow-8.1/suite/bullseye/debian/install   |  1 -
 ti-tensorflow-8.1/suite/bullseye/debian/rules     | 11 ++---------
 ti-tensorflow-8.1/version.sh                      |  6 ++----
 5 files changed, 9 insertions(+), 22 deletions(-)

diff --git a/ti-tensorflow-8.1/suite/bullseye/debian/changelog b/ti-tensorflow-8.1/suite/bullseye/debian/changelog
index 99f6fd45a..13a646e52 100644
--- a/ti-tensorflow-8.1/suite/bullseye/debian/changelog
+++ b/ti-tensorflow-8.1/suite/bullseye/debian/changelog
@@ -1,6 +1,6 @@
-ti-tensorflow-8.1 (8.1.0.22-0~bullseye+20220523) bullseye; urgency=low
+ti-tensorflow-8.1 (8.1.0.23-0~bullseye+20220524) bullseye; urgency=low
 
   * Rebuild for repos.rcn-ee.com
 
- -- Robert Nelson <robertcnelson@gmail.com>  Mon, 23 May 2022 15:30:25 -0500
+ -- Robert Nelson <robertcnelson@gmail.com>  Tue, 24 May 2022 09:30:33 -0500
 
diff --git a/ti-tensorflow-8.1/suite/bullseye/debian/control b/ti-tensorflow-8.1/suite/bullseye/debian/control
index 84095435f..dd93ed89d 100644
--- a/ti-tensorflow-8.1/suite/bullseye/debian/control
+++ b/ti-tensorflow-8.1/suite/bullseye/debian/control
@@ -4,20 +4,17 @@ Priority: optional
 Maintainer: Robert Nelson <robertcnelson@gmail.com>
 Build-Depends:
  debhelper (>= 9)
- , ca-certificates
  , curl
  , cmake
  , dh-python
- , git
  , libtool
  , python3-dev
  , python3-numpy
  , python3-pip
  , python3-pybind11
  , swig
- , unzip
+ , ti-tensorflow-src-8.1
  , zlib1g-dev
- , tree
 Standards-Version: 4.5.1
 
 Package: ti-tensorflow-8.1
@@ -27,5 +24,5 @@ Depends:
  , python3-numpy
 Breaks: python3-tflite-runtime
 Conflicts: python3-tflite-runtime
-Description: TI vision-apps
- TI vision-apps
+Description: TI tensorflow
+ TI tensorflow
diff --git a/ti-tensorflow-8.1/suite/bullseye/debian/install b/ti-tensorflow-8.1/suite/bullseye/debian/install
index ae0a7b33a..f64a1e6d1 100644
--- a/ti-tensorflow-8.1/suite/bullseye/debian/install
+++ b/ti-tensorflow-8.1/suite/bullseye/debian/install
@@ -12,5 +12,4 @@
 ./tmp/opt/tensorflow/tensorflow/lite/kernels/internal/*.h /usr/include/tensorflow/lite/kernels/internal/
 ./tmp/opt/tensorflow/tensorflow/lite/tools/make/gen/linux_aarch64/lib/*.a /usr/lib
 ./tmp/opt/tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/tmp/usr/* /usr
-./tmp/opt/tensorflow/lite/tools/make/downloads/flatbuffers/* /opt/tensorflow/lite/tools/make/downloads/flatbuffers
 #tmp/opt/* /opt
diff --git a/ti-tensorflow-8.1/suite/bullseye/debian/rules b/ti-tensorflow-8.1/suite/bullseye/debian/rules
index 98a645599..00cea9450 100755
--- a/ti-tensorflow-8.1/suite/bullseye/debian/rules
+++ b/ti-tensorflow-8.1/suite/bullseye/debian/rules
@@ -6,16 +6,9 @@ export DH_VERBOSE=1
 
 DEB_BUILD_OPTIONS=noautodbgsym
 
-wfile="v1.12.0.tar.gz"
-
-# Disable dh_strip
-override_dh_strip:
-
-# Disable dh_strip_nondeterminism
-override_dh_strip_nondeterminism:
-
 override_dh_auto_configure:
-	mkdir -p ./tmp/opt/ ; git clone --single-branch --branch TIDL_PSDK_8.1 --depth 1 https://github.com/TexasInstruments/tensorflow.git ./tmp/opt/tensorflow/ ; mkdir -p ./tmp/opt/tensorflow/lite/tools/make/downloads/flatbuffers ; tar xf ./debian/$(wfile) --strip-components=1 -C ./tmp/opt/tensorflow/lite/tools/make/downloads/flatbuffers
+	env
+	mkdir -p ./tmp/opt/tensorflow/ ; cp -rv /opt/tensorflow/ ./tmp/opt/tensorflow/
 	python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime
 	cd ./tmp/opt/tensorflow/tensorflow/lite/tools/make/ ; ./download_dependencies.sh
 	cd ./tmp/opt/tensorflow/ ; make -f tensorflow/lite/tools/make/Makefile ; cp -v ./tensorflow/lite/tools/make/gen/linux_aarch64/lib/libtensorflow-lite.a /usr/lib/ ; BUILD_DEB=y tensorflow/lite/tools/pip_package/build_pip_package.sh ; cd ./tensorflow/lite/tools/pip_package/gen/tflite_pip/ ; dpkg-deb -xv python3-tflite-runtime_2.4.0-1_arm64.deb ./tmp/
diff --git a/ti-tensorflow-8.1/version.sh b/ti-tensorflow-8.1/version.sh
index fb0e1c3b8..0f51c40bc 100644
--- a/ti-tensorflow-8.1/version.sh
+++ b/ti-tensorflow-8.1/version.sh
@@ -2,7 +2,7 @@
 
 package_name="ti-tensorflow-8.1"
 debian_pkg_name="${package_name}"
-package_version="8.1.0.22"
+package_version="8.1.0.23"
 package_source=""
 src_dir=""
 
@@ -15,8 +15,6 @@ debian_version="${package_version}-0"
 debian_untar=""
 debian_patch=""
 
-debian_dl_1="https://github.com/google/flatbuffers/archive/v1.12.0.tar.gz"
-
 clear_changelog="enable"
 
-bullseye_version="~bullseye+20220523"
+bullseye_version="~bullseye+20220524"
-- 
GitLab