[OE-core] [PATCH] kernel.bbclass: explicitly depend on bison-native for deterministic builds

Otavio Salvador otavio.salvador at ossystems.com.br
Tue Feb 20 00:36:22 UTC 2018


On Mon, Feb 19, 2018 at 8:54 PM, Denys Dmytriyenko <denis at denix.org> wrote:
> From: Denys Dmytriyenko <denys at ti.com>
>
> Explicitly depend on bison-native for deterministic builds, as it is required
> for the build:
>
> |   HOSTCC  scripts/basic/fixdep
> |   GEN     ./Makefile
> |   HOSTCC  scripts/kconfig/conf.o
> |   YACC    scripts/kconfig/zconf.tab.c
> | /bin/sh: bison: command not found
> | scripts/Makefile.lib:217: recipe for target 'scripts/kconfig/zconf.tab.c' failed
>
> In most cases, this dependency comes indirectly via toolchain dependencies,
> specifically binutils-cross, which pulls bison-native. Different setups,
> such as with external toolchain, would expose this problem, since correct
> dependency is not marked explicitly.
>
> Signed-off-by: Denys Dmytriyenko <denys at ti.com>
> ---
> I'm seeing this now on 4.16-rc2 with external toolchain.

I am not against the addition but in fact, it is because 4.16 stopped
of using pre-generated files and now requires bison to be available. I
am unsure it ought to be on kernel.bbclass at this moment.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list