Skip to contentSkip to conversation

cml1.bbclass: explicitly set workdir

PATCH In review André Draszik 2 participants 4 messages Aug 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cml1.bbclass: explicitly set workdir

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.

---
 meta/classes/cml1.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/cml1.bbclass +2 -1
index 5834806..4b3b916 100644
@@ -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
Signature · 1 line
2.8.1
#1 lore raw

Sorry, please ignore this! Didn't realise it's fixed in oe-core just not in poky.git yet.

Quoted 35 lines · André Draszik

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.

---
 meta/classes/cml1.bbclass | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/cml1.bbclass +0 -0
index 5834806..4b3b916 100644
@@ -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

meta/classes/cml1.bbclass +0 -0
@@ -72,7 +73,7 @@ python do_diffconfig() {

         if os.path.exists(fragment):
             os.unlink(fragment)
 }

meta/classes/cml1.bbclass +1 -1
-
+do_diffconfig[dirs] = "${B}"

 do_diffconfig[nostamp] = "1"
 do_diffconfig[dirs] = "${B}"
 addtask diffconfig

#2 lore raw
Quoted 3 lines · André Draszik

Sorry, please ignore this! Didn't realise it's fixed in oe-core just not in poky.git yet.

Merges happen to both at the same time generally, but you likely missed it by hours.

Ross

#3 lore raw
In reply to André Draszik
Quoted 4 lines · André Draszik

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.

Already merged into master with 614d976ee97d6386c37afb54add5b83741ca401e.

Ross