From dc2552ba1c3eb71ce54d88e4860ad43d869fa09d Mon Sep 17 00:00:00 2001
From: Francesco Pham <francesco.pham@huawei.com>
Date: Thu, 31 Mar 2022 10:26:55 +0200
Subject: [PATCH] mbedtls: Drop mbedtls patch

drop mbedtls patch because mbedtls has been updated to v2.28.0 in oe-core

-Wformat-truncation level has been reduces upstream so this patch is not necessary anymore:
https://github.com/Mbed-TLS/mbedtls/commit/2065a8d8af27c6cb1e40c9462b5933336dca7434

Signed-off-by: Francesco Pham <francesco.pham@huawei.com>
---
 ...9-Wformat-truncation-false-positives.patch | 31 -------------------
 .../mbedtls/mbedtls_2.28.0.bbappend           |  6 ----
 2 files changed, 37 deletions(-)
 delete mode 100644 meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls/0002-workaround-gcc9-Wformat-truncation-false-positives.patch
 delete mode 100644 meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.0.bbappend

diff --git a/meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls/0002-workaround-gcc9-Wformat-truncation-false-positives.patch b/meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls/0002-workaround-gcc9-Wformat-truncation-false-positives.patch
deleted file mode 100644
index 69fdd2d4..00000000
--- a/meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls/0002-workaround-gcc9-Wformat-truncation-false-positives.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From c3d7321d59e959b357a7d3d69782d9105f3d04aa Mon Sep 17 00:00:00 2001
-From: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com>
-Date: Mon, 17 May 2021 18:19:20 +0100
-Subject: [PATCH] ssl_tls: Increase size of padbuf to 64
-
-This fixes a warning (turned to an error with -Werror)
-with gcc 9 (dunfell's default).
-
-Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com>
-Upstream-Status: Pending
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff -up git/CMakeLists.txt.gcc9~ git/CMakeLists.txt
---- git/CMakeLists.txt.gcc9~	2021-05-05 23:14:42.309742058 +0200
-+++ git/CMakeLists.txt	2021-05-05 23:16:00.015038640 +0200
-@@ -197,9 +197,12 @@ if(CMAKE_COMPILER_IS_GNU)
-             set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-signedness")
-         endif()
-     endif()
--    if (GCC_VERSION VERSION_GREATER 7.0 OR GCC_VERSION VERSION_EQUAL 7.0)
-+    if (GCC_VERSION VERSION_GREATER 7.0 OR GCC_VERSION VERSION_EQUAL 7.0 AND GCC_VERSION VERSION_LESS 9.0)
-       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
-     endif()
-+    if (GCC_VERSION VERSION_GREATER 9.0 OR GCC_VERSION VERSION_EQUAL 9.0)
-+      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation=1")
-+    endif()
-     set(CMAKE_C_FLAGS_RELEASE     "-O2")
-     set(CMAKE_C_FLAGS_DEBUG       "-O0 -g3")
-     set(CMAKE_C_FLAGS_COVERAGE    "-O0 -g3 --coverage")
diff --git a/meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.0.bbappend b/meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.0.bbappend
deleted file mode 100644
index 4cdf01b3..00000000
--- a/meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.0.bbappend
+++ /dev/null
@@ -1,6 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-SRC_URI += "file://0002-workaround-gcc9-Wformat-truncation-false-positives.patch"
-- 
GitLab