Ablert 发表于 2025-8-13 23:34
使用Docker的方法如下:
首先的host主机是ubuntu22.04;
- $ git diff --staged scripts/dtc/dtc-lexer.l
- diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
- index fd825ebba69c..d3873d007e5a 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;
复制代码
- $ git diff --staged scripts/dtc/dtc-parser.tab.c_shipped
- diff --git a/scripts/dtc/dtc-parser.tab.c_shipped b/scripts/dtc/dtc-parser.tab.c_shipped
- index aea514fa6928..a20372919fc2 100644
- --- a/scripts/dtc/dtc-parser.tab.c_shipped
- +++ b/scripts/dtc/dtc-parser.tab.c_shipped
- @@ -1202,7 +1202,7 @@ int yychar;
- /* The semantic value of the lookahead symbol. */
- YYSTYPE yylval;
- /* Location data for the lookahead symbol. */
- -YYLTYPE yylloc
- +//YYLTYPE yylloc
- # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
- = { 1, 1, 1, 1 }
- # endif
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |