summaryrefslogtreecommitdiffstats
path: root/meta-systemd
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-12-13 10:03:03 -0800
committerKhem Raj <raj.khem@gmail.com>2013-01-08 09:31:51 -0800
commitaf1e1e3f55050ab25ce3b6f37e3ee3b3b318f7e4 (patch)
tree6fd91d992291300bc509cc87241f3c251f78651a /meta-systemd
parent69b0e85b415e8cf1b86cdc4251f7a16a8d1db4e4 (diff)
downloadmeta-openembedded-af1e1e3f55050ab25ce3b6f37e3ee3b3b318f7e4.tar.gz
systemd.bbclass: Fixes for living along with multilib
This essentially fixes two problems 1. We were ignoring systemd for multilibs now we dont 2. We were replacing '-systemd' string in PN which is a problem whenre -systemd appears more than once e.g. lib32-systemd-units-system it was removing both essentially we should only chop the end of PN if it ends with '-systemd' Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-systemd')
-rw-r--r--meta-systemd/classes/systemd.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-systemd/classes/systemd.bbclass b/meta-systemd/classes/systemd.bbclass
index 958249259..16ac1fbf1 100644
--- a/meta-systemd/classes/systemd.bbclass
+++ b/meta-systemd/classes/systemd.bbclass
@@ -53,7 +53,9 @@ def systemd_after_parse(d):
53 "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN}" % \ 53 "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN}" % \
54 (bb_filename, pkg_systemd) 54 (bb_filename, pkg_systemd)
55 else: 55 else:
56 pkg_systemd_base = pkg_systemd.replace('-systemd', '') 56 pkg_systemd_base = pkg_systemd
57 if pkg_systemd_base.endswith('-systemd'):
58 pkg_systemd_base = pkg_systemd[:-8]
57 if pkg_systemd_base not in packages: 59 if pkg_systemd_base not in packages:
58 raise bb.build.FuncFailed, \ 60 raise bb.build.FuncFailed, \
59 "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN}" % \ 61 "\n\n%s: %s in SYSTEMD_PACKAGES does not match <existing-package>-systemd or ${PN}" % \
@@ -68,9 +70,10 @@ def systemd_after_parse(d):
68 70
69 71
70 bpn = d.getVar('BPN', 1) 72 bpn = d.getVar('BPN', 1)
73 ml = d.getVar('MLPREFIX', 1) or ""
71 if bpn + "-native" != d.getVar('PN', 1) and \ 74 if bpn + "-native" != d.getVar('PN', 1) and \
72 bpn + "-cross" != d.getVar('PN', 1) and \ 75 bpn + "-cross" != d.getVar('PN', 1) and \
73 not d.getVar('MLPREFIX', 1) and \ 76 ml + bpn == d.getVar('PN', 1) and \
74 "nativesdk-" + bpn != d.getVar('PN', 1): 77 "nativesdk-" + bpn != d.getVar('PN', 1):
75 systemd_check_vars() 78 systemd_check_vars()
76 for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split(): 79 for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split():