Files
buildroot/package
Julien Olivain b062bb1619 package/linux-backports: use flex and bison to generate kconfig parser
Upstream backports package does not define the LEX/YACC Makefile
variables, contrary to the Kernel which is defining those in [1]. The
default "lex" and "yacc" are then used. On some systems, "yacc" is
Berkeley Yacc. Kconfig parser files are using non-Posix Bison
constructs.

Attempting to generate the parser with byacc fails with error:

    yacc: e - line 97 of "zconf.y", syntax error
    %destructor {
    ^

This patch defines the LEX and YACC Makefile variable to use flex and
bison, to fix this issue. The host-bison and host-flex dependencies are
added only if the host does not have them, following the same logic of
the Kernel.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=73a4f6dbe70a1b93c11e2d1d6ca68f3522daf434

Signed-off-by: Julien Olivain <ju.o@free.fr>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit ec493ea489)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2020-11-15 16:08:27 +01:00
..
2020-07-22 13:37:14 +02:00
2020-02-25 23:24:34 +01:00
2020-02-23 09:45:10 +01:00
2020-10-03 07:56:57 +02:00
2020-04-25 09:06:09 +02:00
2020-10-10 22:24:08 +02:00
2020-02-29 23:17:29 +01:00
2020-08-28 18:01:24 +02:00
2020-02-29 19:26:38 +01:00
2020-11-09 11:01:05 +01:00
2020-06-02 08:41:08 +02:00
2020-07-20 21:56:41 +02:00
2020-09-29 16:18:08 +02:00
2020-05-08 11:39:03 +02:00
2020-07-22 13:47:00 +02:00
2020-11-14 14:12:20 +01:00
2020-11-13 22:11:03 +01:00
2020-10-02 22:33:00 +02:00
2020-05-08 12:08:05 +02:00
2020-04-07 21:04:41 +02:00
2020-04-07 20:28:05 +02:00
2020-07-13 08:37:19 +02:00
2020-07-22 13:44:19 +02:00
2020-11-13 23:42:41 +01:00
2020-11-03 11:04:18 +01:00
2020-05-31 23:21:38 +02:00
2020-02-23 09:26:10 +01:00
2020-07-22 09:00:59 +02:00
2020-11-09 10:51:08 +01:00
2020-04-08 16:30:36 +02:00
2020-05-08 09:13:34 +02:00
2020-08-28 18:43:57 +02:00
2020-07-15 23:21:34 +02:00
2020-04-30 14:42:03 +02:00
2020-04-29 23:49:57 +02:00
2020-03-08 09:41:44 +01:00
2020-05-31 23:20:15 +02:00
2020-04-07 20:24:58 +02:00
2020-07-22 13:44:19 +02:00
2020-11-08 18:50:09 +01:00
2020-03-02 23:33:57 +01:00
2020-03-07 22:52:02 +01:00
2020-08-28 18:43:57 +02:00
2020-04-07 21:02:37 +02:00
2020-09-29 20:35:12 +02:00
2020-09-29 17:20:56 +02:00
2020-05-09 09:20:45 +02:00