diff --git a/br-ext-chip-ambarella/board/s3l/kernel/patches/0011-fix-yylloc-for-modern-computers.patch b/br-ext-chip-ambarella/board/s3l/kernel/patches/0011-fix-yylloc-for-modern-computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-ambarella/board/s3l/kernel/patches/0011-fix-yylloc-for-modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-anyka/board/ak3918ev200/kernel/patches/002-fix-yylloc-for-modern-computers.patch b/br-ext-chip-anyka/board/ak3918ev200/kernel/patches/002-fix-yylloc-for-modern-computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-anyka/board/ak3918ev200/kernel/patches/002-fix-yylloc-for-modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-anyka/board/ak3918ev300/kernel/patches/002-fix-yylloc-for-modern-computers.patch b/br-ext-chip-anyka/board/ak3918ev300/kernel/patches/002-fix-yylloc-for-modern-computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-anyka/board/ak3918ev300/kernel/patches/002-fix-yylloc-for-modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-fullhan/board/fh8833v100/kernel/patches/0011-fix-yylloc-for-modern-computers.patch b/br-ext-chip-fullhan/board/fh8833v100/kernel/patches/0011-fix-yylloc-for-modern-computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-fullhan/board/fh8833v100/kernel/patches/0011-fix-yylloc-for-modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-fullhan/board/fh8852v100/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-fullhan/board/fh8852v100/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-fullhan/board/fh8852v100/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-goke/board/gk710x/kernel/patches/0011-fix-yylloc-for-modern-computers.patch b/br-ext-chip-goke/board/gk710x/kernel/patches/0011-fix-yylloc-for-modern-computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-goke/board/gk710x/kernel/patches/0011-fix-yylloc-for-modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-goke/board/gk7205v200/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-goke/board/gk7205v200/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-goke/board/gk7205v200/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-goke/board/gk7205v200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-goke/board/gk7205v200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..49771006 --- /dev/null +++ b/br-ext-chip-goke/board/gk7205v200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-grainmedia/board/gm8136/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-grainmedia/board/gm8136/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-grainmedia/board/gm8136/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-hisilicon/board/hi3516av100/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3516av100/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-hisilicon/board/hi3516av100/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-hisilicon/board/hi3516av100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3516av100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..49771006 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3516av100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-hisilicon/board/hi3516cv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3516cv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-hisilicon/board/hi3516cv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-hisilicon/board/hi3516cv200/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3516cv200/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-hisilicon/board/hi3516cv200/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-hisilicon/board/hi3516cv200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3516cv200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..49771006 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3516cv200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..a36a16d9 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches_unused/12_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches_unused/12_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 512a63fc..00000000 --- a/br-ext-chip-hisilicon/board/hi3516cv300/kernel/patches_unused/12_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-parser.tab.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-parser.tab.c_shipped 2021-11-01 22:11:46.572137821 +0300 -@@ -70,7 +70,7 @@ - #include "dtc.h" - #include "srcpos.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - extern int yylex(void); - extern void print_error(char const *fmt, ...); diff --git a/br-ext-chip-hisilicon/board/hi3516cv500/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3516cv500/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-hisilicon/board/hi3516cv500/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-hisilicon/board/hi3516cv500/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3516cv500/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..49771006 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3516cv500/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-hisilicon/board/hi3516ev200/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3516ev200/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-hisilicon/board/hi3516ev200/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-hisilicon/board/hi3516ev200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3516ev200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..49771006 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3516ev200/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-hisilicon/board/hi3519v101/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3519v101/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-hisilicon/board/hi3519v101/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-hisilicon/board/hi3519v101/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3519v101/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..a36a16d9 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3519v101/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-hisilicon/board/hi3536cv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3536cv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-hisilicon/board/hi3536cv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-hisilicon/board/hi3536cv100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3536cv100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..a36a16d9 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3536cv100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-hisilicon/board/hi3536dv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-hisilicon/board/hi3536dv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-hisilicon/board/hi3536dv100/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-hisilicon/board/hi3536dv100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-hisilicon/board/hi3536dv100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..49771006 --- /dev/null +++ b/br-ext-chip-hisilicon/board/hi3536dv100/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-ingenic/board/t31/kernel/patches/0011-fix-yylloc-for-modern-computers.patch b/br-ext-chip-ingenic/board/t31/kernel/patches/0011-fix-yylloc-for-modern-computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-ingenic/board/t31/kernel/patches/0011-fix-yylloc-for-modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-novatek/board/nt9856x/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-novatek/board/nt9856x/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..35d39b0e --- /dev/null +++ b/br-ext-chip-novatek/board/nt9856x/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.19.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-rockchip/board/rv11xx/kernel/patches/0011-fix-yylloc-for-modern-computers.patch b/br-ext-chip-rockchip/board/rv11xx/kernel/patches/0011-fix-yylloc-for-modern-computers.patch deleted file mode 100644 index bbb38d7f..00000000 --- a/br-ext-chip-rockchip/board/rv11xx/kernel/patches/0011-fix-yylloc-for-modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.l 2019-12-21 12:57:45.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.l 2021-10-24 16:01:38.478555927 +0300 -@@ -38,7 +38,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-rockchip/board/rv11xx/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-rockchip/board/rv11xx/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..35d39b0e --- /dev/null +++ b/br-ext-chip-rockchip/board/rv11xx/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.19.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-sigmastar/board/infinity3/kernel/patches/0011-fix-yylloc-for_modern-computers.patch b/br-ext-chip-sigmastar/board/infinity3/kernel/patches/0011-fix-yylloc-for_modern-computers.patch deleted file mode 100644 index d7088f90..00000000 --- a/br-ext-chip-sigmastar/board/infinity3/kernel/patches/0011-fix-yylloc-for_modern-computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2015-08-07 22:08:04.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-11-01 22:15:12.347053553 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-sigmastar/board/infinity3/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-sigmastar/board/infinity3/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..a36a16d9 --- /dev/null +++ b/br-ext-chip-sigmastar/board/infinity3/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-sigmastar/board/infinity6b0/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/br-ext-chip-sigmastar/board/infinity6b0/kernel/patches/11_fix_yylloc_for_modern_computers.patch deleted file mode 100644 index 2a670230..00000000 --- a/br-ext-chip-sigmastar/board/infinity6b0/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - extern bool treesource_error; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/br-ext-chip-sigmastar/board/infinity6b0/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch b/br-ext-chip-sigmastar/board/infinity6b0/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch new file mode 120000 index 00000000..49771006 --- /dev/null +++ b/br-ext-chip-sigmastar/board/infinity6b0/kernel/patches/11_fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1 @@ +../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch \ No newline at end of file diff --git a/br-ext-chip-xiongmai/board/xm510/kernel/patches/xm510_kernel_3.0.101_sdk-2.0_fix_yylloc.patch b/br-ext-chip-xiongmai/board/xm510/kernel/patches/xm510_kernel_3.0.101_sdk-2.0_fix_yylloc.patch deleted file mode 100644 index 7cd9f2e9..00000000 --- a/br-ext-chip-xiongmai/board/xm510/kernel/patches/xm510_kernel_3.0.101_sdk-2.0_fix_yylloc.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/br-ext-chip-xiongmai/board/xm510/kernel/patches_unused/test-1.patch b/br-ext-chip-xiongmai/board/xm510/kernel/patches_unused/test-1.patch deleted file mode 100644 index 957a1c23..00000000 --- a/br-ext-chip-xiongmai/board/xm510/kernel/patches_unused/test-1.patch +++ /dev/null @@ -1,69 +0,0 @@ -diff -urN a/compiler-gcc7.h linux/compiler-gcc7.h ---- a/include/linux/compiler-gcc7.h 1970-01-01 03:00:00.000000000 +0300 -+++ b/include/linux/compiler-gcc7.h 2021-05-26 14:55:50.000000000 +0300 -@@ -0,0 +1,65 @@ -+#ifndef __LINUX_COMPILER_H -+#error "Please don't include directly, include instead." -+#endif -+ -+#define __used __attribute__((__used__)) -+#define __must_check __attribute__((warn_unused_result)) -+#define __compiler_offsetof(a, b) __builtin_offsetof(a, b) -+ -+/* Mark functions as cold. gcc will assume any path leading to a call -+ to them will be unlikely. This means a lot of manual unlikely()s -+ are unnecessary now for any paths leading to the usual suspects -+ like BUG(), printk(), panic() etc. [but let's keep them for now for -+ older compilers] -+ -+ Early snapshots of gcc 4.3 don't support this and we can't detect this -+ in the preprocessor, but we can live with this because they're unreleased. -+ Maketime probing would be overkill here. -+ -+ gcc also has a __attribute__((__hot__)) to move hot functions into -+ a special section, but I don't see any sense in this right now in -+ the kernel context */ -+#define __cold __attribute__((__cold__)) -+ -+#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) -+ -+#ifndef __CHECKER__ -+# define __compiletime_warning(message) __attribute__((warning(message))) -+# define __compiletime_error(message) __attribute__((error(message))) -+#endif /* __CHECKER__ */ -+ -+/* -+ * Mark a position in code as unreachable. This can be used to -+ * suppress control flow warnings after asm blocks that transfer -+ * control elsewhere. -+ * -+ * Early snapshots of gcc 4.5 don't support this and we can't detect -+ * this in the preprocessor, but we can live with this because they're -+ * unreleased. Really, we need to have autoconf for the kernel. -+ */ -+#define unreachable() __builtin_unreachable() -+ -+/* Mark a function definition as prohibited from being cloned. */ -+#define __noclone __attribute__((__noclone__)) -+ -+/* -+ * Tell the optimizer that something else uses this function or variable. -+ */ -+#define __visible __attribute__((externally_visible)) -+ -+/* -+ * GCC 'asm goto' miscompiles certain code sequences: -+ * -+ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 -+ * -+ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. -+ * -+ * (asm goto is automatically volatile - the naming reflects this.) -+ */ -+#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) -+ -+#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP -+#define __HAVE_BUILTIN_BSWAP32__ -+#define __HAVE_BUILTIN_BSWAP64__ -+#define __HAVE_BUILTIN_BSWAP16__ -+#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ diff --git a/br-ext-chip-xiongmai/board/xm530/kernel/patches/11_xm530_kernel_3.10.103_sdk-1.4.0_fix_yylloc.patch b/br-ext-chip-xiongmai/board/xm530/kernel/patches/11_xm530_kernel_3.10.103_sdk-1.4.0_fix_yylloc.patch deleted file mode 100644 index 7cd9f2e9..00000000 --- a/br-ext-chip-xiongmai/board/xm530/kernel/patches/11_xm530_kernel_3.10.103_sdk-1.4.0_fix_yylloc.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/scripts/dtc/dtc-lexer.lex.c_shipped 2016-08-28 13:19:20.000000000 +0300 -+++ b/scripts/dtc/dtc-lexer.lex.c_shipped 2021-04-02 00:06:02.972781070 +0300 -@@ -637,7 +637,7 @@ - #include "srcpos.h" - #include "dtc-parser.tab.h" - --YYLTYPE yylloc; -+extern YYLTYPE yylloc; - - /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ - #define YY_USER_ACTION \ diff --git a/patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch b/patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch new file mode 100644 index 00000000..0e1e8760 --- /dev/null +++ b/patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1,54 @@ +diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l +index 3b41bfc..5e62bc0 100644 +--- a/scripts/dtc/dtc-lexer.l ++++ b/scripts/dtc/dtc-lexer.l +@@ -39,7 +39,7 @@ LINECOMMENT "//".*\n + #include "srcpos.h" + #include "dtc-parser.tab.h" + +-YYLTYPE yylloc; ++YYLTYPE yylloc ; + + /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ + #define YY_USER_ACTION \ +diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped +index 2d30f41..e073c9b 100644 +--- a/scripts/dtc/dtc-lexer.lex.c_shipped ++++ b/scripts/dtc/dtc-lexer.lex.c_shipped +@@ -637,7 +637,9 @@ char *yytext; + #include "srcpos.h" + #include "dtc-parser.tab.h" + +-YYLTYPE yylloc; ++#if (__GNUC__ << 16) + __GNUC_MINOR__ < 0x1000000 ++extern YYLTYPE yylloc ; ++#endif + + /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ + #define YY_USER_ACTION \ +diff --git a/scripts/dtc/dtc-parser.tab.c_shipped b/scripts/dtc/dtc-parser.tab.c_shipped +index c8769d5..f7fbb2e 100644 +--- a/scripts/dtc/dtc-parser.tab.c_shipped ++++ b/scripts/dtc/dtc-parser.tab.c_shipped +@@ -70,7 +70,7 @@ + #include "dtc.h" + #include "srcpos.h" + +-YYLTYPE yylloc; ++YYLTYPE yylloc ; + + extern int yylex(void); + extern void print_error(char const *fmt, ...); +diff --git a/scripts/dtc/dtc-parser.y b/scripts/dtc/dtc-parser.y +index f412460..e00a3c4 100644 +--- a/scripts/dtc/dtc-parser.y ++++ b/scripts/dtc/dtc-parser.y +@@ -24,7 +24,7 @@ + #include "dtc.h" + #include "srcpos.h" + +-YYLTYPE yylloc; ++YYLTYPE yylloc ; + + extern int yylex(void); + extern void print_error(char const *fmt, ...); diff --git a/br-ext-chip-novatek/board/nt9856x/kernel/patches/11_fix_yylloc_for_modern_computers.patch b/patches/linux/4.19.x/fix_yylloc_for_modern_host_compilers.patch similarity index 92% rename from br-ext-chip-novatek/board/nt9856x/kernel/patches/11_fix_yylloc_for_modern_computers.patch rename to patches/linux/4.19.x/fix_yylloc_for_modern_host_compilers.patch index bbb38d7f..9b5c57cf 100644 --- a/br-ext-chip-novatek/board/nt9856x/kernel/patches/11_fix_yylloc_for_modern_computers.patch +++ b/patches/linux/4.19.x/fix_yylloc_for_modern_host_compilers.patch @@ -5,7 +5,7 @@ #include "dtc-parser.tab.h" -YYLTYPE yylloc; -+extern YYLTYPE yylloc; ++extern YYLTYPE yylloc ; extern bool treesource_error; /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch b/patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch new file mode 100644 index 00000000..0853867a --- /dev/null +++ b/patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch @@ -0,0 +1,41 @@ +diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l +index 790fbf6..f1f1631 100644 +--- a/scripts/dtc/dtc-lexer.l ++++ b/scripts/dtc/dtc-lexer.l +@@ -38,7 +38,7 @@ LINECOMMENT "//".*\n + #include "srcpos.h" + #include "dtc-parser.tab.h" + +-YYLTYPE yylloc; ++YYLTYPE yylloc ; + extern bool treesource_error; + + /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ +diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped +index ba525c2..766127c 100644 +--- a/scripts/dtc/dtc-lexer.lex.c_shipped ++++ b/scripts/dtc/dtc-lexer.lex.c_shipped +@@ -637,7 +637,9 @@ char *yytext; + #include "srcpos.h" + #include "dtc-parser.tab.h" + +-YYLTYPE yylloc; ++#if (__GNUC__ << 16) + __GNUC_MINOR__ < 0x1000000 ++extern YYLTYPE yylloc ; ++#endif + extern bool treesource_error; + + /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ +diff --git a/scripts/dtc/dtc-parser.tab.c_shipped b/scripts/dtc/dtc-parser.tab.c_shipped +index 31cec50..430f5e1 100644 +--- a/scripts/dtc/dtc-parser.tab.c_shipped ++++ b/scripts/dtc/dtc-parser.tab.c_shipped +@@ -185,7 +185,7 @@ struct YYLTYPE + + + extern YYSTYPE yylval; +-extern YYLTYPE yylloc; ++extern YYLTYPE yylloc ; + int yyparse (void); + + #endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED */