19 |
blank command $PATH. |
blank command $PATH. |
20 |
|
|
21 |
To enable all features, use "make defconfig", which produces the largest |
To enable all features, use "make defconfig", which produces the largest |
22 |
general-purpose configuration. (It's allyesconfig minus debugging options, |
general-purpose configuration. It's allyesconfig minus debugging options, |
23 |
optional packaging choices, and a few special-purpose features requiring |
optional packaging choices, and a few special-purpose features requiring |
24 |
extra configuration to use.) |
extra configuration to use. Then enable "standalone shell" feature: |
25 |
|
|
26 |
make defconfig |
make defconfig |
27 |
|
make menuconfig |
28 |
|
# select Busybox Settings |
29 |
|
# then General Configuration |
30 |
|
# then exec prefers applets |
31 |
|
# exit back to top level menu |
32 |
|
# select Shells |
33 |
|
# then Standalone shell |
34 |
|
# exit back to top level menu |
35 |
|
# exit and save new configuration |
36 |
|
# OR |
37 |
|
# use these commands to modify .config directly: |
38 |
|
sed -e 's/.*FEATURE_PREFER_APPLETS.*/CONFIG_FEATURE_PREFER_APPLETS=y/' -i .config |
39 |
|
sed -e 's/.*FEATURE_SH_STANDALONE.*/CONFIG_FEATURE_SH_STANDALONE=y/' -i .config |
40 |
make |
make |
41 |
PATH= ./busybox ash |
PATH= ./busybox ash |
42 |
|
|
117 |
|
|
118 |
To build out of tree, cd to an empty directory and configure busybox from there: |
To build out of tree, cd to an empty directory and configure busybox from there: |
119 |
|
|
120 |
make -f /path/to/source/Makefile defconfig |
make KBUILD_SRC=/path/to/source -f /path/to/source/Makefile defconfig |
121 |
make |
make |
122 |
make install |
make install |
123 |
|
|
134 |
|
|
135 |
Se also the busybox FAQ, under the questions "How can I get started using |
Se also the busybox FAQ, under the questions "How can I get started using |
136 |
BusyBox" and "How do I build a BusyBox-based system?" The BusyBox FAQ is |
BusyBox" and "How do I build a BusyBox-based system?" The BusyBox FAQ is |
137 |
available from http://www.busybox.net/FAQ.html or as the file |
available from http://www.busybox.net/FAQ.html |
|
docs/busybox.net/FAQ.html in this tarball. |
|