Changes between Initial Version and Version 1 of BoostrappingOld


Ignore:
Timestamp:
Jul 15, 2007, 3:46:41 PM (17 years ago)
Author:
bird
Comment:

Moved old stuff

Legend:

Unmodified
Added
Removed
Modified
  • BoostrappingOld

    v1 v1  
     1
     2== The OLD Bootstrap Procedure (before r95x) ==
     3
     4 1. Modify env.sh to accept the uname output.
     5 1. Modify header.kmk to accept and correctly configure the platform / target OS.
     6 1. Run kBuild/env.sh to configure the kBuild environment.
     7 1. Copy unix like tools from you system to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/. kBuild requires all ash (bash is recommended), cat, cp, echo, install, ln, mkdir, mv, rm, rmdir and (gnu) sed. The kBuild copies must be prefixed with {{{kmk_}}}. These tools will be replaced later in the bootstrapping.
     8 1. Configure and build GNU sed:
     9    1. Go to the src/sed directory.
     10    1. Run aclocal, autoconf and automake in src/sed if needed.
     11    1. Create and enter src/sed/obj.
     12    1. Run ../configure --disable-nls.
     13    1. Run make
     14    1. Copy config.h to src/sed/config.h.$BUILD_TARGET (or similar, see Makefile.kmk).
     15    1. Copy sed/sed[.exe] to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/kmk_sed[.exe].
     16 1. Configure and build plain GNU Make:
     17    1. Run aclocal, autoconf and automake in src/gmake if needed.
     18    1. Create and enter src/gmake/obj.
     19    1. Run ../configure --disable-nls.
     20    1. Run make
     21    1. Copy config.h to src/gmake/config.h.$BUILD_TARGET (or similar, see Makefile.kmk). Append empty string #defines for LOCALEDIR, LIBDIR, INCLUDEDIR and ALIASPATH (see config.h.linux).
     22    1. We've now got our own make binary which will be used further down.
     23 1. Build src/gmake using the GNU Make we just made:
     24    1. Go to the src/gmake directory.
     25    1. obj/make -f Makefile.kmk
     26    1. When it breaks fix the compiler / linker error and redo the previous step.
     27    1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/ to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/.
     28 1. Rebuild everything using kmk (which should now be in the path):
     29    1. Run kBuild/env.sh (or continue in the shell from the previous step).
     30    1. Go to the root.
     31    1. kmk BUILD_TYPE=release rebuild
     32    1. Fix build breaks and repeat the previous step.
     33    1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/ to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/.
     34 1. Add and commit the changes (including the binaries).
     35
     36Note! On GNU/Linux make sure you have a real yacc install. GNU bison is not sufficiently compatible with yacc to make src/ash (from NetBSD) happy.