From: Joshua Watt <jpewhacker@gmail.com>
To: Stefan Stanacar <sstncr@gmail.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [morty][PATCH] kernelsrc/perf: fix dependency on non existant task when using externalsrc
Date: Fri, 12 Jan 2018 10:21:42 -0600 [thread overview]
Message-ID: <1515774102.30068.56.camel@gmail.com> (raw)
In-Reply-To: <1515686841-28097-1-git-send-email-sstncr@gmail.com>
On Thu, 2018-01-11 at 16:07 +0000, Stefan Stanacar wrote:
> When externalsrc is enabled for kernel, do_patch doesn't exist since
> is in
> SRCTREECOVEREDTASKS, so make these depend on a real task.
>
> Fixes:
> ERROR: Task do_unpack in /data/yocto/poky/meta/recipes-
> kernel/perf/perf.bb
> depends upon non-existent task do_patch in
> /data/yocto/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb
>
> Signed-off-by: Stefan Stanacar <sstncr@gmail.com>
> ---
> meta/classes/kernelsrc.bbclass | 2 +-
> meta/recipes-kernel/perf/perf.bb | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/kernelsrc.bbclass
> b/meta/classes/kernelsrc.bbclass
> index 9efd46a..ce6c999 100644
> --- a/meta/classes/kernelsrc.bbclass
> +++ b/meta/classes/kernelsrc.bbclass
> @@ -1,6 +1,6 @@
> S = "${STAGING_KERNEL_DIR}"
> do_fetch[noexec] = "1"
> -do_unpack[depends] += "virtual/kernel:do_patch"
> +do_unpack[depends] += "virtual/kernel:do_configure"
I was looking at fixing this as well, but I had another approach.
Instead of perpetually changing these to handle externalsrc corner
cases, perhaps externalsrc.bbclass should not delete the tasks, but
instead mark them as noexec as follows (I'll push this up for real if
in a moment...). Then recipes should be able to work transparently
regardless of externalsrc being used or not.
diff --git a/meta/classes/externalsrc.bbclass
b/meta/classes/externalsrc.bbclass
index 65dd13ddc1f..12046d74e17 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -102,7 +102,7 @@ python () {
for task in d.getVar("SRCTREECOVEREDTASKS").split():
if local_srcuri and task in fetch_tasks:
continue
- bb.build.deltask(task, d)
+ d.setVarFlag(task, 'noexec', '1')
d.prependVarFlag('do_compile', 'prefunc
s', "externalsrc_compile_prefunc ")
d.prependVarFlag('do_configure', 'prefuncs',
"externalsrc_configure_prefunc ")
> do_unpack[noexec] = "1"
> do_patch[noexec] = "1"
> do_package[depends] += "virtual/kernel:do_populate_sysroot"
> diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-
> kernel/perf/perf.bb
> index 03ae446..145774b 100644
> --- a/meta/recipes-kernel/perf/perf.bb
> +++ b/meta/recipes-kernel/perf/perf.bb
> @@ -47,7 +47,7 @@ export PYTHON_SITEPACKAGES_DIR
> #kernel 3.1+ supports WERROR to disable warnings as errors
> export WERROR = "0"
>
> -do_populate_lic[depends] += "virtual/kernel:do_patch"
> +do_populate_lic[depends] += "virtual/kernel:do_configure"
>
> # needed for building the tools/perf Perl binding
> inherit perlnative cpan-base
> --
> 2.7.4
>
next prev parent reply other threads:[~2018-01-12 16:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 16:07 [morty][PATCH] kernelsrc/perf: fix dependency on non existant task when using externalsrc Stefan Stanacar
2018-01-11 16:07 ` [morty][PATCH] kernel.bbclass: Fix symlink creation " Stefan Stanacar
2018-01-17 19:04 ` akuster808
2018-01-18 16:41 ` Stefan Stanacar
2018-01-12 16:21 ` Joshua Watt [this message]
2018-01-12 17:01 ` [morty][PATCH] kernelsrc/perf: fix dependency on non existant task " Stefan Stanacar
-- strict thread matches above, loose matches on Subject: below --
2018-01-29 14:39 Stefan Stanacar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1515774102.30068.56.camel@gmail.com \
--to=jpewhacker@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=sstncr@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.