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" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
| 17 | do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock" |
| 18 | do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock" |
| 19 | |
| 20 | OPKG_PREPROCESS_COMMANDS = "" |
| 21 | |
| 22 | OPKG_POSTPROCESS_COMMANDS = "" |
| 23 | |
| 24 | OPKGLIBDIR = "${localstatedir}/lib" |
| 25 | |
| 26 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg" |
| 27 | |
| 28 | python () { |
| 29 | |
| 30 | if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 31 | flags = d.getVarFlag('do_rootfs', 'recrdeptask', True) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | 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 | } |