[OE-core] [PATCH] cml1.bbclass: explicitly set workdir
André Draszik
git at andred.net
Fri Aug 5 09:34:52 UTC 2016
bitbake rev 67a7b8b02 "build: don't use $B as the default cwd for
functions" (included in current bitbake master) breaks the assumption
that do_menuconfig / do_diffconfig run inside the build directory.
This causes these tasks to fail as they're being executed in the
wrong directory.
Set workdir explicitly.
Signed-off-by: André Draszik <git at andred.net>
---
meta/classes/cml1.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass
index 5834806..4b3b916 100644
--- a/meta/classes/cml1.bbclass
+++ b/meta/classes/cml1.bbclass
@@ -41,6 +41,7 @@ python do_menuconfig() {
bb.build.write_taint('do_compile', d)
}
do_menuconfig[depends] += "ncurses-native:do_populate_sysroot"
+do_menuconfig[dirs] = "${B}"
do_menuconfig[nostamp] = "1"
do_menuconfig[dirs] = "${B}"
addtask menuconfig after do_configure
@@ -72,7 +73,7 @@ python do_diffconfig() {
if os.path.exists(fragment):
os.unlink(fragment)
}
-
+do_diffconfig[dirs] = "${B}"
do_diffconfig[nostamp] = "1"
do_diffconfig[dirs] = "${B}"
addtask diffconfig
--
2.8.1
More information about the Openembedded-core
mailing list