]> git.openpandora.org Git - openembedded.git/commitdiff
image.bbclass: Add FEED_DEPLOYDIR_BASE_URI to use deploy dir a feed ("bogofeed").
authorPaul Sokolovsky <pmiscml@gmail.com>
Sat, 22 Dec 2007 12:32:40 +0000 (12:32 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Sat, 22 Dec 2007 12:32:40 +0000 (12:32 +0000)
* If set to a base URL of ipk deploy dir as exported by HTTP/FTP, it will create
set of feed configs to use deploy subdirs as feeds.

classes/image.bbclass
conf/documentation.conf

index 312307c8316bfc7a997e8f8e503fd34c7d4283fd..ca9c9458e1e8c322d7515063e94938b3272a4042 100644 (file)
@@ -125,6 +125,17 @@ insert_feed_uris () {
                # insert new feed-sources
                echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/ipkg/${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/ipkg/local-$arch-feed.conf
+           done
+       fi
 }
 
 log_check() {
index 96a292b9d78c848288a539487b057d280bc71d4e..6c71bc00c71920ee9e63f44bc5ebbad2f99b4589 100644 (file)
@@ -103,6 +103,9 @@ PCMCIA_MANAGER[doc] = "Specify which package(s) to install to handle PCMCIA slot
 
 SYSVINIT_ENABLED_GETTYS[doc] = "Specify which VTs should be running a getty, the default is 1"
 
+FEED_URIS[doc] = "List of ipkg feed records to put into generated image."
+FEED_DEPLOYDIR_BASE_URI[doc] = "Allow to serve ipk deploy dir as an adhoc feed (bogofeed). Set to base URL of the dir as exported by HTTP. Set of adhoc feed configs will be generated in image."
+
 # insane bbclass
 QA_LOG[doc] = "Enable logging of QA errors to log.qa_package. Default is not to log."