Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/INSTALL

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 532 by niro, Sat Sep 1 22:45:15 2007 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 5  The BusyBox build process is similar to Line 5  The BusyBox build process is similar to
5    
6    make menuconfig     # This creates a file called ".config"    make menuconfig     # This creates a file called ".config"
7    make                # This creates the "busybox" executable    make                # This creates the "busybox" executable
8    make install        # or make PREFIX=/path/from/root install    make install        # or make CONFIG_PREFIX=/path/from/root install
9    
10  The full list of configuration and install options is available by typing:  The full list of configuration and install options is available by typing:
11    
# Line 19  it, is to enable all features and then u Line 19  it, is to enable all features and then u
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    
# Line 104  somewhere else. Line 117  somewhere else.
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    
# Line 114  configuration step, as in: Line 127  configuration step, as in:
127    make O=/some/empty/directory allyesconfig    make O=/some/empty/directory allyesconfig
128    cd /some/empty/directory    cd /some/empty/directory
129    make    make
130    make PREFIX=. install    make CONFIG_PREFIX=. install
131    
132  More Information:  More Information:
133  =================  =================
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.  

Legend:
Removed from v.532  
changed lines
  Added in v.984