summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--temporary-bootstrap-builder-setup.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/temporary-bootstrap-builder-setup.txt b/temporary-bootstrap-builder-setup.txt
index fb7658e..e0abb4c 100644
--- a/temporary-bootstrap-builder-setup.txt
+++ b/temporary-bootstrap-builder-setup.txt
@@ -362,3 +362,29 @@ Plan for building native system software, including the toolchain:
4. Natively build and install Linux.
5. ???
6. Profit!
+
+
+Set up environment variables to have all further packages built using the cross-
+compiling toolchain.
+ $ cat >> ~/.bashrc <<EOF
+ > export CC=${BBL_TARGET}-gcc
+ > export CXX=${BBL_TARGET}-g++
+ > export AR=${BBL_TARGET}-ar
+ > export AS=${BBL_TARGET}-as
+ > export RANLIB=${BBL_TARGET}-ranlib
+ > export LD=${BBL_TARGET}-ld
+ > export STRIP=${BBL_TARGET}-strip
+ > export READELF=${BBL_TARGET}-readelf
+ > EOF
+ $ source ~/.bashrc
+
+Configure, cross-compile, and install BusyBox.
+TODO: Provide a default configuration.
+ $ cp -pR ${BBL}/../../src/busybox-1.19.3 .
+ $ cd busybox-1.19.3
+ $ make CROSS_COMPILE=${BBL_TARGET}- menuconfig
+ $ make oldconfig
+ $ make CROSS_COMPILE=${BBL_TARGET}-
+ $ make CROSS_COMPILE=${BBL_TARGET}- CONFIG_PREFIX=${BBL} install
+ $ cd ..
+ $ rm -Rf busybox-1.19.3