All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cml1.bbclass: explicitly set workdir
@ 2016-08-05  9:34 André Draszik
  2016-08-05  9:40 ` Burton, Ross
  2016-08-05  9:40 ` André Draszik
  0 siblings, 2 replies; 4+ messages in thread
From: André Draszik @ 2016-08-05  9:34 UTC (permalink / raw)
  To: openembedded-core

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@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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] cml1.bbclass: explicitly set workdir
  2016-08-05  9:34 [PATCH] cml1.bbclass: explicitly set workdir André Draszik
@ 2016-08-05  9:40 ` Burton, Ross
  2016-08-05  9:40 ` André Draszik
  1 sibling, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-08-05  9:40 UTC (permalink / raw)
  To: André Draszik; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

On 5 August 2016 at 10:34, André Draszik <git@andred.net> wrote:

> 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

[-- Attachment #2: Type: text/html, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cml1.bbclass: explicitly set workdir
  2016-08-05  9:34 [PATCH] cml1.bbclass: explicitly set workdir André Draszik
  2016-08-05  9:40 ` Burton, Ross
@ 2016-08-05  9:40 ` André Draszik
  2016-08-05 11:26   ` Burton, Ross
  1 sibling, 1 reply; 4+ messages in thread
From: André Draszik @ 2016-08-05  9:40 UTC (permalink / raw)
  To: openembedded-core

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

On Fri, 2016-08-05 at 10:34 +0100, André Draszik wrote:
> 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@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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cml1.bbclass: explicitly set workdir
  2016-08-05  9:40 ` André Draszik
@ 2016-08-05 11:26   ` Burton, Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-08-05 11:26 UTC (permalink / raw)
  To: André Draszik; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

On 5 August 2016 at 10:40, André Draszik <git@andred.net> wrote:

> 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

[-- Attachment #2: Type: text/html, Size: 662 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-05 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-05  9:34 [PATCH] cml1.bbclass: explicitly set workdir André Draszik
2016-08-05  9:40 ` Burton, Ross
2016-08-05  9:40 ` André Draszik
2016-08-05 11:26   ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.