aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfs.py
diff options
context:
space:
mode:
authorDavid Nyström <david.c.nystrom@gmail.com>2014-02-27 21:20:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-07 15:04:35 +0000
commit9b8811045546ad67b4695d980f09636d5506e50c (patch)
tree599e4c70d1a486a841de45cb75a62e40f347e45f /meta/lib/oe/rootfs.py
parent148c04c1bf39ca0d21288fdce61c51dc8e1c3226 (diff)
downloadopenembedded-core-9b8811045546ad67b4695d980f09636d5506e50c.tar.gz
do_rootfs: Added PACKAGE_FEED_URIS functionality
Adding a common interface to add predefined package manager channels to prebuilt rootfs:es. Adding PACKAGE_FEED_URIS = "http://myre.po/repo/, will assume repo directories named (rpm,ipk,deb) as subdirectories and statically add them to the rootfs, using the same PKG_ARCHs as the build which produced the images. Tested with RPM, IPK and DEB. deb feed functionality seem broken, is anyone using this ? Signed-off-by: David Nyström <david.c.nystrom@gmail.com> Signed-off-by: David Nyström <david.nystrom@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r--meta/lib/oe/rootfs.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 90c0504b31..30a1321db1 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -41,9 +41,10 @@ class Rootfs(object):
def _log_check(self):
pass
- @abstractmethod
def _insert_feed_uris(self):
- pass
+ if base_contains("IMAGE_FEATURES", "package-management",
+ True, False, self.d):
+ self.pm.insert_feeds_uris()
@abstractmethod
def _handle_intercept_failure(self, failed_script):
@@ -349,9 +350,6 @@ class RpmRootfs(Rootfs):
if found_error == 6:
bb.fatal(message)
- def _insert_feed_uris(self):
- pass
-
def _handle_intercept_failure(self, registered_pkgs):
rpm_postinsts_dir = self.image_rootfs + self.d.expand('${sysconfdir}/rpm-postinsts/')
bb.utils.mkdirhier(rpm_postinsts_dir)
@@ -372,6 +370,7 @@ class DpkgRootfs(Rootfs):
d.getVar('PACKAGE_ARCHS', True),
d.getVar('DPKG_ARCH', True))
+
def _create(self):
pkgs_to_install = self.manifest.parse_initial_manifest()
@@ -432,9 +431,6 @@ class DpkgRootfs(Rootfs):
def _log_check(self):
pass
- def _insert_feed_uris(self):
- pass
-
class OpkgRootfs(Rootfs):
def __init__(self, d, manifest_dir):
@@ -698,10 +694,6 @@ class OpkgRootfs(Rootfs):
def _log_check(self):
pass
- def _insert_feed_uris(self):
- pass
-
-
def create_rootfs(d, manifest_dir=None):
env_bkp = os.environ.copy()