[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: Re: [OE-core] switching some legacy bbclass stuff to use "noexec"
From: "Quentin Schulz" <quentin.schulz () streamunlimited ! com>
Date: 2021-05-31 8:50:57
Message-ID: 20210531085057.ndae2r4ay2abqa77 () qschulz
[Download RAW message or body]
Hi Robert,
On Sun, May 30, 2021 at 04:31:24PM -0400, Robert P. J. Day wrote:
>
> am i right in assuming that stuff like this in ptest.bbclass:
>
> do_configure_ptest() {
> :
> }
>
> can be replaced by using the "noexec" flag?
>
No.
[noexec] effectively disables the whole task while the code snippet
above allows to _prepend, _append, overrides for a given
machine/distro/target/native.
Also, I assume that you need a tak to be defined in order to addtask it
and then noexec it?
> if so, then this in base.bbclass looks a bit strange:
>
> do_build[noexec] = "1"
> do_build[recrdeptask] += "do_deploy"
> do_build () {
> :
> }
>
Don't know if it actually makes sense, but this defines a build task,
which can then be "noexec"-ed. One can then decide to exec it and
add code to the function.
Since do_build is the task that is called when you do bitbake <recipe>
(and probably many other scenarios, e.g. EXTRA_IMAGEDEPENDS?) it should
always be defined even though it is just basically the root node of the
task dependency tree.
Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152459): https://lists.openembedded.org/g/openembedded-core/message/152459
Mute This Topic: https://lists.openembedded.org/mt/83195933/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic