]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_rpm.bbclass: NO_RECOMMENDATIONS support
authorMark Hatle <mark.hatle@windriver.com>
Tue, 13 Aug 2013 00:45:48 +0000 (19:45 -0500)
committerSaul Wold <sgw@linux.intel.com>
Thu, 22 Aug 2013 16:15:33 +0000 (09:15 -0700)
Add NO_RECOMMENDATIONS support.  A way to disable all recommended
packages from being installed.  This will help shrink the size of
the resulting filesystem.

Add documentation on NO_RECOMMENDATIONS and BAD_RECOMMENDATIONS.

Note, using NO_RECOMMENDATIONS has side effects such that kernel-modules may
not have been installed.  A user will need to manually add to their image
any kernel-modules required to be on the image for functionality.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package_rpm.bbclass
meta/conf/bitbake.conf
meta/conf/documentation.conf

index cb3ceacbcb31808bcf647207102054f7bba9f63a..b29d3edb2f702a463bc7e432bc7787d70b77a349 100644 (file)
@@ -359,6 +359,9 @@ EOF
                smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp
                package_write_smart_config ${target_rootfs}
                # Do the following configurations here, to avoid them being saved for field upgrade
+               if [ "x${NO_RECOMMENDATIONS}" = "x1" ]; then
+                       smart --data-dir=$1/var/lib/smart config --set ignore-all-recommends=1
+               fi
                for i in ${PACKAGE_EXCLUDE}; do
                        smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i
                done
index 07eb4731902f2ffe3d9fe8d2005f3415481a1dd6..43acc077b8427c8bc643d476a861a101b91c4e6e 100644 (file)
@@ -753,6 +753,7 @@ COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES"
 SERIAL_CONSOLE ??= ""
 SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}"
 
+NO_RECOMMENDATIONS ?= ""
 BAD_RECOMMENDATIONS ?= ""
 
 # Make sure MACHINE isn't exported
index b930611c8b634cc0e41e05152910adfeec0ee3e5..e83981cc516ea70bece229f31b6d12077bf1ba67 100644 (file)
@@ -114,6 +114,9 @@ SYSVINIT_ENABLED_GETTYS[doc] = "Specify which VTs should be running a getty, the
 IPK_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."
 
+BAD_RECOMMENDATIONS[doc] = "List of packages to not install if recommended.  These will still be installed if required."
+NO_RECOMMENDATIONS[doc] = "When set to 1, no recommended packages will be installed.  Note: some recommended packages may be required for certain system functionality, such as kernel-modules.  It is up to the user to add packages to IMAGE_INSTALL as needed."
+
 IMAGE_INSTALL[doc] = "Used by an image recipe to list the packages to be installed.  See PACKAGE_INSTALL."
 
 PACKAGE_EXCLUDE[doc] = "Packages to exclude from the installation, if required an error will be generated."