aboutsummaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-05-07 17:33:52 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-22 17:23:39 +0100
commitb637518909f454a88b946de4eae3720efe3b8647 (patch)
treec1b592110632a25a677e4cb623761bef8d2f5148 /documentation
parent3fd21c7df3deff038ba03ae22f890ca5761b955c (diff)
downloadopenembedded-core-contrib-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>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml38
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 @@
</para>
</section>
+ <section id='remove-package-management-requirements'>
+ <title>Remove Package Management Requirements</title>
+
+ <para>
+ Packaging requirements add size to the kernel.
+ One way to reduce the size of the kernel is to remove all the
+ packaging requirements from the image.
+ This reduction includes removing the package manager as well
+ as its dependencies.
+ </para>
+
+ <para>
+ To eliminate all the packaging requirements for an image,
+ follow these steps:
+ <orderedlist>
+ <listitem><para>Put the following line in your main
+ recipe for the image to remove packaging files:
+ <literallayout class='monospaced'>
+ ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ;
+ </literallayout>
+ For example, the recipe for the
+ <filename>core-image-minimal</filename> image contains
+ this line.
+ You can also add the line to the
+ <filename>local.conf</filename> configuration file.
+ </para></listitem>
+ <listitem><para>Be sure that "package-management" is not
+ part of your
+ <ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_FEATURES'><filename>IMAGE_FEATURES</filename></ulink>
+ statement for the image.
+ When you remove this feature, you are removing the
+ package manager as well as its dependencies
+ from the root filesystem.
+ </para></listitem>
+ </orderedlist>
+ </para>
+ </section>
+
<section id='look-for-other-ways-to-minimize-size'>
<title>Look for Other Ways to Minimize Size</title>