switch-coreboot/util
Mart Raudsepp 705439d7aa Fix a build error when using bison-2.4
This fixes one of the errors from using bison-2.4, but there are more.

This one in details is the following error:

  BISON   build/util/dtc/dtc-parser.tab.c
  HOSTCC  build/util/dtc/dtc-parser.tab.o
/home/leio/dev/coreboot-v3/util/dtc/dtc-parser.y: In function ‘yyuserAction’:
/home/leio/dev/coreboot-v3/util/dtc/dtc-parser.y:154: error: expected ‘;’ before ‘}’ token
make: *** [/home/leio/dev/coreboot-v3/build/util/dtc/dtc-parser.tab.o] Error 1

Note that 2.4.1 might be made to still work without the semi-colon for some languages, but I
understand 2.5 then still won't work without one. As it builds fine with this change with
bison-2.3, it should be safe to just add the semicolon.

The remaining error is the following:

/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l: In function ‘yylex’:
/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l:73: error: ‘yylval’ undeclared (first use in this function)
/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l:73: error: (Each undeclared identifier is reported only once
/home/leio/dev/coreboot-v3/util/dtc/dtc-lexer.l:73: error: for each function it appears in.)

dtc-parser.tab.h doesn't seem to get an "extern YYSTYPE yylval" declaration, which per documentation should
only happen for pure parser cases ("%define api.pure"), but I can't find any such declaration in dtc to cause
the problem.

Note that upstream dtc builds fine with bison-2.4

Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>

git-svn-id: svn://coreboot.org/repository/coreboot-v3@1004 f3766cd6-281f-0410-b1cd-43a5c92072e9
2008-11-12 17:04:15 +00:00
..
doxygen doxy: Fix doxygen build by renaming Doxyfile file from .LinuxBIOS to .coreboot, as the reference in build system was already changed to Doxyfile.coreboot back in January 27th 2008-05-22 15:52:33 +00:00
dtc Fix a build error when using bison-2.4 2008-11-12 17:04:15 +00:00
kconfig small dependency fix, plus make oldconfig & co need libintl, too :) 2008-08-28 22:44:49 +00:00
lar Every time we run make in a v3 tree, lar, lzma, nrv2b and the option 2008-11-06 13:59:14 +00:00
lxregs The Geode has MSRs. LOTS of MSR. I get confused trying to find them. 2008-05-09 16:12:41 +00:00
lzma Every time we run make in a v3 tree, lar, lzma, nrv2b and the option 2008-11-06 13:59:14 +00:00
nrv2b Every time we run make in a v3 tree, lar, lzma, nrv2b and the option 2008-11-06 13:59:14 +00:00
options Every time we run make in a v3 tree, lar, lzma, nrv2b and the option 2008-11-06 13:59:14 +00:00
picwrapper Fix typo in comment: 2008-08-16 13:27:05 +00:00
sectionchecker Make the section checker executable. 2008-08-21 19:38:32 +00:00
x86emu r965 broke x86emu compilation on all v3 targets. 2008-11-09 01:03:57 +00:00
xcompile Add objdump and readelf to xcompile and use the results. This kills a 2008-08-22 01:22:21 +00:00
Makefile Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
mkdep I need this to get my work done and there were no better proposals. 2008-10-13 18:38:50 +00:00