summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r--meta/classes/rootfs_ipk.bbclass38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
new file mode 100644
index 0000000..f5fef00
--- /dev/null
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -0,0 +1,38 @@
1#
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 opkg-collateral ${EXTRAOPKGCONFIG}"
10ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
11
12do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
13do_rootfs[recrdeptask] += "do_package_write_ipk"
14do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
15rootfs_ipk_do_rootfs[vardepsexclude] += "BUILDNAME"
16
17do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
18
19OPKG_PREPROCESS_COMMANDS = ""
20
21OPKG_POSTPROCESS_COMMANDS = ""
22
23OPKGLIBDIR = "${localstatedir}/lib"
24
25MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg"
26
27python () {
28
29 if d.getVar('BUILD_IMAGES_FROM_FEEDS', True):
30 flags = d.getVarFlag('do_rootfs', 'recrdeptask')
31 flags = flags.replace("do_package_write_ipk", "")
32 flags = flags.replace("do_deploy", "")
33 flags = flags.replace("do_populate_sysroot", "")
34 d.setVarFlag('do_rootfs', 'recrdeptask', flags)
35 d.setVar('OPKG_PREPROCESS_COMMANDS', "")
36 d.setVar('OPKG_POSTPROCESS_COMMANDS', '')
37}
38