diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-05-07 17:33:52 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-22 17:23:39 +0100 |
commit | b637518909f454a88b946de4eae3720efe3b8647 (patch) | |
tree | c1b592110632a25a677e4cb623761bef8d2f5148 | |
parent | 3fd21c7df3deff038ba03ae22f890ca5761b955c (diff) | |
download | poky-b637518909f454a88b946de4eae3720efe3b8647.tar.gz |
dev-manual: Created new section to remove packaging requirements
Fixes YOCTO #1706
Added a new subsection to the section that talks about making
a tiny system. The subject matter fits in with reducing a
kernel image size.
(From yocto-docs rev: 51eb79b88794beaefcb88a4408714a88c9126b2b)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index e6696319ec..9e8ee73fe0 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -2804,6 +2804,44 @@ | |||
2804 | </para> | 2804 | </para> |
2805 | </section> | 2805 | </section> |
2806 | 2806 | ||
2807 | <section id='remove-package-management-requirements'> | ||
2808 | <title>Remove Package Management Requirements</title> | ||
2809 | |||
2810 | <para> | ||
2811 | Packaging requirements add size to the kernel. | ||
2812 | One way to reduce the size of the kernel is to remove all the | ||
2813 | packaging requirements from the image. | ||
2814 | This reduction includes removing the package manager as well | ||
2815 | as its dependencies. | ||
2816 | </para> | ||
2817 | |||
2818 | <para> | ||
2819 | To eliminate all the packaging requirements for an image, | ||
2820 | follow these steps: | ||
2821 | <orderedlist> | ||
2822 | <listitem><para>Put the following line in your main | ||
2823 | recipe for the image to remove packaging files: | ||
2824 | <literallayout class='monospaced'> | ||
2825 | ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; | ||
2826 | </literallayout> | ||
2827 | For example, the recipe for the | ||
2828 | <filename>core-image-minimal</filename> image contains | ||
2829 | this line. | ||
2830 | You can also add the line to the | ||
2831 | <filename>local.conf</filename> configuration file. | ||
2832 | </para></listitem> | ||
2833 | <listitem><para>Be sure that "package-management" is not | ||
2834 | part of your | ||
2835 | <ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></ulink> | ||
2836 | statement for the image. | ||
2837 | When you remove this feature, you are removing the | ||
2838 | package manager as well as its dependencies | ||
2839 | from the root filesystem. | ||
2840 | </para></listitem> | ||
2841 | </orderedlist> | ||
2842 | </para> | ||
2843 | </section> | ||
2844 | |||
2807 | <section id='look-for-other-ways-to-minimize-size'> | 2845 | <section id='look-for-other-ways-to-minimize-size'> |
2808 | <title>Look for Other Ways to Minimize Size</title> | 2846 | <title>Look for Other Ways to Minimize Size</title> |
2809 | 2847 | ||