aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2014-09-24 13:03:33 +0200
committerPaul Barker <paul@paulbarker.me.uk>2015-02-01 13:52:25 +0000
commitd29dcdfcdad439b7e66bf7af83eb07fb1d488242 (patch)
treee7756d98c5e8812d846c5178aa35aad3dc6bab5b
parent7dbde4bc466665cd628538db0df96c01f42a5bbd (diff)
downloadopenembedded-core-contrib-pbarker/opkg-v0.3.0-rc2.tar.gz
opkg: Pass '--volatile-cache' when building rootfspbarker/opkg-v0.3.0-rc2
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 <paul@paulbarker.me.uk>
-rw-r--r--meta/lib/oe/package_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 96fae57872..2eda48483e 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)