diff options
author | Ethan Sommer <e5ten.arch@gmail.com> | 2019-10-29 12:26:19 -0400 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-11-03 20:20:22 +0100 |
commit | 7150286225476345bd6e7312331e3baf4d621c32 (patch) | |
tree | 40481fad3b13198a8abc5ea068e4be3bfb61a6c4 /Makefile | |
parent | fdf3f6d897ab8759fb7d7277ba5224beb4727d1d (diff) | |
download | dtc-7150286225476345bd6e7312331e3baf4d621c32.zip dtc-7150286225476345bd6e7312331e3baf4d621c32.tar.gz dtc-7150286225476345bd6e7312331e3baf4d621c32.tar.bz2 |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |