Last change
on this file since dc5342b was 489ddbd, checked in by Jim Gifford <clfs@…>, 16 years ago |
Text updates. Removed uneeded Patch
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[8520e58] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[8520e58] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-cleanup-remove-files">
|
---|
| 9 | <?dbhtml filename="remove-files.html"?>
|
---|
| 10 |
|
---|
[7884e98] | 11 | <title>Remove Unnecessary Files</title>
|
---|
[8520e58] | 12 |
|
---|
| 13 | <para>Well we have this system finished, we can make it smaller by
|
---|
| 14 | removing files that are not necessary for our build. On this page
|
---|
| 15 | we remove the bloat from our build.</para>
|
---|
| 16 |
|
---|
[7884e98] | 17 | <para>Now let's create a backup of our build:</para>
|
---|
[8520e58] | 18 |
|
---|
| 19 | <screen><userinput>install -dv ${CLFS}-final
|
---|
| 20 | cp -arv ${CLFS}/* ${CLFS}-final/</userinput></screen>
|
---|
| 21 |
|
---|
[7884e98] | 22 | <para>Let's remove the files we don't need anymore:</para>
|
---|
[8520e58] | 23 |
|
---|
| 24 | <screen><userinput>rm -rfv ${CLFS}-final/cross-tools
|
---|
| 25 | rm -rfv ${CLFS}-final/usr/src/*
|
---|
| 26 | rm -rfv ${CLFS}-final/usr/include
|
---|
[3ca2208] | 27 | rm -rfv ${CLFS}-final/usr/man
|
---|
[8520e58] | 28 | rm -rfv ${CLFS}-final/usr/share/man</userinput></screen>
|
---|
| 29 |
|
---|
[7884e98] | 30 | <para>Let's remove the static libaries:</para>
|
---|
[8520e58] | 31 |
|
---|
[489ddbd] | 32 | <screen><userinput>FILES="$(ls ${CLFS}-final/lib/*.a ${CLFS}-final/usr/lib/*.a)"
|
---|
[8520e58] | 33 | for file in $FILES; do
|
---|
[489ddbd] | 34 | rm -fv $file
|
---|
[8520e58] | 35 | done</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.