]> code.ossystems Code Review - openembedded-core.git/commitdiff
cml1.bbclass: fix undefined behavior
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>
Mon, 6 May 2019 08:29:13 +0000 (10:29 +0200)
committerArmin Kuster <akuster808@gmail.com>
Thu, 9 May 2019 01:38:43 +0000 (18:38 -0700)
Whenever cml1 do_configure is used with a defconfig, oldconfig waits for
input. This silently fails on recent kconfig projects with:
"Error in reading or end of file."
We cannot use a more up to date kconfig target such as olddefconfig,
because busybox does not support it.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/cml1.bbclass

index 98d24cec746bf79239699c15d2c0734af3e8cdaf..c7f6723cb3de3e4f6ce7552a2ab45c079979a902 100644 (file)
@@ -1,7 +1,7 @@
 cml1_do_configure() {
        set -e
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
-       oe_runmake oldconfig
+       yes '' | oe_runmake oldconfig
 }
 
 EXPORT_FUNCTIONS do_configure