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}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
| 11 | do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" |
| 12 | do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 13 | do_rootfs[recrdeptask] += "do_package_write_ipk do_package_qa" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | do_rootfs[vardeps] += "PACKAGE_FEED_URIS" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 16 | do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock" |
| 17 | do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | do_populate_sdk_ext[lockfiles] += "${WORKDIR}/ipk.lock" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | |
| 20 | OPKG_PREPROCESS_COMMANDS = "" |
| 21 | |
| 22 | OPKG_POSTPROCESS_COMMANDS = "" |
| 23 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame^] | 24 | OPKGLIBDIR ??= "${localstatedir}/lib" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | |
| 26 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg" |
| 27 | |
| 28 | python () { |
| 29 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | if d.getVar('BUILD_IMAGES_FROM_FEEDS'): |
| 31 | flags = d.getVarFlag('do_rootfs', 'recrdeptask') |
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 | } |