diff options
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 48 |
1 files changed, 42 insertions, 6 deletions
@@ -1,14 +1,50 @@ | |||
1 | Building: | ||
2 | ========= | ||
3 | |||
4 | You will usually build in the source-tree. | ||
5 | |||
6 | Alternatively you can build out-of-tree to have the object files separated | ||
7 | from the source. This allows for building several different configurations | ||
8 | from the same set of sources. | ||
9 | |||
10 | A) Building in the source-tree: | ||
11 | ------------------------------- | ||
12 | |||
1 | 1) Run 'make config' or 'make menuconfig' and select the | 13 | 1) Run 'make config' or 'make menuconfig' and select the |
2 | functionality that you wish to enable. | 14 | functionality that you wish to enable. |
3 | 15 | ||
4 | 2) Run 'make' | 16 | 2) Run 'make' |
5 | 17 | ||
6 | 3) Go get a drink of water, drink a soda, visit the bathroom, | 18 | 3) Run 'make install' or 'make PREFIX=/target install' to |
7 | or whatever while it compiles. It doesn't take very | ||
8 | long to compile, so you don't really need to waste too | ||
9 | much time waiting... | ||
10 | |||
11 | 4) Run 'make install' or 'make PREFIX=/target install' to | ||
12 | install busybox and all the needed links. Some people | 19 | install busybox and all the needed links. Some people |
13 | will prefer to install using hardlinks and will instead | 20 | will prefer to install using hardlinks and will instead |
14 | want to run 'make install-hardlinks'.... | 21 | want to run 'make install-hardlinks'.... |
22 | |||
23 | B) Building out-of-tree: | ||
24 | ------------------------ | ||
25 | |||
26 | 1) make the directory to hold the object files and chdir to it: | ||
27 | 'mkdir /tmp/bb ; cd /tmp/bb' | ||
28 | Then prepare the config giving the full path to the source in top_srcdir: | ||
29 | make top_srcdir=/path/busybox -f /path/busybox/Makefile O=/tmp/b allyesconfig | ||
30 | |||
31 | Note that O=$(pwd) is the default if no O= was specified. | ||
32 | |||
33 | You now have a buildable tree in $O and can run 'make' without the need | ||
34 | to specify any paths. | ||
35 | |||
36 | Proceed with step #A2 above. | ||
37 | |||
38 | |||
39 | Installation: | ||
40 | ============= | ||
41 | |||
42 | After the build is complete, a busybox.links file is generated. This is | ||
43 | used by 'make install' to create symlinks to the BusyBox binary for all | ||
44 | compiled in functions. By default, 'make install' will place the symlink | ||
45 | forest into `pwd`/_install unless you have defined the PREFIX environment | ||
46 | variable (i.e., 'make PREFIX=/tmp/foo install') | ||
47 | |||
48 | If you wish to install hard links, rather than symlinks, you can use | ||
49 | 'make PREFIX=/tmp/foo install-hardlinks' instead. | ||
50 | |||