From b8272d51e4026f401fe61f7e34c8206dc13be396 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 07 Jan 2012 00:22:50 -0500 Subject: Add toolchain variable and BusyBox build notes. --- 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 < 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 -- cgit v0.9.1