]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_ipk: implement FEED_DEPLOYDIR_BASE_URI support
authorEric Bénard <eric@eukrea.com>
Tue, 6 Dec 2011 20:19:30 +0000 (21:19 +0100)
committerSaul Wold <sgw@linux.intel.com>
Thu, 8 Dec 2011 08:40:20 +0000 (00:40 -0800)
this feature was present in OE-classic, is documented in OE-core
but its implementation is actually missing.
The present implementation is directly copied from OE-classic
and tested on an arm926 machine.

Signed-off-by: Eric Bénard <eric@eukrea.com>
meta/classes/rootfs_ipk.bbclass

index b4b95c5645b022f9d47c36a4dfe70330cf134466..ec0195159e5929206039d64d1edf8f203328681c 100644 (file)
@@ -205,7 +205,18 @@ ipk_insert_feed_uris () {
 
                # insert new feed-sources
                echo "src/gz $feed_name $feed_uri" >> ${IPKGCONF_TARGET}
-        done
+       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 () {