All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zoltan Boszormenyi <zboszor@pr.hu>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 2/2] kernel-module-split.bbclass: kernel-modules depend on versioned modules
Date: Mon,  3 Apr 2017 19:01:32 +0200	[thread overview]
Message-ID: <20170403170132.19588-3-zboszor@pr.hu> (raw)
In-Reply-To: <20170403170132.19588-1-zboszor@pr.hu>

The kernel-modules meta-packages should depend on module subpackages
with versions to allow upgrading the kernel easier with limiting
the upgrade to selected packages.

Signed-off-by: Zoltan Boszormenyi <zboszor@pr.hu>
---
 meta/classes/kernel-module-split.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass
index 8233848..a36a045 100644
--- a/meta/classes/kernel-module-split.bbclass
+++ b/meta/classes/kernel-module-split.bbclass
@@ -144,7 +144,8 @@ python split_kernel_module_packages () {
     modules = do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='kernel-%s' % (d.getVar("KERNEL_VERSION", True)))
     if modules:
         metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE', True)
-        d.appendVar('RDEPENDS_' + metapkg, ' '+' '.join(modules))
+        for mod in modules:
+            d.appendVar('RDEPENDS_' + metapkg, ' ' + mod + ' (>= %s)' % (d.getVar("EXTENDPKGV", True)))
 
     # If modules-load.d and modprobe.d are empty at this point, remove them to
     # avoid warnings. removedirs only raises an OSError if an empty
-- 
1.8.3.1



  parent reply	other threads:[~2017-04-03 17:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-03 17:01 [PATCH 0/2] Extend to kernel-module-split.bbclass Zoltan Boszormenyi
2017-04-03 17:01 ` [PATCH 1/2] kernel-module-split.bbclass: Support module compression Zoltan Boszormenyi
2017-04-03 17:01 ` Zoltan Boszormenyi [this message]
2017-04-03 18:04 ` [PATCH 0/2] Extend to kernel-module-split.bbclass Martin Jansa
2017-04-04 13:19   ` Boszormenyi Zoltan
2017-04-04 14:20     ` Leonardo Sandoval

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=20170403170132.19588-3-zboszor@pr.hu \
    --to=zboszor@pr.hu \
    --cc=openembedded-devel@lists.openembedded.org \
    /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.