From 19c538f57c8fa7c566e88a6dbe13ea4826d4f26c Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Wed, 5 Feb 2014 11:08:34 +0200 Subject: rootfs.py, package_manager.py, sdk.py: Fix building from feeds feature for opkg When using opkg as the PM backend, one has the option to provide custom feeds to create the rootfs from. This commit: * fixes this in the refactored code; * moves the custom config creation code to python; * clean up the package-ipk.bbclass; Signed-off-by: Laurentiu Palcu --- meta/lib/oe/rootfs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meta/lib/oe/rootfs.py') diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 95c275875f..7455a865a4 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -534,8 +534,9 @@ class OpkgRootfs(Rootfs): opkg_post_process_cmds = self.d.getVar('OPKG_POSTPROCESS_COMMANDS', True) rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND', True) - # update PM index files - self.pm.write_index() + # update PM index files, unless users provide their own feeds + if (self.d.getVar('BUILD_IMAGES_FROM_FEEDS', True) or "") != "1": + self.pm.write_index() execute_pre_post_process(self.d, opkg_pre_process_cmds) -- cgit v1.2.3