From 9e610558dcb8fd47de0bd4e6a26576f09a4e636d Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 10 Aug 2021 13:51:58 +0100
Subject: [PATCH] linux-yocto: Fix patch format to be 'git am' compatible

Split the reuse header in its own file to avoid confusing git am and
forcing the build system to other means of applying the patch.

Fixes: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/99

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../linux/linux/fix-gcc-plugins-with-gcc-11.patch              | 3 ---
 .../linux/linux/fix-gcc-plugins-with-gcc-11.patch.license      | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
 create mode 100644 meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch.license

diff --git a/meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch b/meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch
index 0b00ad00..a5584624 100644
--- a/meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch
+++ b/meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch
@@ -1,6 +1,3 @@
-SPDX-FileCopyrightText: Huawei Inc.
-SPDX-License-Identifier: Apache-2.0
-
 From bernhard.rosenkraenzer.ext@huawei.com Tue Jul 13 21:23:14 2021
 From: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com>
 Date: Tue, 13 Jul 2021 21:23:14 +0100
diff --git a/meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch.license b/meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch.license
new file mode 100644
index 00000000..98a0b3f4
--- /dev/null
+++ b/meta-ohos-core/recipes-kernel/linux/linux/fix-gcc-plugins-with-gcc-11.patch.license
@@ -0,0 +1,3 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
-- 
GitLab