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 ?= ""
|
2009-07-15 11:57:10 +00:00
|
|
|
ROOTFS_PKGMANAGE = "opkg opkg-collateral ${EXTRAOPKGCONFIG}"
|
2008-05-20 14:58:34 +00:00
|
|
|
ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
|
|
|
|
|
2009-11-10 14:55:23 +00:00
|
|
|
do_rootfs[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"
|
2013-03-07 03:26:13 +00:00
|
|
|
rootfs_ipk_do_rootfs[vardepsexclude] += "BUILDNAME"
|
2005-08-31 10:45:47 +00:00
|
|
|
|
2012-06-23 00:38:30 +00:00
|
|
|
do_rootfs[lockfiles] += "${WORKDIR}/ipk.lock"
|
|
|
|
|
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
|
|
|
|
2013-02-04 22:06:52 +00:00
|
|
|
MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg"
|
2011-07-11 12:14:15 +00:00
|
|
|
|
2008-10-01 15:38:55 +00:00
|
|
|
ipk_insert_feed_uris () {
|
|
|
|
|
2008-10-08 16:49:57 +00:00
|
|
|
echo "Building from feeds activated!"
|
2008-10-01 15:38:55 +00:00
|
|
|
|
2008-10-08 16:49:57 +00:00
|
|
|
for line in ${IPK_FEED_URIS}
|
|
|
|
do
|
|
|
|
# strip leading and trailing spaces/tabs, then split into name and uri
|
|
|
|
line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
|
|
|
|
feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
|
|
|
|
feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"
|
2008-10-01 15:38:55 +00:00
|
|
|
|
2008-10-08 16:49:57 +00:00
|
|
|
echo "Added $feed_name feed with URL $feed_uri"
|
2008-10-01 15:38:55 +00:00
|
|
|
|
2008-10-08 16:49:57 +00:00
|
|
|
# insert new feed-sources
|
|
|
|
echo "src/gz $feed_name $feed_uri" >> ${IPKGCONF_TARGET}
|
2011-12-06 20:19:30 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# Allow to use package deploy directory contents as quick devel-testing
|
|
|
|
# feed. This creates individual feed configs for each arch subdir of those
|
|
|
|
# specified as compatible for the current machine.
|
|
|
|
# NOTE: Development-helper feature, NOT a full-fledged feed.
|
|
|
|
if [ -n "${FEED_DEPLOYDIR_BASE_URI}" ]; then
|
|
|
|
for arch in ${PACKAGE_ARCHS}
|
|
|
|
do
|
|
|
|
echo "src/gz local-$arch ${FEED_DEPLOYDIR_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/opkg/local-$arch-feed.conf
|
|
|
|
done
|
|
|
|
fi
|
2008-10-01 15:38:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
python () {
|
2009-11-08 22:32:43 +00:00
|
|
|
|
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
|
|
|
if d.getVar('BUILD_IMAGES_FROM_FEEDS', True):
|
|
|
|
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-01-13 08:16:43 +00:00
|
|
|
d.setVar('OPKG_PREPROCESS_COMMANDS', "ipk_insert_feed_uris")
|
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
|
|
|
}
|
|
|
|
|