From: Paul Barker Date: Wed, 24 Sep 2014 11:03:33 +0000 (+0200) Subject: opkg: Pass '--volatile-cache' when building rootfs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fpbarker%2Fopkg-v0.3.0-rc2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git opkg: Pass '--volatile-cache' when building rootfs The '--volatile-cache' argument is passed to opkg when building the root filesystem to ensure that the cache of downloaded packages is cleared out when opkg finishes installing packages. Without this option, stale packages and links may be left in the cache, increasing the size of the generated filesystem. Signed-off-by: Paul Barker --- diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 96fae578726..2eda48483e5 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -1189,7 +1189,7 @@ class OpkgPM(PackageManager): self.deploy_dir = self.d.getVar("DEPLOY_DIR_IPK", True) self.deploy_lock_file = os.path.join(self.deploy_dir, "deploy.lock") self.opkg_cmd = bb.utils.which(os.getenv('PATH'), "opkg") - self.opkg_args = "-f %s -o %s " % (self.config_file, target_rootfs) + self.opkg_args = "-f %s -o %s --volatile-cache " % (self.config_file, target_rootfs) self.opkg_args += self.d.getVar("OPKG_ARGS", True) opkg_lib_dir = self.d.getVar('OPKGLIBDIR', True)