diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2013-08-12 19:45:48 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-22 18:30:00 +0100 |
commit | 7ba54b91f8c18910569e97a857d77745ff7a2157 (patch) | |
tree | fc048af04229a9c76a8df5eee3fe42cae5500d5e /meta/classes/package_rpm.bbclass | |
parent | 33a3eac5a05443451fef8b6cfecabf773bdedbb8 (diff) | |
download | poky-7ba54b91f8c18910569e97a857d77745ff7a2157.tar.gz |
package_rpm.bbclass: NO_RECOMMENDATIONS support
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.
(From OE-Core rev: 0341bfa886ea851f5a394051545b4e624d8003dd)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index cb3ceacbcb..b29d3edb2f 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -359,6 +359,9 @@ EOF | |||
359 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp | 359 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp |
360 | package_write_smart_config ${target_rootfs} | 360 | package_write_smart_config ${target_rootfs} |
361 | # Do the following configurations here, to avoid them being saved for field upgrade | 361 | # Do the following configurations here, to avoid them being saved for field upgrade |
362 | if [ "x${NO_RECOMMENDATIONS}" = "x1" ]; then | ||
363 | smart --data-dir=$1/var/lib/smart config --set ignore-all-recommends=1 | ||
364 | fi | ||
362 | for i in ${PACKAGE_EXCLUDE}; do | 365 | for i in ${PACKAGE_EXCLUDE}; do |
363 | smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i | 366 | smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i |
364 | done | 367 | done |