mirror of https://github.com/OpenIPC/firmware.git
Cleanup yyloc patches (#336)
* Fix CV300 build for both older and new Buildroots * Use same yyloc patch standard everywhere * GM8136: Not needed * Remove XM510/XM530 yylloc patches because everything works without it * Remove XM510 test patch * Remove yylloc for CV100 * Revert building.sh * Make yylloc patch for EV300/GK * Fix hi3536cv100 build * Fix hi3536dv100 build * Untestet t31, Amba, Anyka, FH, Gk and all 4.19 HiSilicon * Tested msc316dc build * Tested ssc335 build * Use 4.19.x will links * Undo buildingpull/338/head
parent
cc2c9f4983
commit
65ddd4b032
|
@ -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() */
|
|
|
@ -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 \
|
|
|
@ -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 \
|
|
|
@ -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 \
|
|
|
@ -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 \
|
|
|
@ -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 \
|
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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 \
|
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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 \
|
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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 \
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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, ...);
|
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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 \
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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 \
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.19.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.19.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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 \
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/3.18.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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() */
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../../patches/linux/4.9.x/fix_yylloc_for_modern_host_compilers.patch
|
|
@ -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 \
|
|
|
@ -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 <linux/compiler-gcc7.h> directly, include <linux/compiler.h> 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 */
|
|
|
@ -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 \
|
|
|
@ -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, ...);
|
|
@ -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 */
|
Loading…
Reference in New Issue