2005-08-31 10:45:47 +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.
|
2007-01-08 21:06:47 +00:00
|
|
|
# See image.bbclass for a usage of this.
|
2005-08-31 10:45:47 +00:00
|
|
|
#
|
|
|
|
|
2009-07-15 12:43:33 +00:00
|
|
|
EXTRAOPKGCONFIG ?= ""
|
2014-12-19 17:50:12 +00:00
|
|
|
ROOTFS_PKGMANAGE = "opkg ${EXTRAOPKGCONFIG}"
|
2008-05-20 14:58:34 +00:00
|
|
|
|
2009-11-10 14:55:23 +00:00
|
|
|
do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
|
2014-08-14 13:32:10 +00:00
|
|
|
do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot"
|
2007-08-21 09:37:30 +00:00
|
|
|
do_rootfs[recrdeptask] += "do_package_write_ipk"
|
2014-02-27 20:20:38 +00:00
|
|
|
do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
|
2005-08-31 10:45:47 +00:00
|
|
|
|
2012-06-23 00:38:30 +00:00
|
|
|
do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
|
2014-08-14 13:32:10 +00:00
|
|
|
do_populate_sdk[lockfiles] += "${WORKDIR}/ipk.lock"
|
2018-01-21 23:17:16 +00:00
|
|
|
do_populate_sdk_ext[lockfiles] += "${WORKDIR}/ipk.lock"
|
2012-06-23 00:38:30 +00:00
|
|
|
|
2014-01-13 08:16:43 +00:00
|
|
|
OPKG_PREPROCESS_COMMANDS = ""
|
2008-10-02 09:42:27 +00:00
|
|
|
|
2014-01-13 08:16:43 +00:00
|
|
|
OPKG_POSTPROCESS_COMMANDS = ""
|
2008-10-01 15:38:55 +00:00
|
|
|
|
2013-02-04 22:06:52 +00:00
|
|
|
OPKGLIBDIR = "${localstatedir}/lib"
|
2010-08-26 04:39:07 +00:00
|
|
|
|
2014-02-12 14:33:44 +00:00
|
|
|
MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg"
|
2011-07-11 12:14:15 +00:00
|
|
|
|
2008-10-01 15:38:55 +00:00
|
|
|
python () {
|
2009-11-08 22:32:43 +00:00
|
|
|
|
2016-12-14 21:13:04 +00:00
|
|
|
if d.getVar('BUILD_IMAGES_FROM_FEEDS'):
|
2016-12-14 21:13:06 +00:00
|
|
|
flags = d.getVarFlag('do_rootfs', 'recrdeptask')
|
2008-10-01 15:38:55 +00:00
|
|
|
flags = flags.replace("do_package_write_ipk", "")
|
|
|
|
flags = flags.replace("do_deploy", "")
|
2009-11-10 14:55:23 +00:00
|
|
|
flags = flags.replace("do_populate_sysroot", "")
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
d.setVarFlag('do_rootfs', 'recrdeptask', flags)
|
2014-02-05 09:08:34 +00:00
|
|
|
d.setVar('OPKG_PREPROCESS_COMMANDS', "")
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
d.setVar('OPKG_POSTPROCESS_COMMANDS', '')
|
2008-10-01 15:38:55 +00:00
|
|
|
}
|