mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
rootfs.py, package_manager.py, sdk.py: Fix building from feeds feature for opkg
When using opkg as the PM backend, one has the option to provide custom feeds to create the rootfs from. This commit: * fixes this in the refactored code; * moves the custom config creation code to python; * clean up the package-ipk.bbclass; (From OE-Core rev: 19c538f57c8fa7c566e88a6dbe13ea4826d4f26c) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ab8cbf35d6
commit
f4fa44cf91
@@ -23,35 +23,6 @@ OPKGLIBDIR = "${localstatedir}/lib"
|
||||
|
||||
MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg"
|
||||
|
||||
ipk_insert_feed_uris () {
|
||||
|
||||
echo "Building from feeds activated!"
|
||||
|
||||
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'`"
|
||||
|
||||
echo "Added $feed_name feed with URL $feed_uri"
|
||||
|
||||
# insert new feed-sources
|
||||
echo "src/gz $feed_name $feed_uri" >> ${IPKGCONF_TARGET}
|
||||
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
|
||||
}
|
||||
|
||||
python () {
|
||||
|
||||
if d.getVar('BUILD_IMAGES_FROM_FEEDS', True):
|
||||
@@ -60,7 +31,7 @@ python () {
|
||||
flags = flags.replace("do_deploy", "")
|
||||
flags = flags.replace("do_populate_sysroot", "")
|
||||
d.setVarFlag('do_rootfs', 'recrdeptask', flags)
|
||||
d.setVar('OPKG_PREPROCESS_COMMANDS', "ipk_insert_feed_uris")
|
||||
d.setVar('OPKG_PREPROCESS_COMMANDS', "")
|
||||
d.setVar('OPKG_POSTPROCESS_COMMANDS', '')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user