]> code.ossystems Code Review - openembedded-core.git/commit
devtool/standard.py: Allow recipe to disable menuconfig logic
authorTom Hochstein <tom.hochstein@nxp.com>
Wed, 5 Feb 2020 19:15:40 +0000 (20:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2020 23:04:29 +0000 (23:04 +0000)
commit803391ef7ba662a5ee58609d9c81aeffa494287c
treed74e24c3b08ef2c3a988b159e0ef2600bbba579e
parentc06d69e6dccb849e60847a33593fa20e192feea2
devtool/standard.py: Allow recipe to disable menuconfig logic

u-boot.inc supports u-boot recipes with or without menuconfig [1].
However, running devtool on a u-boot recipe that does not support menuconfig
results in an error:

cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-2018.03//.config': No such file or directory

The problem is the devtool logic assumes that any recipe with a do_menuconfig task
will generate a .config in do_configure().

Fix the problem by removing the assumption with a flag that the recipe can control,
like this:

do_configure() {
    if [ menuconfig-supported ]; then
        ...
    else
        DEVTOOL_DISABLE_MENUCONFIG=true
    fi
}

[1] https://github.com/openembedded/openembedded-core/commit/11278e3b2c75be80645b9841763a97dbb35daadc

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
scripts/lib/devtool/standard.py