[e666df1] | 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" [
|
---|
[e666df1] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-busybox" role="wrap">
|
---|
| 9 | <?dbhtml filename="busybox.html"?>
|
---|
| 10 |
|
---|
[364d698] | 11 | <title>BusyBox-&busybox-version;</title>
|
---|
[e666df1] | 12 |
|
---|
| 13 | <indexterm zone="ch-system-busybox">
|
---|
[364d698] | 14 | <primary sortas="a-BusyBox">BusyBox</primary>
|
---|
[e666df1] | 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
[537fc5a] | 20 | <para>BusyBox combines tiny versions of many common UNIX utilities into a
|
---|
| 21 | single small executable. It provides replacements for most of the utilities
|
---|
| 22 | you usually find in GNU fileutils, shellutils, etc. The utilities in
|
---|
| 23 | BusyBox generally have fewer options than their full-featured GNU cousins;
|
---|
| 24 | however, the options that are included provide the expected functionality
|
---|
| 25 | and behave very much like their GNU counterparts. BusyBox provides
|
---|
[e666df1] | 26 | a fairly complete environment for any small or embedded system.</para>
|
---|
| 27 |
|
---|
| 28 | </sect2>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="installation">
|
---|
[364d698] | 31 | <title>Installation of BusyBox</title>
|
---|
[e666df1] | 32 |
|
---|
[6280230] | 33 | <para os="a">First ensure the BusyBox source is completely clean:</para>
|
---|
[e666df1] | 34 |
|
---|
[6280230] | 35 | <screen os="b"><userinput>make distclean</userinput></screen>
|
---|
| 36 |
|
---|
[76135be] | 37 | <note os="e"> <para>We tell BusyBox to use the generic defconfig. For those
|
---|
| 38 | for more adventurous, you can use <command>make menuconfig</command>,
|
---|
| 39 | and create a custom or modified configuration for your build.</para>
|
---|
[3800899] | 40 | </note>
|
---|
| 41 |
|
---|
[76135be] | 42 | <para os="f">The following tells BusyBox to use the default
|
---|
| 43 | configuration:</para>
|
---|
[de798fc] | 44 |
|
---|
[76135be] | 45 | <screen os="g"><userinput>ARCH="${CLFS_ARCH}" make defconfig</userinput></screen>
|
---|
[e666df1] | 46 |
|
---|
[d22b691] | 47 | <para os="fa">Disable building both ifplugd and inetd as they both have
|
---|
[dd423a0] | 48 | issues building against musl:</para>
|
---|
[d22b691] | 49 |
|
---|
| 50 | <screen os="fb"><userinput>sed -i 's/\(CONFIG_\)\(.*\)\(INETD\)\(.*\)=y/# \1\2\3\4 is not set/g' .config
|
---|
| 51 | sed -i 's/\(CONFIG_IFPLUGD\)=y/# \1 is not set/' .config</userinput></screen>
|
---|
| 52 |
|
---|
[6280230] | 53 | <para os="h">Compile the package:</para>
|
---|
[e666df1] | 54 |
|
---|
[76135be] | 55 | <screen os="i"><userinput>ARCH="${CLFS_ARCH}" CROSS_COMPILE="${CLFS_TARGET}-" make</userinput></screen>
|
---|
[e666df1] | 56 |
|
---|
[6280230] | 57 | <para os="j">Install the package:</para>
|
---|
[e666df1] | 58 |
|
---|
[76135be] | 59 | <screen os="k"><userinput>ARCH="${CLFS_ARCH}" CROSS_COMPILE="${CLFS_TARGET}-" make \
|
---|
[3450c8f] | 60 | CONFIG_PREFIX="${CLFS}/targetfs" install</userinput></screen>
|
---|
[e666df1] | 61 |
|
---|
[6280230] | 62 | <para os="l">If you're going to build your kernel with modules, you will need
|
---|
[537fc5a] | 63 | to make sure <command>depmod.pl</command> is available:</para>
|
---|
[f23b5ee] | 64 |
|
---|
[6280230] | 65 | <screen os="m"><userinput>cp examples/depmod.pl ${CLFS}/cross-tools/bin
|
---|
[0ed1461] | 66 | chmod 755 ${CLFS}/cross-tools/bin/depmod.pl</userinput></screen>
|
---|
[f23b5ee] | 67 |
|
---|
[e666df1] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 id="contents-busybox" role="content">
|
---|
[364d698] | 71 | <title>Contents of BusyBox</title>
|
---|
[e666df1] | 72 |
|
---|
| 73 | <segmentedlist>
|
---|
| 74 | <segtitle>Installed programs</segtitle>
|
---|
| 75 |
|
---|
| 76 | <seglistitem>
|
---|
| 77 | <seg>To be Written</seg>
|
---|
| 78 | </seglistitem>
|
---|
| 79 | </segmentedlist>
|
---|
| 80 |
|
---|
| 81 | <!--
|
---|
| 82 | <variablelist>
|
---|
| 83 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 84 | <?dbfo list-presentation="list"?>
|
---|
| 85 | <?dbhtml list-presentation="table"?>
|
---|
| 86 |
|
---|
| 87 | <varlistentry id="bash">
|
---|
| 88 | <term><command>bash</command></term>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>A widely-used command interpreter; it performs many types of
|
---|
| 91 | expansions and substitutions on a given command line before executing
|
---|
| 92 | it, thus making this interpreter a powerful tool</para>
|
---|
| 93 | <indexterm zone="ch-system-bash bash">
|
---|
| 94 | <primary sortas="b-bash">bash</primary>
|
---|
| 95 | </indexterm>
|
---|
| 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
| 98 |
|
---|
| 99 | <varlistentry id="bashbug">
|
---|
| 100 | <term><command>bashbug</command></term>
|
---|
| 101 | <listitem>
|
---|
| 102 | <para>A shell script to help the user compose and mail standard
|
---|
| 103 | formatted bug reports concerning <command>bash</command></para>
|
---|
| 104 | <indexterm zone="ch-system-bash bashbug">
|
---|
| 105 | <primary sortas="b-bashbug">bashbug</primary>
|
---|
| 106 | </indexterm>
|
---|
| 107 | </listitem>
|
---|
| 108 | </varlistentry>
|
---|
| 109 |
|
---|
| 110 | <varlistentry id="sh">
|
---|
| 111 | <term><command>sh</command></term>
|
---|
| 112 | <listitem>
|
---|
| 113 | <para>A symlink to the <command>bash</command> program; when invoked
|
---|
| 114 | as <command>sh</command>, <command>bash</command> tries to mimic the
|
---|
| 115 | startup behavior of historical versions of <command>sh</command> as
|
---|
| 116 | closely as possible, while conforming to the POSIX standard as
|
---|
| 117 | well</para>
|
---|
| 118 | <indexterm zone="ch-system-bash sh">
|
---|
| 119 | <primary sortas="b-sh">sh</primary>
|
---|
| 120 | </indexterm>
|
---|
| 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
| 123 |
|
---|
| 124 | </variablelist>
|
---|
| 125 | -->
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | </sect1>
|
---|