diff options
author | Filip Zyzniewski <filip.zyzniewski@gmail.com> | 2011-02-15 02:01:30 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-02-14 11:20:44 -0700 |
commit | 3a11e3464d088fd8122cd43df647c984aa6dcc19 (patch) | |
tree | 128474fcbdebe72b14a6895b7a4b6aa4f8335009 /classes/image.bbclass | |
parent | c751c1912990465f908bc31efd8a64228a014e41 (diff) | |
download | openembedded-3a11e3464d088fd8122cd43df647c984aa6dcc19.tar.gz |
image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass
This function generates feed configuration for opkg and as such
should be used only for images using ipk, not rpm or deb.
Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r-- | classes/image.bbclass | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index 9765442206..962161410f 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -172,9 +172,6 @@ fakeroot do_rootfs () { rootfs_${IMAGE_PKGTYPE}_do_rootfs - [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ] && \ - insert_feed_uris - ${IMAGE_PREPROCESS_COMMAND} ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE} + $1; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` @@ -194,35 +191,6 @@ do_deploy_to () { cp "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${IMAGE_FSTYPES}" ${DEPLOY_TO} } -insert_feed_uris () { - - echo "Building feeds for [${DISTRO}].." - - for line in ${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" >> ${IMAGE_ROOTFS}/etc/opkg/${feed_name}-feed.conf - 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 -} - log_check() { set +x for target in $* |