public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] kernelsrc.bbclass: Ensure fetch/unpack/patch tasks don't run
@ 2014-12-19 13:18 Richard Purdie
  2014-12-19 14:15 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2014-12-19 13:18 UTC (permalink / raw)
  To: openembedded-core

In particular this removes a race condition where a ${S}/patches
directory could be created by do_unpack. This confuses kern-tools.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/kernelsrc.bbclass b/meta/classes/kernelsrc.bbclass
index 11f04e9..4208eff 100644
--- a/meta/classes/kernelsrc.bbclass
+++ b/meta/classes/kernelsrc.bbclass
@@ -1,5 +1,8 @@
 S = "${STAGING_KERNEL_DIR}"
+do_fetch[noexec] = "1"
 do_unpack[depends] += "virtual/kernel:do_patch"
+do_unpack[noexec] = "1"
+do_patch[noexec] = "1"
 do_package[depends] += "virtual/kernel:do_populate_sysroot"
 KERNEL_VERSION = "${@get_kernelversion_file("${S}")}"
 




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

* Re: [PATCH] kernelsrc.bbclass: Ensure fetch/unpack/patch tasks don't run
  2014-12-19 13:18 [PATCH] kernelsrc.bbclass: Ensure fetch/unpack/patch tasks don't run Richard Purdie
@ 2014-12-19 14:15 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2014-12-19 14:15 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On 14-12-19 08:18 AM, Richard Purdie wrote:
> In particular this removes a race condition where a ${S}/patches
> directory could be created by do_unpack. This confuses kern-tools.

Looks good here. This will keep the dreaded 'patches' directory from 
popping up and mucking up the existing detection of meta data.

On a related note, I'll see about making things more robust on the
detection end as well.

Cheers,

Bruce

>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> diff --git a/meta/classes/kernelsrc.bbclass b/meta/classes/kernelsrc.bbclass
> index 11f04e9..4208eff 100644
> --- a/meta/classes/kernelsrc.bbclass
> +++ b/meta/classes/kernelsrc.bbclass
> @@ -1,5 +1,8 @@
>   S = "${STAGING_KERNEL_DIR}"
> +do_fetch[noexec] = "1"
>   do_unpack[depends] += "virtual/kernel:do_patch"
> +do_unpack[noexec] = "1"
> +do_patch[noexec] = "1"
>   do_package[depends] += "virtual/kernel:do_populate_sysroot"
>   KERNEL_VERSION = "${@get_kernelversion_file("${S}")}"
>
>
>



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

end of thread, other threads:[~2014-12-19 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-19 13:18 [PATCH] kernelsrc.bbclass: Ensure fetch/unpack/patch tasks don't run Richard Purdie
2014-12-19 14:15 ` Bruce Ashfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox