summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-30 09:55:23 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-30 10:03:10 +0000
commit8e7680b629f59bdf3bdab6782235f8ea1decb188 (patch)
treef28708888f6bc997cadd768a0a09e05b11fb2f33 /meta/classes/update-rc.d.bbclass
parent0e8f0f0a033c79611a15914fde5826876502af2e (diff)
downloadpoky-8e7680b629f59bdf3bdab6782235f8ea1decb188.tar.gz
update-rc.d: Allow the primary deamon package to be specified in UPDATERCPN, update gsmd to use this
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 57137c60b4..684f6a8fda 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -1,5 +1,7 @@
1UPDATERCPN ?= "${PN}"
2
1DEPENDS_append = " update-rc.d-native" 3DEPENDS_append = " update-rc.d-native"
2RDEPENDS_${PN}_append = " update-rc.d" 4RDEPENDS_${UPDATERCPN}_append = " update-rc.d"
3 5
4INITSCRIPT_PARAMS ?= "defaults" 6INITSCRIPT_PARAMS ?= "defaults"
5 7
@@ -69,7 +71,7 @@ python populate_packages_prepend () {
69 71
70 pkgs = bb.data.getVar('INITSCRIPT_PACKAGES', d, 1) 72 pkgs = bb.data.getVar('INITSCRIPT_PACKAGES', d, 1)
71 if pkgs == None: 73 if pkgs == None:
72 pkgs = bb.data.getVar('PN', d, 1) 74 pkgs = bb.data.getVar('UPDATERCPN', d, 1)
73 packages = (bb.data.getVar('PACKAGES', d, 1) or "").split() 75 packages = (bb.data.getVar('PACKAGES', d, 1) or "").split()
74 if not pkgs in packages and packages != []: 76 if not pkgs in packages and packages != []:
75 pkgs = packages[0] 77 pkgs = packages[0]