blob: f1e02197322c181faca99470946aa0c4ff90ea26 [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}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
11do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
12do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013do_rootfs[recrdeptask] += "do_package_write_ipk do_package_qa"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060014do_rootfs[vardeps] += "PACKAGE_FEED_URIS PACKAGE_FEED_BASE_PATHS PACKAGE_FEED_ARCHS"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
17do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018do_populate_sdk_ext[lockfiles] += "${WORKDIR}/ipk.lock"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
20OPKG_PREPROCESS_COMMANDS = ""
21
22OPKG_POSTPROCESS_COMMANDS = ""
23
Brad Bishop96ff1982019-08-19 13:50:42 -040024OPKGLIBDIR ??= "${localstatedir}/lib"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025
26MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg"
27
28python () {
29
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030 if d.getVar('BUILD_IMAGES_FROM_FEEDS'):
31 flags = d.getVarFlag('do_rootfs', 'recrdeptask')
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032 flags = flags.replace("do_package_write_ipk", "")
33 flags = flags.replace("do_deploy", "")
34 flags = flags.replace("do_populate_sysroot", "")
35 d.setVarFlag('do_rootfs', 'recrdeptask', flags)
36 d.setVar('OPKG_PREPROCESS_COMMANDS', "")
37 d.setVar('OPKG_POSTPROCESS_COMMANDS', '')
38}