summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-07 00:22:50 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-07 00:24:48 (EST)
commitb8272d51e4026f401fe61f7e34c8206dc13be396 (patch)
tree1e7111d2b837a6ee9f90380d5763d99f647ef86a
parent6b9a031ce4df3d911ed8bf07ce753cf306c0286f (diff)
Add toolchain variable and BusyBox build notes.
-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