Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
| 8 | EXTRAOPKGCONFIG ?= "" |
| 9 | ROOTFS_PKGMANAGE = "opkg ${EXTRAOPKGCONFIG}" |
| 10 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" |
| 11 | |
| 12 | do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" |
| 13 | do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" |
| 14 | do_rootfs[recrdeptask] += "do_package_write_ipk" |
| 15 | do_rootfs[vardeps] += "PACKAGE_FEED_URIS" |
| 16 | rootfs_ipk_do_rootfs[vardepsexclude] += "BUILDNAME" |
| 17 | |
| 18 | do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock" |
| 19 | do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock" |
| 20 | |
| 21 | OPKG_PREPROCESS_COMMANDS = "" |
| 22 | |
| 23 | OPKG_POSTPROCESS_COMMANDS = "" |
| 24 | |
| 25 | OPKGLIBDIR = "${localstatedir}/lib" |
| 26 | |
| 27 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg" |
| 28 | |
| 29 | python () { |
| 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 | } |