diff options
Diffstat (limited to 'packages/tasks/task-bootstrap-unionroot.bb')
-rw-r--r-- | packages/tasks/task-bootstrap-unionroot.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/tasks/task-bootstrap-unionroot.bb b/packages/tasks/task-bootstrap-unionroot.bb new file mode 100644 index 0000000000..5db841903d --- /dev/null +++ b/packages/tasks/task-bootstrap-unionroot.bb @@ -0,0 +1,43 @@ +DESCRIPTION = "Core packages required for a basic installation with unionroot" +MAINTAINER = "Chris Lord <cwiiis@handhelds.org>" +PROVIDES = "task-bootstrap" +RPROVIDES = "task-bootstrap" +PR = "r2" +DEFAULT_PREFERENCE = "-1" + +# The BOOTSTRAP_EXTRA_ variables are often manipulated by the +# MACHINE .conf files, so adjust PACKAGE_ARCH accordingly. +PACKAGE_ARCH = "${MACHINE_ARCH}" + +ALLOW_EMPTY = 1 +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) + +HOTPLUG ?= "linux-hotplug" + +RDEPENDS = 'base-files base-passwd busybox \ + initscripts \ + netbase sysvinit sysvinit-pidof tinylogin \ + modutils-initscripts \ + ${HOTPLUG} \ + ${BOOTSTRAP_EXTRA_RDEPENDS} \ + ${@bootstrap_modutils_rdepends(d)} \ + unionfs-modules \ + unionfs-utils \ + unionroot \ + unionroot-utils' + +RRECOMMENDS = 'dropbear portmap \ + ${BOOTSTRAP_EXTRA_RRECOMMENDS}' +LICENSE = MIT |