]> asedeno.scripts.mit.edu Git - linux.git/commit
genksyms: generate lexer and parser during build instead of shipping
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 23 Mar 2018 13:04:32 +0000 (22:04 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 7 Apr 2018 10:04:02 +0000 (19:04 +0900)
commit833e622459432ed5bc7cc58ffadb91b59c863a3a
tree75de2796fa5650bde6c3ec22b380ae955a927ee2
parent9a8dfb394c046742b2ac7444ba42272e11e9989d
genksyms: generate lexer and parser during build instead of shipping

Now that the kernel build supports flex and bison, remove the _shipped
files and generate them during the build instead.

There are no more shipped lexer and parser, so I ripped off the rules
in scripts/Malefile.lib that were used for REGENERATE_PARSERS.

The genksyms parser has ambiguous grammar, which would emit warnings:

 scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
 scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]

They are normally suppressed, but displayed when W=1 is given.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.lib
scripts/genksyms/Makefile
scripts/genksyms/lex.lex.c_shipped [deleted file]
scripts/genksyms/parse.tab.c_shipped [deleted file]
scripts/genksyms/parse.tab.h_shipped [deleted file]