On Wed, 2020-07-08 at 20:44 +0200, Konrad Weihmann wrote:
> Put files from installed tests into a ptest package to avoid having
> them in an image and to avoid having more runtime dependencies
> than necessary.
> 
> Signed-off-by: Konrad Weihmann <[email protected]>
> ---
>  meta/classes/distutils-common-base.bbclass | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/meta/classes/distutils-common-base.bbclass 
> b/meta/classes/distutils-common-base.bbclass
> index 94b5fd426d..e3b36574aa 100644
> --- a/meta/classes/distutils-common-base.bbclass
> +++ b/meta/classes/distutils-common-base.bbclass
> @@ -13,8 +13,13 @@ export CCSHARED  = "-fPIC -DPIC"
>  # the python executable
>  export LINKFORSHARED = "{SECURITY_CFLAGS} -Xlinker -export-dynamic"
>  
> +PACKAGES =+ "${@oe.utils.ifelse(bb.data.inherits_class('image', d), '', 
> '${PN}-ptest')}"

We can't do that as for recipes which inherit ptest, we see duplicates
in PACKAGES:

https://errors.yoctoproject.org/Errors/Build/105653/?limit=150

(recipes from meta-oe failing with this change).

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#140537): 
https://lists.openembedded.org/g/openembedded-core/message/140537
Mute This Topic: https://lists.openembedded.org/mt/75383184/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to