diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
index 563af7dd0ae57d1e3bc79b0398352dec80c9daa6..f0ad1e3ae9e8c154eb597b95e8452798e2f17f3a 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
@@ -1,4 +1,4 @@
-From bfab268c870548e3e7a24ea67ebed2a0513b2307 Mon Sep 17 00:00:00 2001
+From 69ecc7edc83a2c6576005db7075a71ef0cf26943 Mon Sep 17 00:00:00 2001
 From: Naveen Saini <naveen.kumar.saini@intel.com>
 Date: Wed, 7 Jul 2021 13:53:05 +0800
 Subject: [PATCH] cmake: add yocto toolchain
@@ -6,6 +6,7 @@ Subject: [PATCH] cmake: add yocto toolchain
 Upstream status: inappropriate [OE specific]
 
 Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
+
 ---
  cmake/compiler/gcc/target.cmake     |  7 -------
  cmake/toolchain/yocto/generic.cmake | 13 +++++++++++++
@@ -15,10 +16,10 @@ Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
  create mode 100644 cmake/toolchain/yocto/target.cmake
 
 diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake
-index 2b90c5d2ef..b6f28b2f87 100644
+index 014447e67e..b510f47d59 100644
 --- a/cmake/compiler/gcc/target.cmake
 +++ b/cmake/compiler/gcc/target.cmake
-@@ -68,13 +68,6 @@ execute_process(
+@@ -94,13 +94,6 @@ execute_process(
    OUTPUT_STRIP_TRAILING_WHITESPACE
    )
  
@@ -31,7 +32,7 @@ index 2b90c5d2ef..b6f28b2f87 100644
 -LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"")
  LIST(APPEND TOOLCHAIN_LIBS gcc)
  
- if(SYSROOT_DIR)
+ # For CMake to be able to test if a compiler flag is supported by the
 diff --git a/cmake/toolchain/yocto/generic.cmake b/cmake/toolchain/yocto/generic.cmake
 new file mode 100644
 index 0000000000..45e5777e2a
@@ -58,6 +59,3 @@ index 0000000000..9881313609
 +++ b/cmake/toolchain/yocto/target.cmake
 @@ -0,0 +1 @@
 +# SPDX-License-Identifier: Apache-2.0
--- 
-2.17.1
-