]> code.ossystems Code Review - openembedded-core.git/commitdiff
u-boot.inc: Fix devtool build u-boot for u-boot without menuconfig
authorTom Hochstein <tom.hochstein@nxp.com>
Wed, 20 Nov 2019 19:25:51 +0000 (19:25 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2020 16:54:33 +0000 (16:54 +0000)
For u-boot recipes without menuconfig support, running devtool results
in a do_configure 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 arises because u-boot.inc supports recipes with and without
menuconfig.

Fix the problem by properly setting DEVTOOL_DISABLE_MENUCONFIG so that devtool
can control logic that applies only for menuconfig support.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/u-boot/u-boot.inc

index ec777628c58bfe88c153c902aab4fd1a6e908738..648298da0bfd2e4509fab4d10d6a23095d2b4ac7 100644 (file)
@@ -85,6 +85,8 @@ do_configure () {
         fi
         merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
         cml1_do_configure
+    else
+        DEVTOOL_DISABLE_MENUCONFIG=true
     fi
 }