* [PATCH] linux-distro: Fix multiple provider warnings
@ 2024-05-28 13:48 Jan Kiszka
2024-06-03 6:38 ` Uladzimir Bely
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2024-05-28 13:48 UTC (permalink / raw)
To: isar-users; +Cc: Schmidt, Adriaan, Koch, Stefan
From: Jan Kiszka <jan.kiszka@siemens.com>
As now all recipe variants of this stub target provide the same, we get
warnings like these when using the distro kernel:
NOTE: Multiple providers are available for linux-image-arm64 (linux-distro, linux-distro-native)
Consider defining a PREFERRED_PROVIDER entry to match linux-image-arm64
We can resolve that by limiting the PROVIDES additions to the base
target again as all of them are stubs anyway, Debian will provide the
actual packages.
Fixes: b7e3c78766c3 ("module.inc: fix kbuild dependency")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta/recipes-kernel/linux/linux-distro.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-kernel/linux/linux-distro.bb b/meta/recipes-kernel/linux/linux-distro.bb
index 16673b67..d4f6026d 100644
--- a/meta/recipes-kernel/linux/linux-distro.bb
+++ b/meta/recipes-kernel/linux/linux-distro.bb
@@ -6,6 +6,9 @@
# SPDX-License-Identifier: MIT
python() {
+ if ("class-native" or "class-compat") in d.getVar("OVERRIDES").split(":"):
+ return
+
distro_kernels = d.getVar('DISTRO_KERNELS') or ""
for kernel in distro_kernels.split():
d.appendVar('PROVIDES', ' linux-image-' + kernel)
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] linux-distro: Fix multiple provider warnings
2024-05-28 13:48 [PATCH] linux-distro: Fix multiple provider warnings Jan Kiszka
@ 2024-06-03 6:38 ` Uladzimir Bely
0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2024-06-03 6:38 UTC (permalink / raw)
To: Jan Kiszka, isar-users
On Tue, 2024-05-28 at 15:48 +0200, 'Jan Kiszka' via isar-users wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> As now all recipe variants of this stub target provide the same, we
> get
> warnings like these when using the distro kernel:
>
> NOTE: Multiple providers are available for linux-image-arm64 (linux-
> distro, linux-distro-native)
> Consider defining a PREFERRED_PROVIDER entry to match linux-image-
> arm64
>
> We can resolve that by limiting the PROVIDES additions to the base
> target again as all of them are stubs anyway, Debian will provide the
> actual packages.
>
> Fixes: b7e3c78766c3 ("module.inc: fix kbuild dependency")
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> meta/recipes-kernel/linux/linux-distro.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-kernel/linux/linux-distro.bb
> b/meta/recipes-kernel/linux/linux-distro.bb
> index 16673b67..d4f6026d 100644
> --- a/meta/recipes-kernel/linux/linux-distro.bb
> +++ b/meta/recipes-kernel/linux/linux-distro.bb
> @@ -6,6 +6,9 @@
> # SPDX-License-Identifier: MIT
>
> python() {
> + if ("class-native" or "class-compat") in
> d.getVar("OVERRIDES").split(":"):
> + return
> +
> distro_kernels = d.getVar('DISTRO_KERNELS') or ""
> for kernel in distro_kernels.split():
> d.appendVar('PROVIDES', ' linux-image-' + kernel)
> --
> 2.43.0
>
Applied to next, thanks.
--
Best regards,
Uladzimir.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-03 6:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-28 13:48 [PATCH] linux-distro: Fix multiple provider warnings Jan Kiszka
2024-06-03 6:38 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox