blob: dd144e49ef9ba470f53437d0fbd44ff9d982ccd4 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# Creates a root filesystem out of IPKs
3#
4# This rootfs can be mounted via root-nfs or it can be put into an cramfs/jffs etc.
5# See image.bbclass for a usage of this.
6#
7
8EXTRAOPKGCONFIG ?= ""
9ROOTFS_PKGMANAGE = "opkg ${EXTRAOPKGCONFIG}"
10ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
11
12do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
13do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
14do_rootfs[recrdeptask] += "do_package_write_ipk"
15do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
16rootfs_ipk_do_rootfs[vardepsexclude] += "BUILDNAME"
17
18do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
19do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock"
20
21OPKG_PREPROCESS_COMMANDS = ""
22
23OPKG_POSTPROCESS_COMMANDS = ""
24
25OPKGLIBDIR = "${localstatedir}/lib"
26
27MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg"
28
29python () {
30
31 if d.getVar('BUILD_IMAGES_FROM_FEEDS', True):
32 flags = d.getVarFlag('do_rootfs', 'recrdeptask')
33 flags = flags.replace("do_package_write_ipk", "")
34 flags = flags.replace("do_deploy", "")
35 flags = flags.replace("do_populate_sysroot", "")
36 d.setVarFlag('do_rootfs', 'recrdeptask', flags)
37 d.setVar('OPKG_PREPROCESS_COMMANDS', "")
38 d.setVar('OPKG_POSTPROCESS_COMMANDS', '')
39}