Skip to contentSkip to conversation

tensorflow: drop Upstream-Status inside third_party .patch files

PATCH In review Martin Jansa 2 participants 6 messages Feb 11, 2025 – Feb 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 tensorflow: drop Upstream-Status inside third_party .patch files

* these patches create:
third_party/0001-XNNPACK-support-32-bit-x86.patch third_party/0001-cpuinfo-support-32-bit-x86.patch third_party/0001-hardcode-go-SDKS.patch third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch

which aren't applied by do_patch bitbake task but by bazel:

tensorflow $ grep patch_file tensorflow/workspace2.bzl | head -n 2
tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-XNNPACK-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-cpuinfo-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-hardcode-go-SDKS.patch"], third_party/eigen3/workspace.bzl: patch_file = ["//third_party/eigen3:0001-workaround-ice-failure-while-building-from-source-wi.patch"],

so they don't really need Upstream-Status and including it there might cause false possitive e.g. in 0001-fix-XNNPACK-build-failure-for-qemuarm.patch

ERROR: tensorflow-lite-2.10.0-r0 do_patch: QA Issue: Malformed Upstream-Status in patch recipes-framework/tensorflow/tensorflow-lite/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
Please correct according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status :
Upstream-Status: Inappropriate [oe specific] [patch-status]
ERROR: tensorflow-lite-2.10.0-r0 do_patch: Fatal QA errors were found, failing task.

caused by extra space before Upstream-Status

Maybe we should drop 0001-fix-XNNPACK-build-failure-for-qemuarm.patch completely as it was already dropped from tensorflow in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=baae9cd6d92f69aa16b874958a332e1d3a362fea
and from tensorflow-lite in scarthgap branch:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=scarthgap&id=29509c97e9009ed0ae99ce6c2554e463575dc10c

and is now used only for tensorflow-lite, refresh it to apply

It was originally introduced for both in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=e0efac349f2aac3d65ccbeee20475dbb1ea3dd19
and refreshed in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=30fbec74ea37b646473b08d0ee8d3992ccd56245

---
 .../tensorflow/files/0001-hardcode-go-SDKS.patch    |  4 +---
 .../0001-support-32-bit-x64-and-arm-for-yocto.patch |  7 ++-----
 ...y-eigen_archive-workaround-ice-failure-whi.patch |  4 +---
 ...019-fix-XNNPACK-build-failure-for-qemuarm.patch} | 13 ++++---------
 .../tensorflow/tensorflow-lite_2.12.0.bb            |  2 +-
 5 files changed, 9 insertions(+), 21 deletions(-)
 rename recipes-framework/tensorflow/files/{0001-fix-XNNPACK-build-failure-for-qemuarm.patch => 0019-fix-XNNPACK-build-failure-for-qemuarm.patch} (97%)
recipes-framework/tensorflow/files/0001-hardcode-go-SDKS.patch +1 -3
index b705ec7..e365c27 100644
@@ -38,7 +38,7 @@ new file mode 100644
 index 00000000000..b51d7262f4c
 --- /dev/null
 +++ b/third_party/0001-hardcode-go-SDKS.patch
-@@ -0,0 +1,49 @@
+@@ -0,0 +1,47 @@
 +From 34242e73f76eff09ee33152c58c3be650331b7ff Mon Sep 17 00:00:00 2001
 +From: Hongxu Jia <[email protected]>
 +Date: Thu, 1 Dec 2022 15:07:10 +0000
@@ -53,8 +53,6 @@ index 00000000000..b51d7262f4c
 +downloaded archive, so hardcode go SDKS list files rather than
 +fetch from internet
 +
-+Upstream-Status: Inappropriate [Yocto specific]
-+
 +Signed-off-by: Hongxu Jia <[email protected]>
 +---
 + go/private/sdk.bzl | 7 +++++++
recipes-framework/tensorflow/files/0001-support-32-bit-x64-and-arm-for-yocto.patch +2 -5
index a855b30..22bd6c1 100644
@@ -56,7 +56,7 @@ new file mode 100644
 index 00000000000..2141c37236b
 --- /dev/null
 +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -0,0 +1,29 @@
+@@ -0,0 +1,27 @@
 +From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
 +From: Hongxu Jia <[email protected]>
 +Date: Tue, 17 Aug 2021 01:09:53 -0700
@@ -64,8 +64,6 @@ index 00000000000..2141c37236b
 +
 +Use android_x86 as a workaround to support 32 bit x86
 +
-+Upstream-Status: Inappropriate [oe specific]
-+
 +Signed-off-by: Hongxu Jia <[email protected]>
 +---
 + BUILD.bazel | 1 -
@@ -91,7 +89,7 @@ new file mode 100644
 index 00000000000..0c83cf01675
 --- /dev/null
 +++ b/third_party/0001-cpuinfo-support-32-bit-x86.patch
-@@ -0,0 +1,28 @@
+@@ -0,0 +1,27 @@
 +From f5e52b2db5516954dab9026e4f386982c4c3c3a4 Mon Sep 17 00:00:00 2001
 +From: Hongxu Jia <[email protected]>
 +Date: Mon, 19 Sep 2022 00:10:18 -0700
@@ -99,7 +97,6 @@ index 00000000000..0c83cf01675
 +
 +Use android_x86 as a workaround to support 32 bit x86
 +
-+Upstream-Status: Inappropriate [oe specific]
 +Signed-off-by: Hongxu Jia <[email protected]>
 +---
 + BUILD.bazel | 1 -
recipes-framework/tensorflow/files/0001-third_party-eigen_archive-workaround-ice-failure-whi.patch +1 -3
index b1571ab..2056c20 100644
@@ -24,7 +24,7 @@ new file mode 100644
 index 00000000000..436f35fca13
 --- /dev/null
 +++ b/third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch
-@@ -0,0 +1,69 @@
+@@ -0,0 +1,67 @@
 +From 035fd96026e18d61c19da038ab2b0f7a61e97799 Mon Sep 17 00:00:00 2001
 +From: Hongxu Jia <[email protected]>
 +Date: Mon, 19 Sep 2022 01:08:18 -0700
@@ -37,8 +37,6 @@ index 00000000000..436f35fca13
 +But we could not patch on native gcc,so try to workaround,
 +Refer: https://github.com/tensorflow/tensorflow/issues/25323
 +
-+Upstream-Status: Inappropriate [wr-installer specific]
-+
 +Signed-off-by: Hongxu Jia <[email protected]>
 +---
 + unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h | 3 ++-
recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch renamed from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch +4 -9
similarity index 97%
rename from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
rename to recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch
index dea74d9..1a792ee 100644
@@ -1,4 +1,4 @@
-From c15caa4d5f133307a23114c41a9c497e5ec9da2c Mon Sep 17 00:00:00 2001
+From 2ace7a16a8033169b7ddb71a79956416644ffa3e Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Thu, 23 Mar 2023 10:28:04 +0800
 Subject: [PATCH] fix XNNPACK build failure for qemuarm
@@ -13,10 +13,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
  1 file changed, 209 insertions(+), 7 deletions(-)
 
 diff --git a/third_party/0001-XNNPACK-support-32-bit-x86.patch b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-index 2141c37236b..ca6a38545b1 100644
+index e2c053e6f8c..89ba615a9fe 100644
 --- a/third_party/0001-XNNPACK-support-32-bit-x86.patch
 +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -1,22 +1,36 @@
+@@ -1,20 +1,34 @@
 -From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
 +From 5ba6883121e91a334cc97ee98eea6ef0afb7a314 Mon Sep 17 00:00:00 2001
  From: Hongxu Jia <[email protected]>
@@ -28,8 +28,6 @@ index 2141c37236b..ca6a38545b1 100644
  
 +Does not support 32 bit ARM with Neon DotProduct
 +
- Upstream-Status: Inappropriate [oe specific]
- 
  Signed-off-by: Hongxu Jia <[email protected]>
  ---
 - BUILD.bazel | 1 -
@@ -59,7 +57,7 @@ index 2141c37236b..ca6a38545b1 100644
   config_setting(
       name = "android_x86",
       values = {
-@@ -24,6 +38,194 @@ index 27ab07c9..f223d2ab 100644
+@@ -22,6 +36,194 @@ index 27ab07c9..f223d2ab 100644
           "cpu": "x86",
       },
   )
@@ -255,6 +253,3 @@ index 2141c37236b..ca6a38545b1 100644
 -2.30.2
 +2.27.0
  
--- 
-2.27.0
-
recipes-framework/tensorflow/tensorflow-lite_2.12.0.bb +1 -1
index 83fd12d..e76a09b 100644
@@ -15,7 +15,7 @@ SRC_URI += " \
            file://yocto_compiler_configure.bzl \
           "
 SRC_URI:append:arm = " \
-           file://0001-fix-XNNPACK-build-failure-for-qemuarm.patch \
+    file://0019-fix-XNNPACK-build-failure-for-qemuarm.patch \
 "
 
 SRC_URI += "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz;name=model-inv3"
Signature · 1 line
2.48.1
#1 lore raw

PATCH 2/3 tensorflow: refresh and rename the .patch files

* use --no-signature as devtool does to avoid unnecessary git signature changes
* rename to have increasing numbers in the order how they should be applied (so they can be all easily applied with single git am call), the only exception is 0001-fix-python3-include-directory-not-found.patch used only in native builds which will be resolved in next commit

---
 ...-python3-include-directory-not-found.patch |  5 +---
 .../tensorflow/files/0001-support-musl.patch  |  5 +---
 ...l-to-workaround-bazel-paralle-issue.patch} |  9 +++----
 ..._archive-workaround-ice-failure-whi.patch} | 13 ++++------
 ...ains_repositories-to-support-offlin.patch} |  5 +---
 ...config.patch => 0005-drop-v2-config.patch} |  9 +++----
 ....sysconfig.get_python_lib-with-sysc.patch} | 15 +++++------
 ...SDKS.patch => 0007-hardcode-go-SDKS.patch} | 15 +++++------
 ...=> 0008-Fix-failure-while-gcc-7.5.0.patch} |  5 +---
 ...0009-fix-compile-error-for-gcc-13.1.patch} |  5 +---
 ...e.patch => 0010-fix-compile-failure.patch} |  5 +---
 ...oolchain-to-support-cross-compiling.patch} |  5 +---
 ...low-lite-examples-label_image-label.patch} | 11 +++-----
 ..._image-tweak-default-model-location.patch} |  7 ++---
 ...e.lite-tweak-default-model-location.patch} |  5 +---
 ...atureOrDie-use-warning-to-avoid-die.patch} |  9 +++----
 ...upport-32-bit-x64-and-arm-for-yocto.patch} | 17 +++++-------
 ...ct_host_configuration-false-by-defa.patch} |  9 +++----
 ...-is-deprecated-in-Python-3.10-51776.patch} |  5 +---
 .../tensorflow/tensorflow-lite_2.12.0.bb      | 26 +++++++++----------
 recipes-framework/tensorflow/tensorflow.inc   | 23 ++++++++--------
 .../tensorflow/tensorflow_2.12.0.bb           | 26 +++++++++----------
 22 files changed, 88 insertions(+), 146 deletions(-)
 rename recipes-framework/tensorflow/files/{0001-use-local-bazel-to-workaround-bazel-paralle-issue.patch => 0002-use-local-bazel-to-workaround-bazel-paralle-issue.patch} (79%)
 rename recipes-framework/tensorflow/files/{0001-third_party-eigen_archive-workaround-ice-failure-whi.patch => 0003-third_party-eigen_archive-workaround-ice-failure-whi.patch} (95%)
 rename recipes-framework/tensorflow/files/{0001-drop-bazel_toolchains_repositories-to-support-offlin.patch => 0004-drop-bazel_toolchains_repositories-to-support-offlin.patch} (94%)
 rename recipes-framework/tensorflow/files/{0001-drop-v2-config.patch => 0005-drop-v2-config.patch} (79%)
 rename recipes-framework/tensorflow/files/{0002-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch => 0006-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch} (90%)
 rename recipes-framework/tensorflow/files/{0001-hardcode-go-SDKS.patch => 0007-hardcode-go-SDKS.patch} (91%)
 rename recipes-framework/tensorflow/files/{0001-Fix-failure-while-gcc-7.5.0.patch => 0008-Fix-failure-while-gcc-7.5.0.patch} (95%)
 rename recipes-framework/tensorflow/files/{0001-fix-compile-error-for-gcc-13.1.patch => 0009-fix-compile-error-for-gcc-13.1.patch} (95%)
 rename recipes-framework/tensorflow/files/{0001-fix-compile-failure.patch => 0010-fix-compile-failure.patch} (93%)
 rename recipes-framework/tensorflow/files/{0001-add-yocto-toolchain-to-support-cross-compiling.patch => 0011-add-yocto-toolchain-to-support-cross-compiling.patch} (97%)
 rename recipes-framework/tensorflow/files/{0001-fix-build-tensorflow-lite-examples-label_image-label.patch => 0012-fix-build-tensorflow-lite-examples-label_image-label.patch} (85%)
 rename recipes-framework/tensorflow/files/{0001-label_image-tweak-default-model-location.patch => 0013-label_image-tweak-default-model-location.patch} (95%)
 rename recipes-framework/tensorflow/files/{0001-label_image.lite-tweak-default-model-location.patch => 0014-label_image.lite-tweak-default-model-location.patch} (94%)
 rename recipes-framework/tensorflow/files/{0001-CheckFeatureOrDie-use-warning-to-avoid-die.patch => 0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch} (90%)
 rename recipes-framework/tensorflow/files/{0001-support-32-bit-x64-and-arm-for-yocto.patch => 0016-support-32-bit-x64-and-arm-for-yocto.patch} (91%)
 rename recipes-framework/tensorflow/files/{0001-Revert-set-distinct_host_configuration-false-by-defa.patch => 0017-Revert-set-distinct_host_configuration-false-by-defa.patch} (81%)
 rename recipes-framework/tensorflow/files/{0001-distutils-is-deprecated-in-Python-3.10-cross.patch => 0018-distutils-is-deprecated-in-Python-3.10-51776.patch} (96%)
