2024-09-09 08:52:07 +00:00
|
|
|
#
|
|
|
|
# Creates a root filesystem out of IPKs
|
|
|
|
#
|
|
|
|
# This rootfs can be mounted via root-nfs or it can be put into an cramfs/jffs etc.
|
|
|
|
# See image.bbclass for a usage of this.
|
|
|
|
#
|
|
|
|
|
|
|
|
EXTRAOPKGCONFIG ?= ""
|
2024-09-09 08:57:42 +00:00
|
|
|
ROOTFS_PKGMANAGE = "opkg ${EXTRAOPKGCONFIG}"
|
2024-09-09 08:52:07 +00:00
|
|
|
ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
|
|
|
|
|
|
|
|
do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
|
2024-09-09 08:57:42 +00:00
|
|
|
do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
|
2024-09-09 08:52:07 +00:00
|
|
|
do_rootfs[recrdeptask] += "do_package_write_ipk"
|
2024-09-09 08:57:42 +00:00
|
|
|
do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
|
|
|
|
rootfs_ipk_do_rootfs[vardepsexclude] += "BUILDNAME"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
|
|
|
|
do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
OPKG_PREPROCESS_COMMANDS = ""
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
OPKG_POSTPROCESS_COMMANDS = ""
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
OPKGLIBDIR = "${localstatedir}/lib"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
python () {
|
|
|
|
|
|
|
|
if d.getVar('BUILD_IMAGES_FROM_FEEDS', True):
|
|
|
|
flags = d.getVarFlag('do_rootfs', 'recrdeptask')
|
|
|
|
flags = flags.replace("do_package_write_ipk", "")
|
|
|
|
flags = flags.replace("do_deploy", "")
|
|
|
|
flags = flags.replace("do_populate_sysroot", "")
|
|
|
|
d.setVarFlag('do_rootfs', 'recrdeptask', flags)
|
2024-09-09 08:57:42 +00:00
|
|
|
d.setVar('OPKG_PREPROCESS_COMMANDS', "")
|
2024-09-09 08:52:07 +00:00
|
|
|
d.setVar('OPKG_POSTPROCESS_COMMANDS', '')
|
|
|
|
}
|