mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-11 16:37:42 -04:00
support byacc in addition to bison
Use -b to explicitly set file prefix, so that byacc generates files with the same names as bison. Add %locations to dtc-parser.y to explicitly enable location tracking for byacc, and define YYERROR_CALL to prevent byacc from defining it to call yyerror with 2 parameters because of the locations directive, because dtc-parser.y defines yyerror to accept one parameter. Signed-off-by: Ethan Sommer <e5ten.arch@gmail.com> Message-Id: <20191029162619.32561-1-e5ten.arch@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
fdf3f6d897
commit
7150286225
2 changed files with 5 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -368,6 +368,6 @@ clean: libfdt_clean pylibfdt_clean tests_clean
|
|||
|
||||
%.tab.c %.tab.h %.output: %.y
|
||||
@$(VECHO) BISON $@
|
||||
$(BISON) -d $<
|
||||
$(BISON) -b $(basename $(basename $@)) -d $<
|
||||
|
||||
FORCE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue