From: Uladzimir Bely <ubely@ilbers.de>
To: Felix Moessbauer <felix.moessbauer@siemens.com>,
isar-users@googlegroups.com
Subject: Re: [PATCH 1/1] linux-distro: add RPROVIDES for distro kernel packages
Date: Tue, 25 Mar 2025 19:56:21 +0300 [thread overview]
Message-ID: <101b7a7c7a4b2fffb28584540bf3e364ffb91bfc.camel@ilbers.de> (raw)
In-Reply-To: <20250312133955.3771936-1-felix.moessbauer@siemens.com>
On Wed, 2025-03-12 at 14:39 +0100, 'Felix Moessbauer' via isar-users
wrote:
> When building a non-distro kernel, all generated packages are also
> registered as RPROVIDES, so that downstream user can runtime depend
> on
> them. This however was not implemented for the distro kernel dummy
> packages.
>
> We now add RPROVIDES for all distro kernel packages as well. As this
> would lead to a lot of code duplication, we generalize the anonymous
> python function a bit.
>
> Co-developed-by: Christoph Steiger <christoph.steiger@siemens.com>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> meta/recipes-kernel/linux/linux-distro.bb | 19 ++++++++++++-------
> 1 file changed, 12 insertions(+), 7 deletions(-)
>
> diff --git a/meta/recipes-kernel/linux/linux-distro.bb
> b/meta/recipes-kernel/linux/linux-distro.bb
> index d4f6026d..ffe828f5 100644
> --- a/meta/recipes-kernel/linux/linux-distro.bb
> +++ b/meta/recipes-kernel/linux/linux-distro.bb
> @@ -10,14 +10,19 @@ python() {
> return
>
> distro_kernels = d.getVar('DISTRO_KERNELS') or ""
> + kernel_img_pkg = d.getVar('KERNEL_IMAGE_PKG')
> + kernel_headers_pkg = d.getVar('KERNEL_HEADERS_PKG')
> +
> for kernel in distro_kernels.split():
> - d.appendVar('PROVIDES', ' linux-image-' + kernel)
> - d.appendVar('PROVIDES', ' linux-headers-' + kernel)
> - d.appendVar('PROVIDES', ' linux-kbuild-' + kernel)
> - if d.getVar('KERNEL_IMAGE_PKG'):
> - d.appendVar('PROVIDES', ' ' + d.getVar('KERNEL_IMAGE_PKG'))
> - if d.getVar('KERNEL_HEADERS_PKG'):
> - d.appendVar('PROVIDES', ' ' +
> d.getVar('KERNEL_HEADERS_PKG'))
> + for prefix in ['linux-image', 'linux-headers', 'linux-
> kbuild']:
> + d.appendVar('PROVIDES', ' {}-{}'.format(prefix, kernel))
> + d.appendVar('RPROVIDES', ' {}-{}'.format(prefix,
> kernel))
> + if kernel_img_pkg:
> + d.appendVar('PROVIDES', ' ' + kernel_img_pkg)
> + d.appendVar('RPROVIDES', ' ' + kernel_img_pkg)
> + if kernel_headers_pkg:
> + d.appendVar('PROVIDES', ' ' + kernel_headers_pkg)
> + d.appendVar('RPROVIDES', ' ' + kernel_headers_pkg)
> }
>
> inherit multiarch
> --
> 2.39.5
Applied to next, thanks.
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/101b7a7c7a4b2fffb28584540bf3e364ffb91bfc.camel%40ilbers.de.
prev parent reply other threads:[~2025-03-25 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 13:39 'Felix Moessbauer' via isar-users
2025-03-25 16:56 ` Uladzimir Bely [this message]
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=101b7a7c7a4b2fffb28584540bf3e364ffb91bfc.camel@ilbers.de \
--to=ubely@ilbers.de \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox