summaryrefslogtreecommitdiff
path: root/packages/meta/task-pivotboot.bb
blob: 091f70f45962cdb23e949dcf73fc75eabc479400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DESCRIPTION = "Basic packages required for a pivot root image"
MAINTAINER = "Jonathan McDowell <noodles@earth.li>"
PR = "r0"

# The PIVOTBOOT_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 \
	netbase modutils-initscripts \
	${HOTPLUG} \
	${PIVOTBOOT_EXTRA_RDEPENDS} \
	${@bootstrap_modutils_rdepends(d)}'

RRECOMMENDS = '${PIVOTBOOT_EXTRA_RRECOMMENDS}'
LICENSE = MIT