make menuconfig # This creates a file called ".config"
make # This creates the "busybox" executable
- make install # or make PREFIX=/path/from/root install
+ make install # or make CONFIG_PREFIX=/path/from/root install
The full list of configuration and install options is available by typing:
make O=/some/empty/directory allyesconfig
cd /some/empty/directory
make
- make PREFIX=. install
+ make CONFIG_PREFIX=. install
More Information:
=================
@echo ' make SED="$(objtree)/sed"'
@echo
@echo 'Installation:'
- @echo ' install - install busybox into $(PREFIX)'
+ @echo ' install - install busybox into $(CONFIG_PREFIX)'
@echo ' uninstall'
@echo
@echo 'Development:'
The build automatically generates a file "busybox.links", which is used by
'make install' to create symlinks to the BusyBox binary for all compiled in
- commands. This uses the PREFIX environment variable to specify where to
- install, and installs hardlinks or symlinks depending on the configuration
- preferences. (You can also manually run the install script at
- "applets/install.sh").
+ commands. This uses the CONFIG_PREFIX environment variable to specify
+ where to install, and installs hardlinks or symlinks depending
+ on the configuration preferences. (You can also manually run
+ the install script at "applets/install.sh").
----------------
After the compile has finished, you should use 'make install' to install
BusyBox. This will install the 'bin/busybox' binary, in the target directory
-specified by PREFIX. PREFIX can be set when configuring BusyBox, or you can
-specify an alternative location at install time (i.e., with a command line
-like 'make PREFIX=/tmp/foo install'). If you enabled any applet installation
-scheme (either as symlinks or hardlinks), these will also be installed in
-the location pointed to by PREFIX.
+specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox,
+or you can specify an alternative location at install time (i.e., with a
+command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled
+any applet installation scheme (either as symlinks or hardlinks), these will
+also be installed in the location pointed to by CONFIG_PREFIX.
=head1 USAGE
- Install the Busybox binary and accompanying symlinks:
(chdir to busybox directory)
- make PREFIX=(path to)loop/ install
+ make CONFIG_PREFIX=(path to)loop/ install
- Make device files in /dev:
cd $BUSYBOX_DIR
make distclean
make CC=$BASE_DIR/$UCLIBC_DIR/extra/gcc-uClibc/i386-uclibc-gcc
-make PREFIX=$BASE_DIR/$TARGET_DIR install
+make CONFIG_PREFIX=$BASE_DIR/$TARGET_DIR install
cd $BASE_DIR
%Install
rm -rf $RPM_BUILD_ROOT
-make PREFIX=$RPM_BUILD_ROOT install
+make CONFIG_PREFIX=$RPM_BUILD_ROOT install
%Clean
rm -rf $RPM_BUILD_ROOT