[OE-core] [PATCH v2 1/3] package_ipk.bbclass: add kernel version to its dependencies
Ovidiu-Adrian Vancea
ovidiu.vancea at ni.com
Wed Jun 8 16:08:32 UTC 2016
Use the kernel package Version field for its rdepends, rrecommends, and
rsuggests fields’ values. This makes the packages on which the kernel
depends be the same version as the kernel.
Signed-off-by: Ovidiu-Adrian Vancea <ovidiu.vancea at ni.com>
---
meta/classes/package_ipk.bbclass | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 08f7020..0a07f61 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -196,6 +196,15 @@ python do_package_ipk () {
rconflicts = bb.utils.explode_dep_versions2(localdata.getVar("RCONFLICTS", True) or "")
debian_cmp_remap(rconflicts)
+ if (pkgname == "kernel") and (localdata.getVar("VERSION_KERNEL_MODULES", False) == "1"):
+ suffix = "="+localdata.getVar('PKGV', True)+"-"+localdata.getVar('PKGR', True)
+ for key in rdepends:
+ rdepends[key] = suffix
+ for key in rrecommends:
+ rrecommends[key] = suffix
+ for key in rsuggests:
+ rsuggests[key] = suffix
+
if rdepends:
ctrlfile.write("Depends: %s\n" % bb.utils.join_deps(rdepends))
if rsuggests:
--
2.7.4
More information about the Openembedded-core
mailing list