summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-10-13 10:25:57 +0000
committerMichael Lauer <mickey@vanille-media.de>2006-10-13 10:25:57 +0000
commite246bc5838801e9d61dd896597426af9bcd7ec74 (patch)
tree0fe6fcb1beefe757ed7a5870fb9fd2e3a45ce36e
parent86123c1f8c95b10a1aee30b96b3ed86dfe7a6b88 (diff)
task-bootstrap*: refactor common function into task-bootstrap.inc
-rw-r--r--packages/tasks/task-bootstrap-unionroot.bb10
-rw-r--r--packages/tasks/task-bootstrap.bb10
-rw-r--r--packages/tasks/task-bootstrap.inc9
3 files changed, 11 insertions, 18 deletions
diff --git a/packages/tasks/task-bootstrap-unionroot.bb b/packages/tasks/task-bootstrap-unionroot.bb
index 5db841903d..c64dda5f98 100644
--- a/packages/tasks/task-bootstrap-unionroot.bb
+++ b/packages/tasks/task-bootstrap-unionroot.bb
@@ -14,15 +14,7 @@ PACKAGES = "${PN}"
MODUTILS ?= "24 26"
-def bootstrap_modutils_rdepends(d):
- import bb
- m = bb.data.getVar('MODUTILS', d, 1)
- r = []
- if '24' in m:
- r.append('modutils-depmod')
- if '26' in m:
- r.append('module-init-tools-depmod')
- return ' '.join(r)
+require task-bootstrap.inc
HOTPLUG ?= "linux-hotplug"
diff --git a/packages/tasks/task-bootstrap.bb b/packages/tasks/task-bootstrap.bb
index ef76ec4345..f6aa91dcde 100644
--- a/packages/tasks/task-bootstrap.bb
+++ b/packages/tasks/task-bootstrap.bb
@@ -11,15 +11,7 @@ PACKAGES = "${PN}"
MODUTILS ?= "24 26"
-def bootstrap_modutils_rdepends(d):
- import bb
- m = bb.data.getVar('MODUTILS', d, 1)
- r = []
- if '24' in m:
- r.append('modutils-depmod')
- if '26' in m:
- r.append('module-init-tools-depmod')
- return ' '.join(r)
+require task-bootstrap.inc
HOTPLUG ?= "linux-hotplug"
diff --git a/packages/tasks/task-bootstrap.inc b/packages/tasks/task-bootstrap.inc
new file mode 100644
index 0000000000..073da7055f
--- /dev/null
+++ b/packages/tasks/task-bootstrap.inc
@@ -0,0 +1,9 @@
+def bootstrap_modutils_rdepends(d):
+ import bb
+ m = bb.data.getVar('MODUTILS', d, 1)
+ r = []
+ if '24' in m:
+ r.append('modutils-depmod')
+ if '26' in m:
+ r.append('module-init-tools-depmod')
+ return ' '.join(r)