From 49566d48bdcb91f3005c501d2c00470ad1387ea4 Mon Sep 17 00:00:00 2001
From: Luca Weiss <luca@z3ntu.xyz>
Date: Tue, 27 Oct 2020 14:57:19 +0100
Subject: [PATCH] linux-huawei-y530: fix compile with gcc10 (MR 1606)

---
 device/testing/linux-huawei-y530/APKBUILD                     | 4 +++-
 .../gcc10-extern_YYLOC_global_declaration.patch               | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 120000 device/testing/linux-huawei-y530/gcc10-extern_YYLOC_global_declaration.patch

diff --git a/device/testing/linux-huawei-y530/APKBUILD b/device/testing/linux-huawei-y530/APKBUILD
index e1e45f72d0e..2bd094dcd1d 100644
--- a/device/testing/linux-huawei-y530/APKBUILD
+++ b/device/testing/linux-huawei-y530/APKBUILD
@@ -40,6 +40,7 @@ source="
 	08_fix_touchscreen.patch
 	09_fix_various_include_directives.patch
 	10_vfs-fix-proc-tid-fdinfo-fd-file-handling.patch
+	gcc10-extern_YYLOC_global_declaration.patch
 "
 builddir="$srcdir/$_repository-$_commit"
 
@@ -94,4 +95,5 @@ fbc61e379403990167853f4c4fbdfa22d7e9661a7eedecf2a75eec2a8008991a82d0a61be844ab4b
 1f743d3e7f4ac7401167ea35edc7d7e113bd80824c4d53631d7500f33557ff486163f8244786c16506b2e21db6ccbcd8a0f7b26fcf4937efee50b62c074f9a22  07_fix_mdss_fb_refresh_rate.patch
 f83e9b6549155a2f32c89dffbab3ad6fba7b8d93976dfccb1232833244ed6e064e28105a321eaa934c5bb326384730d03f3d3141227a7258a30045fa12573268  08_fix_touchscreen.patch
 c9831aa037d4cb26fa349c44a27111daf8f7a84a9527d0221ecc4f01839b195243c178838663ff7592bb1d5c3cdc9872b449254beb7b9dffa67c365c3d8e042c  09_fix_various_include_directives.patch
-b0b9bcea00ca4a79ea6d6a9e0b153559161a102b0856193c7d775318beeb1d4ffb194127bf8f94f006930dd7cd330c3185f9bd205fef39e9856ffe9019fc2a34  10_vfs-fix-proc-tid-fdinfo-fd-file-handling.patch"
+b0b9bcea00ca4a79ea6d6a9e0b153559161a102b0856193c7d775318beeb1d4ffb194127bf8f94f006930dd7cd330c3185f9bd205fef39e9856ffe9019fc2a34  10_vfs-fix-proc-tid-fdinfo-fd-file-handling.patch
+2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb  gcc10-extern_YYLOC_global_declaration.patch"
diff --git a/device/testing/linux-huawei-y530/gcc10-extern_YYLOC_global_declaration.patch b/device/testing/linux-huawei-y530/gcc10-extern_YYLOC_global_declaration.patch
new file mode 120000
index 00000000000..fe99abf4d25
--- /dev/null
+++ b/device/testing/linux-huawei-y530/gcc10-extern_YYLOC_global_declaration.patch
@@ -0,0 +1 @@
+../../.shared-patches/linux/gcc10-extern_YYLOC_global_declaration.patch
\ No newline at end of file
-- 
GitLab