recipes-framework/tensorflow/files/0001-fix-python3-include-directory-not-found.patch +1 -4
index fd1988e..4e9b9c5 100644
@@ -1,4 +1,4 @@
-From 2b6f5a64686ec78b4d1649ba401d06ae44b5a2d5 Mon Sep 17 00:00:00 2001
+From b0df1f017ab730b150dcfe71084620e4edf44504 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 14 Nov 2022 15:27:41 +0800
 Subject: [PATCH] fix python3 include directory not found
@@ -41,6 +41,3 @@ index 300cbfb6c71..14248233dc1 100644
          ],
          error_msg = "Problem getting python include path.",
          error_details = ("Is the Python binary path set up right? " +
--- 
-2.27.0
-
recipes-framework/tensorflow/files/0001-support-musl.patch +1 -4
index 574b810..62dabb1 100644
@@ -1,4 +1,4 @@
-From cc3c636c06bbc6ca6e81a547c9a740c4ead21f61 Mon Sep 17 00:00:00 2001
+From 9e8fe4970d6c93afda28a97b42fbdfc2b6ca2f5a Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Wed, 30 Nov 2022 22:20:52 -0800
 Subject: [PATCH] support musl
@@ -45,6 +45,3 @@ index 1b62651b1be..4dc38cba6bd 100644
  #define TF_GENERATE_STACKTRACE
  #endif
  
--- 
-2.37.1
-
recipes-framework/tensorflow/files/0002-use-local-bazel-to-workaround-bazel-paralle-issue.patch renamed from recipes-framework/tensorflow/files/0001-use-local-bazel-to-workaround-bazel-paralle-issue.patch +3 -6
similarity index 79%
rename from recipes-framework/tensorflow/files/0001-use-local-bazel-to-workaround-bazel-paralle-issue.patch
rename to recipes-framework/tensorflow/files/0002-use-local-bazel-to-workaround-bazel-paralle-issue.patch
index 8a17700..230b4f9 100644
@@ -1,4 +1,4 @@
-From bbdf1bbca17f8bce98e32b25aa9bfadc8f465f24 Mon Sep 17 00:00:00 2001
+From 96107c017d401160526608f58b8f1428462f7060 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Sun, 15 May 2022 23:59:17 -0700
 Subject: [PATCH] use local bazel to workaround bazel paralle issue
@@ -12,10 +12,10 @@ Signed-off-by: Julien STEPHAN <[email protected]>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/configure.py b/configure.py
-index dae3dce89d3..979f00f3633 100644
+index 6abde63a28a..85c6a04319a 100644
 --- a/configure.py
 +++ b/configure.py
-@@ -475,7 +475,7 @@ def check_bazel_version(min_version, max_version):
+@@ -420,7 +420,7 @@ def retrieve_bazel_version():
    Returns:
      The bazel version detected.
    """
@@ -24,6 +24,3 @@ index dae3dce89d3..979f00f3633 100644
    if bazel_executable is None:
      bazel_executable = which('bazelisk')
      if bazel_executable is None:
--- 
-2.36.0
-
recipes-framework/tensorflow/files/0003-third_party-eigen_archive-workaround-ice-failure-whi.patch renamed from recipes-framework/tensorflow/files/0001-third_party-eigen_archive-workaround-ice-failure-whi.patch +5 -8
similarity index 95%
rename from recipes-framework/tensorflow/files/0001-third_party-eigen_archive-workaround-ice-failure-whi.patch
rename to recipes-framework/tensorflow/files/0003-third_party-eigen_archive-workaround-ice-failure-whi.patch
index 2056c20..272ff10 100644
@@ -1,4 +1,4 @@
-From 385074d9300c18293a42c9d8ca9fb12cbffccb80 Mon Sep 17 00:00:00 2001
+From 25cddd0178dad6b208eb13cef8d4db18700edd4e Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 23:15:47 -0700
 Subject: [PATCH] third_party/eigen_archive:workaround ice failure while
@@ -14,14 +14,14 @@ Upstream-Status: Inappropriate [wr-installer specific]
 
 Signed-off-by: Hongxu Jia <[email protected]>
 ---
- ...ailure-while-building-from-source-wi.patch | 69 +++++++++++++++++++
+ ...ailure-while-building-from-source-wi.patch | 67 +++++++++++++++++++
  third_party/eigen3/workspace.bzl              |  1 +
- 2 files changed, 70 insertions(+)
+ 2 files changed, 68 insertions(+)
  create mode 100644 third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch
 
 diff --git a/third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch b/third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch
 new file mode 100644
-index 00000000000..436f35fca13
+index 00000000000..6032258ed82
 --- /dev/null
 +++ b/third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch
 @@ -0,0 +1,67 @@
@@ -93,7 +93,7 @@ index 00000000000..436f35fca13
 +2.37.1
 +
 diff --git a/third_party/eigen3/workspace.bzl b/third_party/eigen3/workspace.bzl
-index 1380722ee67..722cfbece83 100644
+index 67e625d6842..5f45e060c2f 100644
 --- a/third_party/eigen3/workspace.bzl
 +++ b/third_party/eigen3/workspace.bzl
 @@ -14,6 +14,7 @@ def repo():
@@ -104,6 +104,3 @@ index 1380722ee67..722cfbece83 100644
          sha256 = EIGEN_SHA256,
          strip_prefix = "eigen-{commit}".format(commit = EIGEN_COMMIT),
          urls = tf_mirror_urls("https://gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT)),
--- 
-2.37.1
-
recipes-framework/tensorflow/files/0004-drop-bazel_toolchains_repositories-to-support-offlin.patch renamed from recipes-framework/tensorflow/files/0001-drop-bazel_toolchains_repositories-to-support-offlin.patch +1 -4
similarity index 94%
rename from recipes-framework/tensorflow/files/0001-drop-bazel_toolchains_repositories-to-support-offlin.patch
rename to recipes-framework/tensorflow/files/0004-drop-bazel_toolchains_repositories-to-support-offlin.patch
index 730f2c2..4567db0 100644
@@ -1,4 +1,4 @@
-From 6bb9c02aae20996a6e4edd8fe743a90ce8d677aa Mon Sep 17 00:00:00 2001
+From eb5149642a766dc7938acc9c6a7357f309940317 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Sun, 18 Sep 2022 23:52:34 -0700
 Subject: [PATCH] drop bazel_toolchains_repositories to support offline build
@@ -34,6 +34,3 @@ index c3c081b19ef..445de71bb13 100644
      # Apple rules for Bazel. https://github.com/bazelbuild/rules_apple.
      # Note: We add this to fix Kokoro builds.
      # The rules below call into `rules_proto` but the hash has changed and
--- 
-2.37.1
-
recipes-framework/tensorflow/files/0005-drop-v2-config.patch renamed from recipes-framework/tensorflow/files/0001-drop-v2-config.patch +3 -6
similarity index 79%
rename from recipes-framework/tensorflow/files/0001-drop-v2-config.patch
rename to recipes-framework/tensorflow/files/0005-drop-v2-config.patch
index ff74a3c..45c4a0f 100644
@@ -1,4 +1,4 @@
-From 104224b8b30f74dabed893aa057f400ad7cd2695 Mon Sep 17 00:00:00 2001
+From f1384b8e665960cea56ee6be801a0f682c90ca4e Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:10:55 -0700
 Subject: [PATCH] drop v2 config
@@ -11,10 +11,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
  1 file changed, 3 deletions(-)
 
 diff --git a/.bazelrc b/.bazelrc
-index b6a72c1e5d3..a71ade6950f 100644
+index a2ff5848fcf..2ec8746e5c7 100644
 --- a/.bazelrc
 +++ b/.bazelrc
-@@ -138,9 +138,6 @@ build --define=with_xla_support=true
+@@ -135,9 +135,6 @@ build --define=with_xla_support=true
  # TODO(mihaimaruseac): Document this option or remove if no longer needed
  build --config=short_logs
  
@@ -24,6 +24,3 @@ index b6a72c1e5d3..a71ade6950f 100644
  # Disable AWS/HDFS support by default
  build --define=no_aws_support=true
  build --define=no_hdfs_support=true
--- 
-2.36.0
-
recipes-framework/tensorflow/files/0006-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch renamed from recipes-framework/tensorflow/files/0002-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch +6 -9
similarity index 90%
rename from recipes-framework/tensorflow/files/0002-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch
rename to recipes-framework/tensorflow/files/0006-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch
index 9ce46ee..3a0bebd 100644
@@ -1,7 +1,7 @@
-From 5dc007d64a9928d379851a6524a376bfdb819c6d Mon Sep 17 00:00:00 2001
+From 0e0f64ba41170ef9b603bb1e4e8fde9e5f2d8c6f Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:17:02 -0700
-Subject: [PATCH] Replace distutils.sysconfig.get_python_lib() with 
+Subject: [PATCH] Replace distutils.sysconfig.get_python_lib() with
  sysconfig.get_path('purelib') - python 3.10 support
 
 This is part of the effort for 51776 to get python 3.10 support.
@@ -21,7 +21,7 @@ Signed-off-by: Hongxu Jia <[email protected]>
  2 files changed, 4 insertions(+), 6 deletions(-)
 
 diff --git a/tensorflow/api_template.__init__.py b/tensorflow/api_template.__init__.py
-index 1ed97439b06..58904070e62 100644
+index cd3cbac7a96..217fb15514f 100644
 --- a/tensorflow/api_template.__init__.py
 +++ b/tensorflow/api_template.__init__.py
 @@ -26,7 +26,7 @@ only a placeholder to enable test cases to run. The TensorFlow build replaces
@@ -33,7 +33,7 @@ index 1ed97439b06..58904070e62 100644
  import inspect as _inspect
  import logging as _logging
  import os as _os
-@@ -122,8 +122,7 @@ _site_packages_dirs += [_p for _p in _sys.path if 'site-packages' in _p]
+@@ -115,8 +115,7 @@ _site_packages_dirs += [_p for _p in _sys.path if 'site-packages' in _p]
  if 'getsitepackages' in dir(_site):
    _site_packages_dirs += _site.getsitepackages()
  
@@ -44,7 +44,7 @@ index 1ed97439b06..58904070e62 100644
  _site_packages_dirs = list(set(_site_packages_dirs))
  
 diff --git a/tensorflow/api_template_v1.__init__.py b/tensorflow/api_template_v1.__init__.py
-index 87d9bc1f204..70e0fd70c34 100644
+index 6c42fea562f..1cee4e6bc29 100644
 --- a/tensorflow/api_template_v1.__init__.py
 +++ b/tensorflow/api_template_v1.__init__.py
 @@ -14,7 +14,7 @@
@@ -56,7 +56,7 @@ index 87d9bc1f204..70e0fd70c34 100644
  import inspect as _inspect
  import os as _os
  import site as _site
-@@ -163,8 +163,7 @@ _site_packages_dirs += [_p for _p in _sys.path if 'site-packages' in _p]
+@@ -156,8 +156,7 @@ _site_packages_dirs += [_p for _p in _sys.path if 'site-packages' in _p]
  if 'getsitepackages' in dir(_site):
    _site_packages_dirs += _site.getsitepackages()
  
@@ -66,6 +66,3 @@ index 87d9bc1f204..70e0fd70c34 100644
  
  _site_packages_dirs = list(set(_site_packages_dirs))
  
--- 
-2.36.0
-
recipes-framework/tensorflow/files/0007-hardcode-go-SDKS.patch renamed from recipes-framework/tensorflow/files/0001-hardcode-go-SDKS.patch +6 -9
similarity index 91%
rename from recipes-framework/tensorflow/files/0001-hardcode-go-SDKS.patch
rename to recipes-framework/tensorflow/files/0007-hardcode-go-SDKS.patch
index e365c27..085ac99 100644
@@ -1,4 +1,4 @@
-From c0fa623063942d53f9f65fb14ada4cbec5cc9b9a Mon Sep 17 00:00:00 2001
+From 99b30ec0c6f344208ab3f674e542e90a1b487059 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Thu, 1 Dec 2022 23:10:37 +0800
 Subject: [PATCH] hardcode go SDKS
@@ -17,15 +17,15 @@ Upstream-Status: Inappropriate [Yocto specific]
 Signed-off-by: Hongxu Jia <[email protected]>
 ---
  tensorflow/workspace2.bzl               |  1 +
- third_party/0001-hardcode-go-SDKS.patch | 49 +++++++++++++++++++++++++
- 2 files changed, 50 insertions(+)
+ third_party/0001-hardcode-go-SDKS.patch | 47 +++++++++++++++++++++++++
+ 2 files changed, 48 insertions(+)
  create mode 100644 third_party/0001-hardcode-go-SDKS.patch
 
 diff --git a/tensorflow/workspace2.bzl b/tensorflow/workspace2.bzl
-index 1b947d006fe..410a0ba8b54 100644
+index 1261273bc92..11681ff4e29 100644
 --- a/tensorflow/workspace2.bzl
 +++ b/tensorflow/workspace2.bzl
-@@ -883,6 +883,7 @@ def _tf_repositories():
+@@ -895,6 +895,7 @@ def _tf_repositories():
      #   - patch upb so that it's compatible with Bazel 6.0, the latest version of upb doesn't work with the old grpc version.
      tf_http_archive(
          name = "io_bazel_rules_go",
@@ -35,7 +35,7 @@ index 1b947d006fe..410a0ba8b54 100644
      )
 diff --git a/third_party/0001-hardcode-go-SDKS.patch b/third_party/0001-hardcode-go-SDKS.patch
 new file mode 100644
-index 00000000000..b51d7262f4c
+index 00000000000..b66926be35d
 --- /dev/null
 +++ b/third_party/0001-hardcode-go-SDKS.patch
 @@ -0,0 +1,47 @@
@@ -86,6 +86,3 @@ index 00000000000..b51d7262f4c
 +-- 
 +2.32.0
 +
--- 
-2.27.0
-
recipes-framework/tensorflow/files/0008-Fix-failure-while-gcc-7.5.0.patch renamed from recipes-framework/tensorflow/files/0001-Fix-failure-while-gcc-7.5.0.patch +1 -4
similarity index 95%
rename from recipes-framework/tensorflow/files/0001-Fix-failure-while-gcc-7.5.0.patch
rename to recipes-framework/tensorflow/files/0008-Fix-failure-while-gcc-7.5.0.patch
index 514779d..9e09bb4 100644
@@ -1,4 +1,4 @@
-From d844e0ed4cab7ca4156927a029df36279e119edc Mon Sep 17 00:00:00 2001
+From e87e5a405cc01b65cdf367de562035922a21c058 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 27 Mar 2023 12:33:25 +0800
 Subject: [PATCH] Fix failure while gcc <= 7.5.0
@@ -29,6 +29,3 @@ index fe1b205ce1d..09db4f83531 100644
    if (ec) {
      return absl::InternalError(absl::StrFormat(
          "Unable to open file: %s, error: %s", dump_file_path, ec.message()));
--- 
-2.17.1
-
recipes-framework/tensorflow/files/0009-fix-compile-error-for-gcc-13.1.patch renamed from recipes-framework/tensorflow/files/0001-fix-compile-error-for-gcc-13.1.patch +1 -4
similarity index 95%
rename from recipes-framework/tensorflow/files/0001-fix-compile-error-for-gcc-13.1.patch
rename to recipes-framework/tensorflow/files/0009-fix-compile-error-for-gcc-13.1.patch
index 31bc523..69bb1c9 100644
@@ -1,4 +1,4 @@
-From 9dae6d9e9555787bb097e50dc1449f787003de00 Mon Sep 17 00:00:00 2001
+From b6d8dea6d8718b270dd0e2bd25f8e4612ee34e62 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Wed, 28 Jun 2023 14:44:50 +0800
 Subject: [PATCH] fix compile error for gcc 13.1
@@ -43,6 +43,3 @@ index f894c5916d5..4e509cea05c 100644
  #include "tensorflow/tsl/platform/stringpiece.h"
  
  // A Cache is an interface that maps keys to values.  It has internal
--- 
-2.27.0
-
recipes-framework/tensorflow/files/0010-fix-compile-failure.patch renamed from recipes-framework/tensorflow/files/0001-fix-compile-failure.patch +1 -4
similarity index 93%
rename from recipes-framework/tensorflow/files/0001-fix-compile-failure.patch
rename to recipes-framework/tensorflow/files/0010-fix-compile-failure.patch
index 3b8775f..f509e0b 100644
@@ -1,4 +1,4 @@
-From b8abee60ed3c49d496eb1427f36ec6c23e768ff6 Mon Sep 17 00:00:00 2001
+From 111aba5fda30dc301bcb72e494277d45b3337518 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Tue, 12 Sep 2023 14:23:26 +0800
 Subject: [PATCH] fix compile failure
@@ -28,6 +28,3 @@ index d8685c4db26..e6d36a08d48 100644
  
  // If we're on gcc 4.8 or older, there's a known bug that prevents the use of
  // intrinsics when the architecture is not defined in the flags. See
--- 
-2.27.0
-
recipes-framework/tensorflow/files/0011-add-yocto-toolchain-to-support-cross-compiling.patch renamed from recipes-framework/tensorflow/files/0001-add-yocto-toolchain-to-support-cross-compiling.patch +1 -4
similarity index 97%
rename from recipes-framework/tensorflow/files/0001-add-yocto-toolchain-to-support-cross-compiling.patch
rename to recipes-framework/tensorflow/files/0011-add-yocto-toolchain-to-support-cross-compiling.patch
index f202e1d..aea4618 100644
@@ -1,4 +1,4 @@
-From c7a3e265041f9fd0d86d473338122a597d5234c5 Mon Sep 17 00:00:00 2001
+From cc522bdebaa28115662d38b655f3b9e8eee28026 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Sun, 12 Mar 2023 23:38:01 -0700
 Subject: [PATCH] add yocto toolchain to support cross compiling
@@ -72,6 +72,3 @@ index 11681ff4e29..b8fa81642bd 100644
      # TFLite crossbuild toolchain for embeddeds Linux
      arm_linux_toolchain_configure(
          name = "local_config_embedded_arm",
--- 
-2.37.1
-
recipes-framework/tensorflow/files/0012-fix-build-tensorflow-lite-examples-label_image-label.patch renamed from recipes-framework/tensorflow/files/0001-fix-build-tensorflow-lite-examples-label_image-label.patch +4 -7
similarity index 85%
rename from recipes-framework/tensorflow/files/0001-fix-build-tensorflow-lite-examples-label_image-label.patch
rename to recipes-framework/tensorflow/files/0012-fix-build-tensorflow-lite-examples-label_image-label.patch
index 0502c5b..f9d16c3 100644
@@ -1,4 +1,4 @@
-From 1af9e2180f680c1b0c94fbeeaee9dc522f353d07 Mon Sep 17 00:00:00 2001
+From 0dd71f76f8384c8dec85c31f94df6bdaa9ee665e Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Tue, 17 Aug 2021 16:00:24 +0800
 Subject: [PATCH] fix build //tensorflow/lite/examples/label_image:label_image
@@ -21,10 +21,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
  1 file changed, 8 insertions(+)
 
 diff --git a/tensorflow/lite/kernels/internal/BUILD b/tensorflow/lite/kernels/internal/BUILD
-index 8c714fc282d..6ea96e4f103 100644
+index a830c5df2e2..bbfb07bf21f 100644
 --- a/tensorflow/lite/kernels/internal/BUILD
 +++ b/tensorflow/lite/kernels/internal/BUILD
-@@ -112,6 +112,13 @@ config_setting(
+@@ -116,6 +116,13 @@ config_setting(
      },
  )
  
@@ -38,7 +38,7 @@ index 8c714fc282d..6ea96e4f103 100644
  config_setting(
      name = "haswell",
      values = {
-@@ -235,6 +242,7 @@ selects.config_setting_group(
+@@ -246,6 +253,7 @@ selects.config_setting_group(
          ":arm",
          ":arm64-v8a",
          ":armeabi-v7a",
@@ -46,6 +46,3 @@ index 8c714fc282d..6ea96e4f103 100644
          ":armhf",
          ":armv7a",
          ":ios_armv7",
--- 
-2.27.0
-
recipes-framework/tensorflow/files/0013-label_image-tweak-default-model-location.patch renamed from recipes-framework/tensorflow/files/0001-label_image-tweak-default-model-location.patch +2 -5
similarity index 95%
rename from recipes-framework/tensorflow/files/0001-label_image-tweak-default-model-location.patch
rename to recipes-framework/tensorflow/files/0013-label_image-tweak-default-model-location.patch
index 5962c90..3785f77 100644
@@ -1,4 +1,4 @@
-From 17e03724c925f8d0b11c8f14699646aa498af798 Mon Sep 17 00:00:00 2001
+From 4b97089f7c18df8fef47cb4d825d96aa07316d35 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:36:00 -0700
 Subject: [PATCH] label_image: tweak default model location
@@ -30,7 +30,7 @@ index 3e4bc1ddaab..83558251d77 100644
    input_width = 299
    input_mean = 0
 diff --git a/tensorflow/examples/label_image/main.cc b/tensorflow/examples/label_image/main.cc
-index 13bb5980276..38935a57dd4 100644
+index 3a5d44eb669..fcf8dcb7644 100644
 --- a/tensorflow/examples/label_image/main.cc
 +++ b/tensorflow/examples/label_image/main.cc
 @@ -279,11 +279,11 @@ int main(int argc, char* argv[]) {
@@ -48,6 +48,3 @@ index 13bb5980276..38935a57dd4 100644
    int32_t input_width = 299;
    int32_t input_height = 299;
    float input_mean = 0;
--- 
-2.36.0
-
recipes-framework/tensorflow/files/0014-label_image.lite-tweak-default-model-location.patch renamed from recipes-framework/tensorflow/files/0001-label_image.lite-tweak-default-model-location.patch +1 -4
similarity index 94%
rename from recipes-framework/tensorflow/files/0001-label_image.lite-tweak-default-model-location.patch
rename to recipes-framework/tensorflow/files/0014-label_image.lite-tweak-default-model-location.patch
index 597021a..b870e59 100644
@@ -1,4 +1,4 @@
-From dd73bef88a23d29299bc6e2f3c892ed81d65a86c Mon Sep 17 00:00:00 2001
+From 5e6734503d8d5bc56dfe47dd7d5d0ee50aa4832c Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Wed, 9 Dec 2020 09:53:30 +0800
 Subject: [PATCH] label_image.lite: tweak default model location
@@ -30,6 +30,3 @@ index 1c00edb6558..a5bcf8c64d8 100644
    int number_of_threads = 4;
    int number_of_results = 5;
    int max_profiling_buffer_entries = 1024;
--- 
-2.18.2
-
recipes-framework/tensorflow/files/0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch renamed from recipes-framework/tensorflow/files/0001-CheckFeatureOrDie-use-warning-to-avoid-die.patch +3 -6
similarity index 90%
rename from recipes-framework/tensorflow/files/0001-CheckFeatureOrDie-use-warning-to-avoid-die.patch
rename to recipes-framework/tensorflow/files/0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch
index 7bde666..c826c1e 100644
@@ -1,4 +1,4 @@
-From 1455cd4232f382b73cb4ff6dfa6ccc7bd5197428 Mon Sep 17 00:00:00 2001
+From 6c0e8215f1e476862f42b61b7ee6029d8ba397a4 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:39:33 -0700
 Subject: [PATCH] CheckFeatureOrDie: use warning to avoid die
@@ -14,10 +14,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
  1 file changed, 7 deletions(-)
 
 diff --git a/tensorflow/core/platform/cpu_feature_guard.cc b/tensorflow/core/platform/cpu_feature_guard.cc
-index 11a438925c1..9874ed34793 100644
+index 245f3263a9e..a642056fb02 100644
 --- a/tensorflow/core/platform/cpu_feature_guard.cc
 +++ b/tensorflow/core/platform/cpu_feature_guard.cc
-@@ -36,18 +36,11 @@ void CheckFeatureOrDie(CPUFeature feature, const string& feature_name) {
+@@ -36,18 +36,11 @@ void CheckFeatureOrDie(CPUFeature feature, const std::string& feature_name) {
      const auto error_msg =
          "The TensorFlow library was compiled to use " + feature_name +
          " instructions, but these aren't available on your machine.";
@@ -36,6 +36,3 @@ index 11a438925c1..9874ed34793 100644
    }
  }
  
--- 
-2.36.0
-
recipes-framework/tensorflow/files/0016-support-32-bit-x64-and-arm-for-yocto.patch renamed from recipes-framework/tensorflow/files/0001-support-32-bit-x64-and-arm-for-yocto.patch +7 -10
similarity index 91%
rename from recipes-framework/tensorflow/files/0001-support-32-bit-x64-and-arm-for-yocto.patch
rename to recipes-framework/tensorflow/files/0016-support-32-bit-x64-and-arm-for-yocto.patch
index 22bd6c1..cca7899 100644
@@ -1,4 +1,4 @@
-From 66e10e0d0999493509d0946a40ce2e8bf8b50ff4 Mon Sep 17 00:00:00 2001
+From 480271c4007031090043db9534a63acd4db997e9 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Sun, 12 Mar 2023 23:48:00 -0700
 Subject: [PATCH] support 32 bit x64 and arm for yocto
@@ -9,11 +9,11 @@ Rebase to 2.12.0
 
 Signed-off-by: Hongxu Jia <[email protected]>
 ---
- tensorflow/BUILD                              |  3 --
+ tensorflow/BUILD                              |  3 ---
  tensorflow/workspace2.bzl                     |  2 ++
- .../0001-XNNPACK-support-32-bit-x86.patch     | 29 +++++++++++++++++++
- .../0001-cpuinfo-support-32-bit-x86.patch     | 28 ++++++++++++++++++
- 4 files changed, 59 insertions(+), 3 deletions(-)
+ .../0001-XNNPACK-support-32-bit-x86.patch     | 27 +++++++++++++++++++
+ .../0001-cpuinfo-support-32-bit-x86.patch     | 27 +++++++++++++++++++
+ 4 files changed, 56 insertions(+), 3 deletions(-)
  create mode 100644 third_party/0001-XNNPACK-support-32-bit-x86.patch
  create mode 100644 third_party/0001-cpuinfo-support-32-bit-x86.patch
 
@@ -53,7 +53,7 @@ index b8fa81642bd..2c86e3c8639 100644
  
 diff --git a/third_party/0001-XNNPACK-support-32-bit-x86.patch b/third_party/0001-XNNPACK-support-32-bit-x86.patch
 new file mode 100644
-index 00000000000..2141c37236b
+index 00000000000..e2c053e6f8c
 --- /dev/null
 +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
 @@ -0,0 +1,27 @@
@@ -86,7 +86,7 @@ index 00000000000..2141c37236b
 +
 diff --git a/third_party/0001-cpuinfo-support-32-bit-x86.patch b/third_party/0001-cpuinfo-support-32-bit-x86.patch
 new file mode 100644
-index 00000000000..0c83cf01675
+index 00000000000..cd6b27eaea3
 --- /dev/null
 +++ b/third_party/0001-cpuinfo-support-32-bit-x86.patch
 @@ -0,0 +1,27 @@
@@ -117,6 +117,3 @@ index 00000000000..0c83cf01675
 +-- 
 +2.37.1
 +
--- 
-2.37.1
-
recipes-framework/tensorflow/files/0017-Revert-set-distinct_host_configuration-false-by-defa.patch renamed from recipes-framework/tensorflow/files/0001-Revert-set-distinct_host_configuration-false-by-defa.patch +3 -6
similarity index 81%
rename from recipes-framework/tensorflow/files/0001-Revert-set-distinct_host_configuration-false-by-defa.patch
rename to recipes-framework/tensorflow/files/0017-Revert-set-distinct_host_configuration-false-by-defa.patch
index adc4661..a6d4131 100644
@@ -1,4 +1,4 @@
-From 0076b9b52016c7a22c4418d25945ebc893a67b12 Mon Sep 17 00:00:00 2001
+From c40feb600abaeba1de7e736a4a4d0de71d798a44 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:53:00 -0700
 Subject: [PATCH] Revert "set --distinct_host_configuration=false by default
@@ -16,10 +16,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
  1 file changed, 2 deletions(-)
 
 diff --git a/.bazelrc b/.bazelrc
-index a71ade6950f..9f7627bb7c6 100644
+index 2ec8746e5c7..e6db7e4c586 100644
 --- a/.bazelrc
 +++ b/.bazelrc
-@@ -355,8 +355,6 @@ build:windows --features=compiler_param_file
+@@ -397,8 +397,6 @@ build:windows --features=compiler_param_file
  
  # On windows, we never cross compile
  build:windows --distinct_host_configuration=false
@@ -28,6 +28,3 @@ index a71ade6950f..9f7627bb7c6 100644
  
  # Do not risk cache corruption. See:
  # https://github.com/bazelbuild/bazel/issues/3360
--- 
-2.36.0
-
recipes-framework/tensorflow/files/0018-distutils-is-deprecated-in-Python-3.10-51776.patch renamed from recipes-framework/tensorflow/files/0001-distutils-is-deprecated-in-Python-3.10-cross.patch +1 -4
similarity index 96%
rename from recipes-framework/tensorflow/files/0001-distutils-is-deprecated-in-Python-3.10-cross.patch
rename to recipes-framework/tensorflow/files/0018-distutils-is-deprecated-in-Python-3.10-51776.patch
index e79fc24..a1b6a6d 100644
@@ -1,4 +1,4 @@
-From 79bd5c1e597ffd877822297a48d9eaa9ca3a317d Mon Sep 17 00:00:00 2001
+From 85fada9708cd38c278cc4237feb90d0c94425758 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 01:18:43 -0700
 Subject: [PATCH] `distutils` is deprecated in Python 3.10 #51776
@@ -47,6 +47,3 @@ index 300cbfb6c71..e57af9f9dc9 100644
  
  def _get_python_import_lib_name(repository_ctx, python_bin):
      """Get Python import library name (pythonXY.lib) on Windows."""
--- 
-2.36.0
-
recipes-framework/tensorflow/tensorflow-lite_2.12.0.bb +13 -13
index e76a09b..b85000f 100644
@@ -1,19 +1,19 @@
 include tensorflow.inc
 
 SRC_URI += " \
-           file://0001-add-yocto-toolchain-to-support-cross-compiling.patch \
-           file://0001-fix-build-tensorflow-lite-examples-label_image-label.patch \
-           file://0001-label_image-tweak-default-model-location.patch \
-           file://0001-label_image.lite-tweak-default-model-location.patch \
-           file://0001-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
-           file://0001-support-32-bit-x64-and-arm-for-yocto.patch \
-           file://0001-Revert-set-distinct_host_configuration-false-by-defa.patch \
-           file://0001-distutils-is-deprecated-in-Python-3.10-cross.patch \
-           file://BUILD.in \
-           file://BUILD.yocto_compiler \
-           file://cc_config.bzl.tpl \
-           file://yocto_compiler_configure.bzl \
-          "
+    file://0011-add-yocto-toolchain-to-support-cross-compiling.patch \
+    file://0012-fix-build-tensorflow-lite-examples-label_image-label.patch \
+    file://0013-label_image-tweak-default-model-location.patch \
+    file://0014-label_image.lite-tweak-default-model-location.patch \
+    file://0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
+    file://0016-support-32-bit-x64-and-arm-for-yocto.patch \
+    file://0017-Revert-set-distinct_host_configuration-false-by-defa.patch \
+    file://0018-distutils-is-deprecated-in-Python-3.10-51776.patch \
+    file://BUILD.in \
+    file://BUILD.yocto_compiler \
+    file://cc_config.bzl.tpl \
+    file://yocto_compiler_configure.bzl \
+"
 SRC_URI:append:arm = " \
     file://0019-fix-XNNPACK-build-failure-for-qemuarm.patch \
 "
recipes-framework/tensorflow/tensorflow.inc +11 -12
index 0d1d5aa..c32b902 100644
@@ -5,18 +5,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4158a261ca7f2525513e31ba9c50ae98"
 DEPENDS = "bazel-native protobuf-native util-linux-native protobuf"
 SRCREV = "0db597d0d758aba578783b5bf46c889700a45085"
 SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r2.12;protocol=https \
-           file://0001-support-musl.patch \
-           file://0001-use-local-bazel-to-workaround-bazel-paralle-issue.patch \
-           file://0001-third_party-eigen_archive-workaround-ice-failure-whi.patch \
-           file://0001-drop-bazel_toolchains_repositories-to-support-offlin.patch \
-           file://0001-drop-v2-config.patch \
-           file://0002-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch \
-           file://0001-hardcode-go-SDKS.patch \
-           file://0001-Fix-failure-while-gcc-7.5.0.patch \
-           file://0001-fix-compile-error-for-gcc-13.1.patch \
-           file://0001-fix-compile-failure.patch \
-          "
-
+    file://0001-support-musl.patch \
+    file://0002-use-local-bazel-to-workaround-bazel-paralle-issue.patch \
+    file://0003-third_party-eigen_archive-workaround-ice-failure-whi.patch \
+    file://0004-drop-bazel_toolchains_repositories-to-support-offlin.patch \
+    file://0005-drop-v2-config.patch \
+    file://0006-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch \
+    file://0007-hardcode-go-SDKS.patch \
+    file://0008-Fix-failure-while-gcc-7.5.0.patch \
+    file://0009-fix-compile-error-for-gcc-13.1.patch \
+    file://0010-fix-compile-failure.patch \
+"
 S = "${WORKDIR}/git"
 
 DEPENDS += " \
recipes-framework/tensorflow/tensorflow_2.12.0.bb +13 -13
index 19c5b99..e045a7d 100644
@@ -1,19 +1,19 @@
 include tensorflow.inc
 
 SRC_URI += " \
-           file://0001-add-yocto-toolchain-to-support-cross-compiling.patch \
-           file://0001-fix-build-tensorflow-lite-examples-label_image-label.patch \
-           file://0001-label_image-tweak-default-model-location.patch \
-           file://0001-label_image.lite-tweak-default-model-location.patch \
-           file://0001-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
-           file://0001-support-32-bit-x64-and-arm-for-yocto.patch \
-           file://0001-Revert-set-distinct_host_configuration-false-by-defa.patch \
-           file://0001-distutils-is-deprecated-in-Python-3.10-cross.patch \
-           file://BUILD.in \
-           file://BUILD.yocto_compiler \
-           file://cc_config.bzl.tpl \
-           file://yocto_compiler_configure.bzl \
-          "
+    file://0011-add-yocto-toolchain-to-support-cross-compiling.patch \
+    file://0012-fix-build-tensorflow-lite-examples-label_image-label.patch \
+    file://0013-label_image-tweak-default-model-location.patch \
+    file://0014-label_image.lite-tweak-default-model-location.patch \
+    file://0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
+    file://0016-support-32-bit-x64-and-arm-for-yocto.patch \
+    file://0017-Revert-set-distinct_host_configuration-false-by-defa.patch \
+    file://0018-distutils-is-deprecated-in-Python-3.10-51776.patch \
+    file://BUILD.in \
+    file://BUILD.yocto_compiler \
+    file://cc_config.bzl.tpl \
+    file://yocto_compiler_configure.bzl \
+"
 
 SRC_URI += "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz;name=model-inv3"
 SRC_URI[model-inv3.md5sum] = "a904ddf15593d03c7dd786d552e22d73"
Signature · 1 line
2.48.1
#2 lore raw

PATCH 3/3 tensorflow: add 0001-fix-python3-include-directory-not-found.patch everywhere

In reply to Martin Jansa

* move 0001-fix-python3-include-directory-not-found.patch from tensorflow-native to tensorflow.inc as the whole section is later removed for target builds by:
0019-distutils-is-deprecated-in-Python-3.10-51776.patch so we can use single chain of .patch files

---
 ...-python3-include-directory-not-found.patch} |  2 +-
 ...toolchain-to-support-cross-compiling.patch} |  2 +-
 ...flow-lite-examples-label_image-label.patch} |  2 +-
 ...l_image-tweak-default-model-location.patch} |  2 +-
 ...ge.lite-tweak-default-model-location.patch} |  2 +-
 ...eatureOrDie-use-warning-to-avoid-die.patch} |  2 +-
 ...support-32-bit-x64-and-arm-for-yocto.patch} |  2 +-
 ...nct_host_configuration-false-by-defa.patch} |  2 +-
 ...s-is-deprecated-in-Python-3.10-51776.patch} | 18 ++++++++----------
 ...ix-XNNPACK-build-failure-for-qemuarm.patch} |  2 +-
 .../tensorflow/tensorflow-lite_2.12.0.bb       | 18 +++++++++---------
 .../tensorflow/tensorflow-native_2.12.0.bb     |  4 ----
 recipes-framework/tensorflow/tensorflow.inc    |  1 +
 .../tensorflow/tensorflow_2.12.0.bb            | 17 +++++++++--------
 14 files changed, 36 insertions(+), 40 deletions(-)
 rename recipes-framework/tensorflow/files/{0001-fix-python3-include-directory-not-found.patch => 0011-fix-python3-include-directory-not-found.patch} (96%)
 rename recipes-framework/tensorflow/files/{0011-add-yocto-toolchain-to-support-cross-compiling.patch => 0012-add-yocto-toolchain-to-support-cross-compiling.patch} (97%)
 rename recipes-framework/tensorflow/files/{0012-fix-build-tensorflow-lite-examples-label_image-label.patch => 0013-fix-build-tensorflow-lite-examples-label_image-label.patch} (95%)
 rename recipes-framework/tensorflow/files/{0013-label_image-tweak-default-model-location.patch => 0014-label_image-tweak-default-model-location.patch} (97%)
 rename recipes-framework/tensorflow/files/{0014-label_image.lite-tweak-default-model-location.patch => 0015-label_image.lite-tweak-default-model-location.patch} (95%)
 rename recipes-framework/tensorflow/files/{0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch => 0016-CheckFeatureOrDie-use-warning-to-avoid-die.patch} (95%)
 rename recipes-framework/tensorflow/files/{0016-support-32-bit-x64-and-arm-for-yocto.patch => 0017-support-32-bit-x64-and-arm-for-yocto.patch} (98%)
 rename recipes-framework/tensorflow/files/{0017-Revert-set-distinct_host_configuration-false-by-defa.patch => 0018-Revert-set-distinct_host_configuration-false-by-defa.patch} (93%)
 rename recipes-framework/tensorflow/files/{0018-distutils-is-deprecated-in-Python-3.10-51776.patch => 0019-distutils-is-deprecated-in-Python-3.10-51776.patch} (70%)
 rename recipes-framework/tensorflow/files/{0019-fix-XNNPACK-build-failure-for-qemuarm.patch => 0020-fix-XNNPACK-build-failure-for-qemuarm.patch} (99%)
recipes-framework/tensorflow/files/0011-fix-python3-include-directory-not-found.patch renamed from recipes-framework/tensorflow/files/0001-fix-python3-include-directory-not-found.patch +1 -1
similarity index 96%
rename from recipes-framework/tensorflow/files/0001-fix-python3-include-directory-not-found.patch
rename to recipes-framework/tensorflow/files/0011-fix-python3-include-directory-not-found.patch
index 4e9b9c5..d516d70 100644
@@ -1,4 +1,4 @@
-From b0df1f017ab730b150dcfe71084620e4edf44504 Mon Sep 17 00:00:00 2001
+From d15265b01f6247e32ee3793e44ac6d0416e63615 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 14 Nov 2022 15:27:41 +0800
 Subject: [PATCH] fix python3 include directory not found
recipes-framework/tensorflow/files/0012-add-yocto-toolchain-to-support-cross-compiling.patch renamed from recipes-framework/tensorflow/files/0011-add-yocto-toolchain-to-support-cross-compiling.patch +1 -1
similarity index 97%
rename from recipes-framework/tensorflow/files/0011-add-yocto-toolchain-to-support-cross-compiling.patch
rename to recipes-framework/tensorflow/files/0012-add-yocto-toolchain-to-support-cross-compiling.patch
index aea4618..74be839 100644
@@ -1,4 +1,4 @@
-From cc522bdebaa28115662d38b655f3b9e8eee28026 Mon Sep 17 00:00:00 2001
+From 8c0c0341c7db90116e970d5920cfcbc8458172d9 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Sun, 12 Mar 2023 23:38:01 -0700
 Subject: [PATCH] add yocto toolchain to support cross compiling
recipes-framework/tensorflow/files/0013-fix-build-tensorflow-lite-examples-label_image-label.patch renamed from recipes-framework/tensorflow/files/0012-fix-build-tensorflow-lite-examples-label_image-label.patch +1 -1
similarity index 95%
rename from recipes-framework/tensorflow/files/0012-fix-build-tensorflow-lite-examples-label_image-label.patch
rename to recipes-framework/tensorflow/files/0013-fix-build-tensorflow-lite-examples-label_image-label.patch
index f9d16c3..03ca5e1 100644
@@ -1,4 +1,4 @@
-From 0dd71f76f8384c8dec85c31f94df6bdaa9ee665e Mon Sep 17 00:00:00 2001
+From eb54003a69b626e7b46764e817426c5e7e63b95c Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Tue, 17 Aug 2021 16:00:24 +0800
 Subject: [PATCH] fix build //tensorflow/lite/examples/label_image:label_image
recipes-framework/tensorflow/files/0014-label_image-tweak-default-model-location.patch renamed from recipes-framework/tensorflow/files/0013-label_image-tweak-default-model-location.patch +1 -1
similarity index 97%
rename from recipes-framework/tensorflow/files/0013-label_image-tweak-default-model-location.patch
rename to recipes-framework/tensorflow/files/0014-label_image-tweak-default-model-location.patch
index 3785f77..1649484 100644
@@ -1,4 +1,4 @@
-From 4b97089f7c18df8fef47cb4d825d96aa07316d35 Mon Sep 17 00:00:00 2001
+From fc0d23151539eba2beb9a33e8229e99a32453d2a Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:36:00 -0700
 Subject: [PATCH] label_image: tweak default model location
recipes-framework/tensorflow/files/0015-label_image.lite-tweak-default-model-location.patch renamed from recipes-framework/tensorflow/files/0014-label_image.lite-tweak-default-model-location.patch +1 -1
similarity index 95%
rename from recipes-framework/tensorflow/files/0014-label_image.lite-tweak-default-model-location.patch
rename to recipes-framework/tensorflow/files/0015-label_image.lite-tweak-default-model-location.patch
index b870e59..64c407c 100644
@@ -1,4 +1,4 @@
-From 5e6734503d8d5bc56dfe47dd7d5d0ee50aa4832c Mon Sep 17 00:00:00 2001
+From 4b546bb68b8b1c3ebb244bd0e0b4071bb6fc3595 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Wed, 9 Dec 2020 09:53:30 +0800
 Subject: [PATCH] label_image.lite: tweak default model location
recipes-framework/tensorflow/files/0016-CheckFeatureOrDie-use-warning-to-avoid-die.patch renamed from recipes-framework/tensorflow/files/0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch +1 -1
similarity index 95%
rename from recipes-framework/tensorflow/files/0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch
rename to recipes-framework/tensorflow/files/0016-CheckFeatureOrDie-use-warning-to-avoid-die.patch
index c826c1e..a094eb6 100644
@@ -1,4 +1,4 @@
-From 6c0e8215f1e476862f42b61b7ee6029d8ba397a4 Mon Sep 17 00:00:00 2001
+From 8d182dd0c99c063b308bcfb26aad662fd38a8264 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:39:33 -0700
 Subject: [PATCH] CheckFeatureOrDie: use warning to avoid die
recipes-framework/tensorflow/files/0017-support-32-bit-x64-and-arm-for-yocto.patch renamed from recipes-framework/tensorflow/files/0016-support-32-bit-x64-and-arm-for-yocto.patch +1 -1
similarity index 98%
rename from recipes-framework/tensorflow/files/0016-support-32-bit-x64-and-arm-for-yocto.patch
rename to recipes-framework/tensorflow/files/0017-support-32-bit-x64-and-arm-for-yocto.patch
index cca7899..c85965f 100644
@@ -1,4 +1,4 @@
-From 480271c4007031090043db9534a63acd4db997e9 Mon Sep 17 00:00:00 2001
+From 11bc5bdda19d610e2b0f7704fccf3372f27e6e1c Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Sun, 12 Mar 2023 23:48:00 -0700
 Subject: [PATCH] support 32 bit x64 and arm for yocto
recipes-framework/tensorflow/files/0018-Revert-set-distinct_host_configuration-false-by-defa.patch renamed from recipes-framework/tensorflow/files/0017-Revert-set-distinct_host_configuration-false-by-defa.patch +1 -1
similarity index 93%
rename from recipes-framework/tensorflow/files/0017-Revert-set-distinct_host_configuration-false-by-defa.patch
rename to recipes-framework/tensorflow/files/0018-Revert-set-distinct_host_configuration-false-by-defa.patch
index a6d4131..f519424 100644
@@ -1,4 +1,4 @@
-From c40feb600abaeba1de7e736a4a4d0de71d798a44 Mon Sep 17 00:00:00 2001
+From 07554cdcd86f1091c8e27090dce6ce3863b68e8f Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 00:53:00 -0700
 Subject: [PATCH] Revert "set --distinct_host_configuration=false by default
recipes-framework/tensorflow/files/0019-distutils-is-deprecated-in-Python-3.10-51776.patch renamed from recipes-framework/tensorflow/files/0018-distutils-is-deprecated-in-Python-3.10-51776.patch +8 -10
similarity index 70%
rename from recipes-framework/tensorflow/files/0018-distutils-is-deprecated-in-Python-3.10-51776.patch
rename to recipes-framework/tensorflow/files/0019-distutils-is-deprecated-in-Python-3.10-51776.patch
index a1b6a6d..f7ab138 100644
@@ -1,4 +1,4 @@
-From 85fada9708cd38c278cc4237feb90d0c94425758 Mon Sep 17 00:00:00 2001
+From f4bdb494b665d13b469b00e4b51e468b30268f1b Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 16 May 2022 01:18:43 -0700
 Subject: [PATCH] `distutils` is deprecated in Python 3.10 #51776
@@ -14,14 +14,14 @@ Upstream-Status: Inappropriate [oe specific]
 
 Signed-off-by: Hongxu Jia <[email protected]>
 ---
- third_party/py/python_configure.bzl | 19 +------------------
- 1 file changed, 1 insertion(+), 18 deletions(-)
+ third_party/py/python_configure.bzl | 17 +----------------
+ 1 file changed, 1 insertion(+), 16 deletions(-)
 
 diff --git a/third_party/py/python_configure.bzl b/third_party/py/python_configure.bzl
-index 300cbfb6c71..e57af9f9dc9 100644
+index 14248233dc1..e57af9f9dc9 100644
 --- a/third_party/py/python_configure.bzl
 +++ b/third_party/py/python_configure.bzl
-@@ -149,24 +149,7 @@ def _check_python_bin(repository_ctx, python_bin):
+@@ -149,22 +149,7 @@ def _check_python_bin(repository_ctx, python_bin):
  
  def _get_python_include(repository_ctx, python_bin):
      """Gets the python include path."""
@@ -31,11 +31,9 @@ index 300cbfb6c71..e57af9f9dc9 100644
 -            python_bin,
 -            "-Wignore",
 -            "-c",
--            "import importlib; " +
--            "import importlib.util; " +
--            "print(importlib.import_module('distutils.sysconfig').get_python_inc() " +
--            "if importlib.util.find_spec('distutils.sysconfig') " +
--            "else importlib.import_module('sysconfig').get_path('include'))",
+-            "from __future__ import print_function;" +
+-            "import sysconfig;" +
+-            "print(sysconfig.get_path('include'))"
 -        ],
 -        error_msg = "Problem getting python include path.",
 -        error_details = ("Is the Python binary path set up right? " +
recipes-framework/tensorflow/files/0020-fix-XNNPACK-build-failure-for-qemuarm.patch renamed from recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch +1 -1
similarity index 99%
rename from recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch
rename to recipes-framework/tensorflow/files/0020-fix-XNNPACK-build-failure-for-qemuarm.patch
index 1a792ee..4838644 100644
@@ -1,4 +1,4 @@
-From 2ace7a16a8033169b7ddb71a79956416644ffa3e Mon Sep 17 00:00:00 2001
+From 78979d043ffc4395b4a311aeef220cc34aac8c8d Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Thu, 23 Mar 2023 10:28:04 +0800
 Subject: [PATCH] fix XNNPACK build failure for qemuarm
recipes-framework/tensorflow/tensorflow-lite_2.12.0.bb +9 -9
index b85000f..1f228a6 100644
@@ -1,21 +1,21 @@
 include tensorflow.inc
 
 SRC_URI += " \
-    file://0011-add-yocto-toolchain-to-support-cross-compiling.patch \
-    file://0012-fix-build-tensorflow-lite-examples-label_image-label.patch \
-    file://0013-label_image-tweak-default-model-location.patch \
-    file://0014-label_image.lite-tweak-default-model-location.patch \
-    file://0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
-    file://0016-support-32-bit-x64-and-arm-for-yocto.patch \
-    file://0017-Revert-set-distinct_host_configuration-false-by-defa.patch \
-    file://0018-distutils-is-deprecated-in-Python-3.10-51776.patch \
+    file://0012-add-yocto-toolchain-to-support-cross-compiling.patch \
+    file://0013-fix-build-tensorflow-lite-examples-label_image-label.patch \
+    file://0014-label_image-tweak-default-model-location.patch \
+    file://0015-label_image.lite-tweak-default-model-location.patch \
+    file://0016-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
+    file://0017-support-32-bit-x64-and-arm-for-yocto.patch \
+    file://0018-Revert-set-distinct_host_configuration-false-by-defa.patch \
+    file://0019-distutils-is-deprecated-in-Python-3.10-51776.patch \
     file://BUILD.in \
     file://BUILD.yocto_compiler \
     file://cc_config.bzl.tpl \
     file://yocto_compiler_configure.bzl \
 "
 SRC_URI:append:arm = " \
-    file://0019-fix-XNNPACK-build-failure-for-qemuarm.patch \
+    file://0020-fix-XNNPACK-build-failure-for-qemuarm.patch \
 "
 
 SRC_URI += "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz;name=model-inv3"
recipes-framework/tensorflow/tensorflow-native_2.12.0.bb +0 -4
index 7cf24ce..a3a9515 100644
@@ -1,9 +1,5 @@
 include tensorflow.inc
 
-SRC_URI += " \
-    file://0001-fix-python3-include-directory-not-found.patch \
-"
-
 inherit native
 
 export PYTHON_BIN_PATH="${PYTHON}"
recipes-framework/tensorflow/tensorflow.inc +1 -0
index c32b902..54ab3db 100644
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r2.12;protocol=http
     file://0008-Fix-failure-while-gcc-7.5.0.patch \
     file://0009-fix-compile-error-for-gcc-13.1.patch \
     file://0010-fix-compile-failure.patch \
+    file://0011-fix-python3-include-directory-not-found.patch \
 "
 S = "${WORKDIR}/git"
 
recipes-framework/tensorflow/tensorflow_2.12.0.bb +9 -8
index e045a7d..f613164 100644
@@ -1,14 +1,15 @@
 include tensorflow.inc
 
 SRC_URI += " \
-    file://0011-add-yocto-toolchain-to-support-cross-compiling.patch \
-    file://0012-fix-build-tensorflow-lite-examples-label_image-label.patch \
-    file://0013-label_image-tweak-default-model-location.patch \
-    file://0014-label_image.lite-tweak-default-model-location.patch \
-    file://0015-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
-    file://0016-support-32-bit-x64-and-arm-for-yocto.patch \
-    file://0017-Revert-set-distinct_host_configuration-false-by-defa.patch \
-    file://0018-distutils-is-deprecated-in-Python-3.10-51776.patch \
+    file://0011-fix-python3-include-directory-not-found.patch \
+    file://0012-add-yocto-toolchain-to-support-cross-compiling.patch \
+    file://0013-fix-build-tensorflow-lite-examples-label_image-label.patch \
+    file://0014-label_image-tweak-default-model-location.patch \
+    file://0015-label_image.lite-tweak-default-model-location.patch \
+    file://0016-CheckFeatureOrDie-use-warning-to-avoid-die.patch \
+    file://0017-support-32-bit-x64-and-arm-for-yocto.patch \
+    file://0018-Revert-set-distinct_host_configuration-false-by-defa.patch \
+    file://0019-distutils-is-deprecated-in-Python-3.10-51776.patch \
     file://BUILD.in \
     file://BUILD.yocto_compiler \
     file://cc_config.bzl.tpl \
Signature · 1 line
2.48.1
#3 lore raw
In reply to Martin Jansa

Hi Martin,

Apply the patch on mickledore failed

$ git branch
  hardknott
  kirkstone
  master
* mickledore
  thud
$ git log
commit 3d7625d7ab0b98859519f9b0ba056b989b7e2a48 (HEAD -> mickledore, origin/mickledore)
Author: Martin Jansa via lists.yoctoproject.org <[email protected]>
Date:   Thu Feb 6 15:29:20 2025 +0100

    MAINTAINERS.md: fix e-mail address

    CAUTION: This email comes from a non Wind River email account!
    Do not click links or open attachments unless you recognize the sender and know the content is safe.

    [email protected] doesn't exist and yocto-patches is probably better than [email protected]

$ git am '[yocto-patches] [meta-tensorflow][mickledore][PATCH 1_3] tensorflow: drop Upstream-Status inside third_party .patch f... - "Martin Jansa via lists.yoctoproj
ect.org" <[email protected]> - 2025-02-12 0014.eml'
Applying: tensorflow: drop Upstream-Status inside third_party .patch files
error: patch failed: recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch:28
error: recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch: patch does not apply
Patch failed at 0001 tensorflow: drop Upstream-Status inside third_party .patch files
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

//Hongxu

Quoted 213 lines · Martin Jansa via lists.yoctoproject.org

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

* these patches create:
third_party/0001-XNNPACK-support-32-bit-x86.patch third_party/0001-cpuinfo-support-32-bit-x86.patch third_party/0001-hardcode-go-SDKS.patch third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch

which aren't applied by do_patch bitbake task but by bazel:

tensorflow $ grep patch_file tensorflow/workspace2.bzl | head -n 2
tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-XNNPACK-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-cpuinfo-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-hardcode-go-SDKS.patch"], third_party/eigen3/workspace.bzl: patch_file = ["//third_party/eigen3:0001-workaround-ice-failure-while-building-from-source-wi.patch"],

so they don't really need Upstream-Status and including it there might cause false possitive e.g. in 0001-fix-XNNPACK-build-failure-for-qemuarm.patch

ERROR: tensorflow-lite-2.10.0-r0 do_patch: QA Issue: Malformed Upstream-Status in patch recipes-framework/tensorflow/tensorflow-lite/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
Please correct according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status :
Upstream-Status: Inappropriate [oe specific] [patch-status]
ERROR: tensorflow-lite-2.10.0-r0 do_patch: Fatal QA errors were found, failing task.

caused by extra space before Upstream-Status

Maybe we should drop 0001-fix-XNNPACK-build-failure-for-qemuarm.patch completely as it was already dropped from tensorflow in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=baae9cd6d92f69aa16b874958a332e1d3a362fea
and from tensorflow-lite in scarthgap branch:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=scarthgap&id=29509c97e9009ed0ae99ce6c2554e463575dc10c

and is now used only for tensorflow-lite, refresh it to apply

It was originally introduced for both in:

   https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=e0efac349f2aac3d65ccbeee20475dbb1ea3dd19
   and refreshed in:
   https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=30fbec74ea37b646473b08d0ee8d3992ccd56245
---
  .../tensorflow/files/0001-hardcode-go-SDKS.patch    |  4 +---
  .../0001-support-32-bit-x64-and-arm-for-yocto.patch |  7 ++-----
  ...y-eigen_archive-workaround-ice-failure-whi.patch |  4 +---
  ...019-fix-XNNPACK-build-failure-for-qemuarm.patch} | 13 ++++---------
  .../tensorflow/tensorflow-lite_2.12.0.bb            |  2 +-
  5 files changed, 9 insertions(+), 21 deletions(-)

rename recipes-framework/tensorflow/files/{0001-fix-XNNPACK-build-failure-for-qemuarm.patch => 0019-fix-XNNPACK-build-failure-for-qemuarm.patch} (97%)

recipes-framework/tensorflow/files/0001-hardcode-go-SDKS.patch +1 -3
index b705ec7..e365c27 100644
@@ -38,7 +38,7 @@ new file mode 100644
  index 00000000000..b51d7262f4c
  --- /dev/null
  +++ b/third_party/0001-hardcode-go-SDKS.patch
-@@ -0,0 +1,49 @@
+@@ -0,0 +1,47 @@
  +From 34242e73f76eff09ee33152c58c3be650331b7ff Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Thu, 1 Dec 2022 15:07:10 +0000
@@ -53,8 +53,6 @@ index 00000000000..b51d7262f4c
  +downloaded archive, so hardcode go SDKS list files rather than
  +fetch from internet
  +
-+Upstream-Status: Inappropriate [Yocto specific]
-+
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + go/private/sdk.bzl | 7 +++++++
recipes-framework/tensorflow/files/0001-support-32-bit-x64-and-arm-for-yocto.patch +2 -5
index a855b30..22bd6c1 100644
@@ -56,7 +56,7 @@ new file mode 100644
  index 00000000000..2141c37236b
  --- /dev/null
  +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -0,0 +1,29 @@
+@@ -0,0 +1,27 @@
  +From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Tue, 17 Aug 2021 01:09:53 -0700
@@ -64,8 +64,6 @@ index 00000000000..2141c37236b
  +
  +Use android_x86 as a workaround to support 32 bit x86
  +
-+Upstream-Status: Inappropriate [oe specific]
-+
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + BUILD.bazel | 1 -
@@ -91,7 +89,7 @@ new file mode 100644
  index 00000000000..0c83cf01675
  --- /dev/null
  +++ b/third_party/0001-cpuinfo-support-32-bit-x86.patch
-@@ -0,0 +1,28 @@
+@@ -0,0 +1,27 @@
  +From f5e52b2db5516954dab9026e4f386982c4c3c3a4 Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Mon, 19 Sep 2022 00:10:18 -0700
@@ -99,7 +97,6 @@ index 00000000000..0c83cf01675
  +
  +Use android_x86 as a workaround to support 32 bit x86
  +
-+Upstream-Status: Inappropriate [oe specific]
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + BUILD.bazel | 1 -
recipes-framework/tensorflow/files/0001-third_party-eigen_archive-workaround-ice-failure-whi.patch +1 -3
index b1571ab..2056c20 100644
@@ -24,7 +24,7 @@ new file mode 100644
  index 00000000000..436f35fca13
  --- /dev/null
  +++ b/third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch
-@@ -0,0 +1,69 @@
+@@ -0,0 +1,67 @@
  +From 035fd96026e18d61c19da038ab2b0f7a61e97799 Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Mon, 19 Sep 2022 01:08:18 -0700
@@ -37,8 +37,6 @@ index 00000000000..436f35fca13
  +But we could not patch on native gcc,so try to workaround,
  +Refer: https://github.com/tensorflow/tensorflow/issues/25323
  +
-+Upstream-Status: Inappropriate [wr-installer specific]
-+
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h | 3 ++-
recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch renamed from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch +4 -9
similarity index 97%
rename from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
rename to recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch
index dea74d9..1a792ee 100644
@@ -1,4 +1,4 @@
-From c15caa4d5f133307a23114c41a9c497e5ec9da2c Mon Sep 17 00:00:00 2001
+From 2ace7a16a8033169b7ddb71a79956416644ffa3e Mon Sep 17 00:00:00 2001
  From: Hongxu Jia <[email protected]>
  Date: Thu, 23 Mar 2023 10:28:04 +0800
  Subject: [PATCH] fix XNNPACK build failure for qemuarm
@@ -13,10 +13,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
   1 file changed, 209 insertions(+), 7 deletions(-)
 
  diff --git a/third_party/0001-XNNPACK-support-32-bit-x86.patch b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-index 2141c37236b..ca6a38545b1 100644
+index e2c053e6f8c..89ba615a9fe 100644
  --- a/third_party/0001-XNNPACK-support-32-bit-x86.patch
  +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -1,22 +1,36 @@
+@@ -1,20 +1,34 @@
  -From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
  +From 5ba6883121e91a334cc97ee98eea6ef0afb7a314 Mon Sep 17 00:00:00 2001
   From: Hongxu Jia <[email protected]>
@@ -28,8 +28,6 @@ index 2141c37236b..ca6a38545b1 100644
 
  +Does not support 32 bit ARM with Neon DotProduct
  +
- Upstream-Status: Inappropriate [oe specific]
-
   Signed-off-by: Hongxu Jia <[email protected]>
   ---
  - BUILD.bazel | 1 -
@@ -59,7 +57,7 @@ index 2141c37236b..ca6a38545b1 100644
    config_setting(
        name = "android_x86",
        values = {
-@@ -24,6 +38,194 @@ index 27ab07c9..f223d2ab 100644
+@@ -22,6 +36,194 @@ index 27ab07c9..f223d2ab 100644
            "cpu": "x86",
        },
    )
@@ -255,6 +253,3 @@ index 2141c37236b..ca6a38545b1 100644
  -2.30.2
  +2.27.0
 
---
-2.27.0
-
recipes-framework/tensorflow/tensorflow-lite_2.12.0.bb +1 -2
index 83fd12d..e76a09b 100644
@@ -15,7 +15,7 @@ SRC_URI += " \
             file://yocto_compiler_configure.bzl \
            "
  SRC_URI:append:arm = " \
-           file://0001-fix-XNNPACK-build-failure-for-qemuarm.patch \
+    file://0019-fix-XNNPACK-build-failure-for-qemuarm.patch \
  "
 
  SRC_URI += "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz;name=model-inv3"
--

2.48.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1061): https://lists.yoctoproject.org/g/yocto-patches/message/1061
Mute This Topic: https://lists.yoctoproject.org/mt/111125079/3617049
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13176071/3617049/43253763/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Not sure what happened, but it does apply fine from patchwork (and doesn't even mangle my e-mail address with Martin Jansa via lists.yoctoproject.org <[email protected]>), see:

HEAD is now at 3d7625d MAINTAINERS.md: fix e-mail address martin@jama /OE/layers/meta-tensorflow $ wget
https://patchwork.yoctoproject.org/project/yocto/patch/[email protected]/mbox/
-O - | git am
--2025-02-14 08:20:15--
https://patchwork.yoctoproject.org/project/yocto/patch/[email protected]/mbox/
Resolving patchwork.yoctoproject.org... 34.211.161.74, 54.71.59.185, 54.191.94.169
Connecting to patchwork.yoctoproject.org|34.211.161.74|:443... connected. HTTP request sent, awaiting response... 200 OK
Length: 13812 (13K) [text/plain]
Saving to: ‘STDOUT’

- 100%[=========================================================================================================================================>]
13.49K --.-KB/s in 0s

2025-02-14 08:20:16 (1.94 GB/s) - written to stdout [13812/13812]

Applying: tensorflow: drop Upstream-Status inside third_party .patch files martin@jama /OE/layers/meta-tensorflow $ git show -1 --pretty=fuller | head commit f26bbd26fc161ebd5a8028348dc612cdd8b0d528

Author:     Martin Jansa <[email protected]>
AuthorDate: Tue Feb 11 17:14:57 2025 +0100
Commit:     Martin Jansa <[email protected]>
CommitDate: Fri Feb 14 08:20:16 2025 +0100

tensorflow: drop Upstream-Status inside third_party .patch files

* these patches create:
third_party/0001-XNNPACK-support-32-bit-x86.patch

meta-tensorflow $ git show -1 --pretty=fuller g/mickledore | head commit 3d7625d7ab0b98859519f9b0ba056b989b7e2a48
Author: Martin Jansa via lists.yoctoproject.org
<[email protected]>

AuthorDate: Thu Feb 6 15:29:20 2025 +0100
Commit:     Hongxu Jia <[email protected]>
CommitDate: Fri Feb 7 10:57:19 2025 +0800

MAINTAINERS.md: fix e-mail address

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the
sender and know the content is safe.

Maybe you were fetching/creating "'[yocto-patches] [meta-tensorflow][mickledore][PATCH 1_3]tensorflow: drop Upstream-Status inside third_party .patch f... -" somewhere else than patchwork?

The same changes are also applied in:
https://github.com/shr-project/meta-tensorflow
if cherry-picking from there is easier for you.

Regards,

Quoted 265 lines · Hongxu Jia

Hi Martin,

Apply the patch on mickledore failed

$ git branch
   hardknott
   kirkstone
   master
* mickledore
   thud
$ git log
commit 3d7625d7ab0b98859519f9b0ba056b989b7e2a48 (HEAD -> mickledore,
origin/mickledore)
Author: Martin Jansa via lists.yoctoproject.org
<[email protected]>
Date:   Thu Feb 6 15:29:20 2025 +0100

MAINTAINERS.md: fix e-mail address

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the
sender and know the content is safe.

[email protected] doesn't exist and yocto-patches is probably
better than
[email protected]

$ git am '[yocto-patches] [meta-tensorflow][mickledore][PATCH 1_3]
tensorflow: drop Upstream-Status inside third_party .patch f... -
"Martin Jansa via lists.yoctoproj
ect.org" <[email protected]> - 2025-02-12
0014.eml'
Applying: tensorflow: drop Upstream-Status inside third_party .patch files
error: patch failed:
recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch:28
error:
recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch:
patch does not apply
Patch failed at 0001 tensorflow: drop Upstream-Status inside third_party
.patch files
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

//Hongxu

Quoted 213 lines · Martin Jansa via lists.yoctoproject.org

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

* these patches create:
third_party/0001-XNNPACK-support-32-bit-x86.patch third_party/0001-cpuinfo-support-32-bit-x86.patch third_party/0001-hardcode-go-SDKS.patch third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch

which aren't applied by do_patch bitbake task but by bazel:

tensorflow $ grep patch_file tensorflow/workspace2.bzl | head -n 2
tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-XNNPACK-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-cpuinfo-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-hardcode-go-SDKS.patch"], third_party/eigen3/workspace.bzl: patch_file = ["//third_party/eigen3:0001-workaround-ice-failure-while-building-from-source-wi.patch"],

so they don't really need Upstream-Status and including it there might cause false possitive e.g. in 0001-fix-XNNPACK-build-failure-for-qemuarm.patch

ERROR: tensorflow-lite-2.10.0-r0 do_patch: QA Issue: Malformed Upstream-Status in patch recipes-framework/tensorflow/tensorflow-lite/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
Please correct according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status :
Upstream-Status: Inappropriate [oe specific] [patch-status]
ERROR: tensorflow-lite-2.10.0-r0 do_patch: Fatal QA errors were found, failing task.

caused by extra space before Upstream-Status

Maybe we should drop 0001-fix-XNNPACK-build-failure-for-qemuarm.patch completely as it was already dropped from tensorflow in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=baae9cd6d92f69aa16b874958a332e1d3a362fea
and from tensorflow-lite in scarthgap branch:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=scarthgap&id=29509c97e9009ed0ae99ce6c2554e463575dc10c

and is now used only for tensorflow-lite, refresh it to apply

It was originally introduced for both in:

   https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=e0efac349f2aac3d65ccbeee20475dbb1ea3dd19
   and refreshed in:
   https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=30fbec74ea37b646473b08d0ee8d3992ccd56245
---
  .../tensorflow/files/0001-hardcode-go-SDKS.patch    |  4 +---
  .../0001-support-32-bit-x64-and-arm-for-yocto.patch |  7 ++-----
  ...y-eigen_archive-workaround-ice-failure-whi.patch |  4 +---
  ...019-fix-XNNPACK-build-failure-for-qemuarm.patch} | 13 ++++---------
  .../tensorflow/tensorflow-lite_2.12.0.bb            |  2 +-
  5 files changed, 9 insertions(+), 21 deletions(-)

rename recipes-framework/tensorflow/files/{0001-fix-XNNPACK-build-failure-for-qemuarm.patch => 0019-fix-XNNPACK-build-failure-for-qemuarm.patch} (97%)

recipes-framework/tensorflow/files/0001-hardcode-go-SDKS.patch +1 -3
index b705ec7..e365c27 100644
@@ -38,7 +38,7 @@ new file mode 100644
  index 00000000000..b51d7262f4c
  --- /dev/null
  +++ b/third_party/0001-hardcode-go-SDKS.patch
-@@ -0,0 +1,49 @@
+@@ -0,0 +1,47 @@
  +From 34242e73f76eff09ee33152c58c3be650331b7ff Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Thu, 1 Dec 2022 15:07:10 +0000
@@ -53,8 +53,6 @@ index 00000000000..b51d7262f4c
  +downloaded archive, so hardcode go SDKS list files rather than
  +fetch from internet
  +
-+Upstream-Status: Inappropriate [Yocto specific]
-+
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + go/private/sdk.bzl | 7 +++++++
recipes-framework/tensorflow/files/0001-support-32-bit-x64-and-arm-for-yocto.patch +2 -5
index a855b30..22bd6c1 100644
@@ -56,7 +56,7 @@ new file mode 100644
  index 00000000000..2141c37236b
  --- /dev/null
  +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -0,0 +1,29 @@
+@@ -0,0 +1,27 @@
  +From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Tue, 17 Aug 2021 01:09:53 -0700
@@ -64,8 +64,6 @@ index 00000000000..2141c37236b
  +
  +Use android_x86 as a workaround to support 32 bit x86
  +
-+Upstream-Status: Inappropriate [oe specific]
-+
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + BUILD.bazel | 1 -
@@ -91,7 +89,7 @@ new file mode 100644
  index 00000000000..0c83cf01675
  --- /dev/null
  +++ b/third_party/0001-cpuinfo-support-32-bit-x86.patch
-@@ -0,0 +1,28 @@
+@@ -0,0 +1,27 @@
  +From f5e52b2db5516954dab9026e4f386982c4c3c3a4 Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Mon, 19 Sep 2022 00:10:18 -0700
@@ -99,7 +97,6 @@ index 00000000000..0c83cf01675
  +
  +Use android_x86 as a workaround to support 32 bit x86
  +
-+Upstream-Status: Inappropriate [oe specific]
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + BUILD.bazel | 1 -
recipes-framework/tensorflow/files/0001-third_party-eigen_archive-workaround-ice-failure-whi.patch +1 -3
index b1571ab..2056c20 100644
@@ -24,7 +24,7 @@ new file mode 100644
  index 00000000000..436f35fca13
  --- /dev/null
  +++ b/third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch
-@@ -0,0 +1,69 @@
+@@ -0,0 +1,67 @@
  +From 035fd96026e18d61c19da038ab2b0f7a61e97799 Mon Sep 17 00:00:00 2001
  +From: Hongxu Jia <[email protected]>
  +Date: Mon, 19 Sep 2022 01:08:18 -0700
@@ -37,8 +37,6 @@ index 00000000000..436f35fca13
  +But we could not patch on native gcc,so try to workaround,
  +Refer: https://github.com/tensorflow/tensorflow/issues/25323
  +
-+Upstream-Status: Inappropriate [wr-installer specific]
-+
  +Signed-off-by: Hongxu Jia <[email protected]>
  +---
  + unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h | 3 ++-
recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch renamed from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch +4 -9
similarity index 97%
rename from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
rename to recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch
index dea74d9..1a792ee 100644
@@ -1,4 +1,4 @@
-From c15caa4d5f133307a23114c41a9c497e5ec9da2c Mon Sep 17 00:00:00 2001
+From 2ace7a16a8033169b7ddb71a79956416644ffa3e Mon Sep 17 00:00:00 2001
  From: Hongxu Jia <[email protected]>
  Date: Thu, 23 Mar 2023 10:28:04 +0800
  Subject: [PATCH] fix XNNPACK build failure for qemuarm
@@ -13,10 +13,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
   1 file changed, 209 insertions(+), 7 deletions(-)
 
  diff --git a/third_party/0001-XNNPACK-support-32-bit-x86.patch b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-index 2141c37236b..ca6a38545b1 100644
+index e2c053e6f8c..89ba615a9fe 100644
  --- a/third_party/0001-XNNPACK-support-32-bit-x86.patch
  +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -1,22 +1,36 @@
+@@ -1,20 +1,34 @@
  -From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
  +From 5ba6883121e91a334cc97ee98eea6ef0afb7a314 Mon Sep 17 00:00:00 2001
   From: Hongxu Jia <[email protected]>
@@ -28,8 +28,6 @@ index 2141c37236b..ca6a38545b1 100644
 
  +Does not support 32 bit ARM with Neon DotProduct
  +
- Upstream-Status: Inappropriate [oe specific]
-
   Signed-off-by: Hongxu Jia <[email protected]>
   ---
  - BUILD.bazel | 1 -
@@ -59,7 +57,7 @@ index 2141c37236b..ca6a38545b1 100644
    config_setting(
        name = "android_x86",
        values = {
-@@ -24,6 +38,194 @@ index 27ab07c9..f223d2ab 100644
+@@ -22,6 +36,194 @@ index 27ab07c9..f223d2ab 100644
            "cpu": "x86",
        },
    )
@@ -255,6 +253,3 @@ index 2141c37236b..ca6a38545b1 100644
  -2.30.2
  +2.27.0
 
---
-2.27.0
-
recipes-framework/tensorflow/tensorflow-lite_2.12.0.bb +1 -2
index 83fd12d..e76a09b 100644
@@ -15,7 +15,7 @@ SRC_URI += " \
             file://yocto_compiler_configure.bzl \
            "
  SRC_URI:append:arm = " \
-           file://0001-fix-XNNPACK-build-failure-for-qemuarm.patch \
+    file://0019-fix-XNNPACK-build-failure-for-qemuarm.patch \
  "
 
  SRC_URI += "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz;name=model-inv3"
--

2.48.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1061): https://lists.yoctoproject.org/g/yocto-patches/message/1061
Mute This Topic: https://lists.yoctoproject.org/mt/111125079/3617049
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13176071/3617049/43253763/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
Quoted 54 lines · Martin Jansa via lists.yoctoproject.org

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Not sure what happened, but it does apply fine from patchwork (and doesn't even mangle my e-mail address with Martin Jansa via lists.yoctoproject.org <[email protected]>), see:

HEAD is now at 3d7625d MAINTAINERS.md: fix e-mail address martin@jama /OE/layers/meta-tensorflow $ wget
https://patchwork.yoctoproject.org/project/yocto/patch/[email protected]/mbox/
-O - | git am
--2025-02-14 08:20:15--
https://patchwork.yoctoproject.org/project/yocto/patch/[email protected]/mbox/
Resolving patchwork.yoctoproject.org... 34.211.161.74, 54.71.59.185, 54.191.94.169
Connecting to patchwork.yoctoproject.org|34.211.161.74|:443... connected. HTTP request sent, awaiting response... 200 OK
Length: 13812 (13K) [text/plain]
Saving to: ‘STDOUT’

- 100%[=========================================================================================================================================>]
13.49K --.-KB/s in 0s

2025-02-14 08:20:16 (1.94 GB/s) - written to stdout [13812/13812]

Applying: tensorflow: drop Upstream-Status inside third_party .patch files martin@jama /OE/layers/meta-tensorflow $ git show -1 --pretty=fuller | head commit f26bbd26fc161ebd5a8028348dc612cdd8b0d528

Author:     Martin Jansa <[email protected]>
AuthorDate: Tue Feb 11 17:14:57 2025 +0100
Commit:     Martin Jansa <[email protected]>
CommitDate: Fri Feb 14 08:20:16 2025 +0100

tensorflow: drop Upstream-Status inside third_party .patch files

* these patches create:
third_party/0001-XNNPACK-support-32-bit-x86.patch

meta-tensorflow $ git show -1 --pretty=fuller g/mickledore | head commit 3d7625d7ab0b98859519f9b0ba056b989b7e2a48
Author: Martin Jansa via lists.yoctoproject.org
<[email protected]>

AuthorDate: Thu Feb 6 15:29:20 2025 +0100
Commit:     Hongxu Jia <[email protected]>
CommitDate: Fri Feb 7 10:57:19 2025 +0800

MAINTAINERS.md: fix e-mail address

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the
sender and know the content is safe.

Quoted 8 lines

Maybe you were fetching/creating "'[yocto-patches] [meta-tensorflow][mickledore][PATCH 1_3]tensorflow: drop Upstream-Status inside third_party .patch f... -" somewhere else than patchwork?

The same changes are also applied in:
https://github.com/shr-project/meta-tensorflow
if cherry-picking from there is easier for you.

Done, cherry pick and apply them on master,mickledore,kirkstone and scarthgap branch respectively

//Hongxu

Quoted 270 lines

Regards,

Quoted 248 lines · Hongxu Jia

Hi Martin,

Apply the patch on mickledore failed

$ git branch
    hardknott
    kirkstone
    master
* mickledore
    thud
$ git log
commit 3d7625d7ab0b98859519f9b0ba056b989b7e2a48 (HEAD -> mickledore,
origin/mickledore)
Author: Martin Jansa via lists.yoctoproject.org
<[email protected]>
Date:   Thu Feb 6 15:29:20 2025 +0100

MAINTAINERS.md: fix e-mail address

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the
sender and know the content is safe.

[email protected] doesn't exist and yocto-patches is probably
better than
[email protected]

$ git am '[yocto-patches] [meta-tensorflow][mickledore][PATCH 1_3]
tensorflow: drop Upstream-Status inside third_party .patch f... -
"Martin Jansa via lists.yoctoproj
ect.org" <[email protected]> - 2025-02-12
0014.eml'
Applying: tensorflow: drop Upstream-Status inside third_party .patch files
error: patch failed:
recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch:28
error:
recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch:
patch does not apply
Patch failed at 0001 tensorflow: drop Upstream-Status inside third_party
.patch files
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

//Hongxu

Quoted 198 lines · Martin Jansa via lists.yoctoproject.org

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

* these patches create:
third_party/0001-XNNPACK-support-32-bit-x86.patch third_party/0001-cpuinfo-support-32-bit-x86.patch third_party/0001-hardcode-go-SDKS.patch third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch

which aren't applied by do_patch bitbake task but by bazel:

tensorflow $ grep patch_file tensorflow/workspace2.bzl | head -n 2
tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-XNNPACK-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-cpuinfo-support-32-bit-x86.patch"], tensorflow/workspace2.bzl: patch_file = ["//third_party:0001-hardcode-go-SDKS.patch"], third_party/eigen3/workspace.bzl: patch_file = ["//third_party/eigen3:0001-workaround-ice-failure-while-building-from-source-wi.patch"],

so they don't really need Upstream-Status and including it there might cause false possitive e.g. in 0001-fix-XNNPACK-build-failure-for-qemuarm.patch

ERROR: tensorflow-lite-2.10.0-r0 do_patch: QA Issue: Malformed Upstream-Status in patch recipes-framework/tensorflow/tensorflow-lite/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
Please correct according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status :
Upstream-Status: Inappropriate [oe specific] [patch-status]
ERROR: tensorflow-lite-2.10.0-r0 do_patch: Fatal QA errors were found, failing task.

caused by extra space before Upstream-Status

Maybe we should drop 0001-fix-XNNPACK-build-failure-for-qemuarm.patch completely as it was already dropped from tensorflow in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=baae9cd6d92f69aa16b874958a332e1d3a362fea
and from tensorflow-lite in scarthgap branch:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=scarthgap&id=29509c97e9009ed0ae99ce6c2554e463575dc10c

and is now used only for tensorflow-lite, refresh it to apply

It was originally introduced for both in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=e0efac349f2aac3d65ccbeee20475dbb1ea3dd19
and refreshed in:
https://git.yoctoproject.org/meta-tensorflow/commit/?h=mickledore&id=30fbec74ea37b646473b08d0ee8d3992ccd56245

---
   .../tensorflow/files/0001-hardcode-go-SDKS.patch    |  4 +---
   .../0001-support-32-bit-x64-and-arm-for-yocto.patch |  7 ++-----
   ...y-eigen_archive-workaround-ice-failure-whi.patch |  4 +---
   ...019-fix-XNNPACK-build-failure-for-qemuarm.patch} | 13 ++++---------
   .../tensorflow/tensorflow-lite_2.12.0.bb            |  2 +-
   5 files changed, 9 insertions(+), 21 deletions(-)

rename recipes-framework/tensorflow/files/{0001-fix-XNNPACK-build-failure-for-qemuarm.patch => 0019-fix-XNNPACK-build-failure-for-qemuarm.patch} (97%)

recipes-framework/tensorflow/files/0001-hardcode-go-SDKS.patch +1 -3
index b705ec7..e365c27 100644
@@ -38,7 +38,7 @@ new file mode 100644
   index 00000000000..b51d7262f4c
   --- /dev/null
   +++ b/third_party/0001-hardcode-go-SDKS.patch
-@@ -0,0 +1,49 @@
+@@ -0,0 +1,47 @@
   +From 34242e73f76eff09ee33152c58c3be650331b7ff Mon Sep 17 00:00:00 2001
   +From: Hongxu Jia <[email protected]>
   +Date: Thu, 1 Dec 2022 15:07:10 +0000
@@ -53,8 +53,6 @@ index 00000000000..b51d7262f4c
   +downloaded archive, so hardcode go SDKS list files rather than
   +fetch from internet
   +
-+Upstream-Status: Inappropriate [Yocto specific]
-+
   +Signed-off-by: Hongxu Jia <[email protected]>
   +---
   + go/private/sdk.bzl | 7 +++++++
recipes-framework/tensorflow/files/0001-support-32-bit-x64-and-arm-for-yocto.patch +2 -5
index a855b30..22bd6c1 100644
@@ -56,7 +56,7 @@ new file mode 100644
   index 00000000000..2141c37236b
   --- /dev/null
   +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -0,0 +1,29 @@
+@@ -0,0 +1,27 @@
   +From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
   +From: Hongxu Jia <[email protected]>
   +Date: Tue, 17 Aug 2021 01:09:53 -0700
@@ -64,8 +64,6 @@ index 00000000000..2141c37236b
   +
   +Use android_x86 as a workaround to support 32 bit x86
   +
-+Upstream-Status: Inappropriate [oe specific]
-+
   +Signed-off-by: Hongxu Jia <[email protected]>
   +---
   + BUILD.bazel | 1 -
@@ -91,7 +89,7 @@ new file mode 100644
   index 00000000000..0c83cf01675
   --- /dev/null
   +++ b/third_party/0001-cpuinfo-support-32-bit-x86.patch
-@@ -0,0 +1,28 @@
+@@ -0,0 +1,27 @@
   +From f5e52b2db5516954dab9026e4f386982c4c3c3a4 Mon Sep 17 00:00:00 2001
   +From: Hongxu Jia <[email protected]>
   +Date: Mon, 19 Sep 2022 00:10:18 -0700
@@ -99,7 +97,6 @@ index 00000000000..0c83cf01675
   +
   +Use android_x86 as a workaround to support 32 bit x86
   +
-+Upstream-Status: Inappropriate [oe specific]
   +Signed-off-by: Hongxu Jia <[email protected]>
   +---
   + BUILD.bazel | 1 -
recipes-framework/tensorflow/files/0001-third_party-eigen_archive-workaround-ice-failure-whi.patch +1 -3
index b1571ab..2056c20 100644
@@ -24,7 +24,7 @@ new file mode 100644
   index 00000000000..436f35fca13
   --- /dev/null
   +++ b/third_party/eigen3/0001-workaround-ice-failure-while-building-from-source-wi.patch
-@@ -0,0 +1,69 @@
+@@ -0,0 +1,67 @@
   +From 035fd96026e18d61c19da038ab2b0f7a61e97799 Mon Sep 17 00:00:00 2001
   +From: Hongxu Jia <[email protected]>
   +Date: Mon, 19 Sep 2022 01:08:18 -0700
@@ -37,8 +37,6 @@ index 00000000000..436f35fca13
   +But we could not patch on native gcc,so try to workaround,
   +Refer: https://github.com/tensorflow/tensorflow/issues/25323
   +
-+Upstream-Status: Inappropriate [wr-installer specific]
-+
   +Signed-off-by: Hongxu Jia <[email protected]>
   +---
   + unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h | 3 ++-
recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch renamed from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch +4 -9
similarity index 97%
rename from recipes-framework/tensorflow/files/0001-fix-XNNPACK-build-failure-for-qemuarm.patch
rename to recipes-framework/tensorflow/files/0019-fix-XNNPACK-build-failure-for-qemuarm.patch
index dea74d9..1a792ee 100644
@@ -1,4 +1,4 @@
-From c15caa4d5f133307a23114c41a9c497e5ec9da2c Mon Sep 17 00:00:00 2001
+From 2ace7a16a8033169b7ddb71a79956416644ffa3e Mon Sep 17 00:00:00 2001
   From: Hongxu Jia <[email protected]>
   Date: Thu, 23 Mar 2023 10:28:04 +0800
   Subject: [PATCH] fix XNNPACK build failure for qemuarm
@@ -13,10 +13,10 @@ Signed-off-by: Hongxu Jia <[email protected]>
    1 file changed, 209 insertions(+), 7 deletions(-)
 
   diff --git a/third_party/0001-XNNPACK-support-32-bit-x86.patch b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-index 2141c37236b..ca6a38545b1 100644
+index e2c053e6f8c..89ba615a9fe 100644
   --- a/third_party/0001-XNNPACK-support-32-bit-x86.patch
   +++ b/third_party/0001-XNNPACK-support-32-bit-x86.patch
-@@ -1,22 +1,36 @@
+@@ -1,20 +1,34 @@
   -From 2345756776fa09fd95e29f96f781e15e3b18a61b Mon Sep 17 00:00:00 2001
   +From 5ba6883121e91a334cc97ee98eea6ef0afb7a314 Mon Sep 17 00:00:00 2001
    From: Hongxu Jia <[email protected]>
@@ -28,8 +28,6 @@ index 2141c37236b..ca6a38545b1 100644
 
   +Does not support 32 bit ARM with Neon DotProduct
   +
- Upstream-Status: Inappropriate [oe specific]
-
    Signed-off-by: Hongxu Jia <[email protected]>
    ---
   - BUILD.bazel | 1 -
@@ -59,7 +57,7 @@ index 2141c37236b..ca6a38545b1 100644
     config_setting(
         name = "android_x86",
         values = {
-@@ -24,6 +38,194 @@ index 27ab07c9..f223d2ab 100644
+@@ -22,6 +36,194 @@ index 27ab07c9..f223d2ab 100644
             "cpu": "x86",
         },
     )
@@ -255,6 +253,3 @@ index 2141c37236b..ca6a38545b1 100644
   -2.30.2
   +2.27.0
 
---
-2.27.0
-
recipes-framework/tensorflow/tensorflow-lite_2.12.0.bb +1 -1
index 83fd12d..e76a09b 100644
@@ -15,7 +15,7 @@ SRC_URI += " \
              file://yocto_compiler_configure.bzl \
             "
   SRC_URI:append:arm = " \
-           file://0001-fix-XNNPACK-build-failure-for-qemuarm.patch \
+    file://0019-fix-XNNPACK-build-failure-for-qemuarm.patch \
   "
 
Quoted 9 lines
Quoted 9 lines
recipes-framework/tensorflow/tensorflow-lite_2.12.0.bb +0 -1
   SRC_URI += "https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz;name=model-inv3"
--

2.48.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1084): https://lists.yoctoproject.org/g/yocto-patches/message/1084
Mute This Topic: https://lists.yoctoproject.org/mt/111125079/3617049
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13176071/3617049/43253763/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-