Merge "Modify kelvin _start to ebreak on non-zero exit code"
diff --git a/build_tools/bazel/repos.bzl b/build_tools/bazel/repos.bzl
index 20ba4b8..416296e 100644
--- a/build_tools/bazel/repos.bzl
+++ b/build_tools/bazel/repos.bzl
@@ -42,41 +42,6 @@
 
     maybe(
         http_archive,
-        name = "gemmlowp",
-        sha256 = "43146e6f56cb5218a8caaab6b5d1601a083f1f31c06ff474a4378a7d35be9cfb",  # SHARED_GEMMLOWP_SHA
-        strip_prefix = "gemmlowp-fda83bdc38b118cc6b56753bd540caa49e570745",
-        urls = [
-            "https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/gemmlowp/archive/fda83bdc38b118cc6b56753bd540caa49e570745.zip",
-            "https://github.com/google/gemmlowp/archive/fda83bdc38b118cc6b56753bd540caa49e570745.zip",
-        ],
-        patches = [
-            "@kelvin_sw//third_party/gemmlowp:pthread.patch",
-        ],
-        patch_args = [
-            "-p1",
-        ],
-    )
-
-    maybe(
-        http_archive,
-        name = "ruy",
-        sha256 = "da5ec0cc07472bdb21589b0b51c8f3d7f75d2ed6230b794912adf213838d289a",
-        strip_prefix = "ruy-54774a7a2cf85963777289193629d4bd42de4a59",
-        urls = [
-            "https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/ruy/archive/54774a7a2cf85963777289193629d4bd42de4a59.zip",
-            "https://github.com/google/ruy/archive/54774a7a2cf85963777289193629d4bd42de4a59.zip",
-        ],
-        build_file = "@tflite-micro//third_party/ruy:BUILD",
-        patches = [
-            "@kelvin_sw//third_party/ruy:pthread.patch",
-        ],
-        patch_args = [
-            "-p1",
-        ],
-    )
-
-    maybe(
-        http_archive,
         name = "rules_python",
         sha256 = "497ca47374f48c8b067d786b512ac10a276211810f4a580178ee9b9ad139323a",
         strip_prefix = "rules_python-0.16.1",
diff --git a/third_party/gemmlowp/BUILD b/third_party/gemmlowp/BUILD
deleted file mode 100644
index 584f7e9..0000000
--- a/third_party/gemmlowp/BUILD
+++ /dev/null
@@ -1,4 +0,0 @@
-# Copyright 2023 Google LLC
-package(default_visibility = ["//visibility:public"])
-
-exports_files(glob(["*.patch"]))
diff --git a/third_party/gemmlowp/pthread.patch b/third_party/gemmlowp/pthread.patch
deleted file mode 100644
index 547dd52..0000000
--- a/third_party/gemmlowp/pthread.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/flags.bzl b/flags.bzl
-index e35fe9e..e26a448 100644
---- a/flags.bzl
-+++ b/flags.bzl
-@@ -4,7 +4,7 @@ LIB_COPTS = []
- LIB_LINKOPTS = select({
-     ":android": [],
-     ":windows": [],
--    "//conditions:default": ["-lpthread"],
-+    "//conditions:default": [],
- })
- 
- BIN_LINKOPTS = LIB_LINKOPTS
\ No newline at end of file
diff --git a/third_party/ruy/BUILD b/third_party/ruy/BUILD
deleted file mode 100644
index 584f7e9..0000000
--- a/third_party/ruy/BUILD
+++ /dev/null
@@ -1,4 +0,0 @@
-# Copyright 2023 Google LLC
-package(default_visibility = ["//visibility:public"])
-
-exports_files(glob(["*.patch"]))
diff --git a/third_party/ruy/pthread.patch b/third_party/ruy/pthread.patch
deleted file mode 100644
index c8ddf4d..0000000
--- a/third_party/ruy/pthread.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff --git a/ruy/build_defs.oss.bzl b/ruy/build_defs.oss.bzl
-index e405b41..1d7612b 100644
---- a/ruy/build_defs.oss.bzl
-+++ b/ruy/build_defs.oss.bzl
-@@ -11,5 +11,5 @@ def ruy_linkopts_thread_standard_library():
-     # https://github.com/abseil/abseil-cpp/blob/1112609635037a32435de7aa70a9188dcb591458/absl/base/BUILD.bazel#L155
-     return select({
-         "@bazel_tools//src/conditions:windows": [],
--        "//conditions:default": ["-pthread"],
-+        "//conditions:default": [],
-     })
\ No newline at end of file