Changes between Version 1 and Version 2 of Bootstrapping


Ignore:
Timestamp:
Sep 28, 2006, 3:57:44 PM (18 years ago)
Author:
bird
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Bootstrapping

    v1 v2  
    11Bootstrapping steps:
    2   1. Modify env.sh to accept the uname output.
    3   1. Modify header.kmk to accept and correctly configure the platform / target OS.
    4   1. If GNU Make v3.81 or later isn't availble, build plain make:
    5       1. Run aclocal, autoconf and automake in src/gmake if needed.
    6       1. Create and enter src/gmake/obj.
    7       1. Run ../configure.
    8       1. Run make
    9       1. We've now got our own make binary which will be used in the next step.
    10   1. Build kBuild using GNU Make:
    11       1. Run kBuild/env.sh to configure the environment properly.
    12       1. Go to the root.
    13       1. make -f Makefile.kmk
    14       1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/debug/kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/ to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/.
    15    1. Build a release build using kmk (which should now be in the path):
    16       1. Run kBuild/env.sh (or continue in the shell from the previous step).
    17       1. Go to the root.
    18       1. kmk BUILD_TYPE=release
    19       1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/ to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/.
    20    1. Add and commit the changes (including the binaries).
     2 1. Modify env.sh to accept the uname output.
     3 1. Modify header.kmk to accept and correctly configure the platform / target OS.
     4 1. Run kBuild/env.sh to configure the kBuild environment.
     5 1. Copy unix like tools from you system to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/. kBuild requires all ash, cat, cp, echo, install, ln, mkdir, mv, rm and sed. The kBuild copies must be prefixed with {{{kmk_}}}. Some of these tools will be replaced later in the bootstrapping.
     6   
     7 1. If GNU Make v3.81 or later isn't availble, build plain make:
     8    1. Run aclocal, autoconf and automake in src/gmake if needed.
     9    1. Create and enter src/gmake/obj.
     10    1. Run ../configure.
     11    1. Run make
     12    1. We've now got our own make binary which will be used in the next step.
     13 1. Build kBuild using GNU Make:
     14    1. Run kBuild/env.sh to configure the environment properly.
     15    1. Go to the root.
     16    1. make -f Makefile.kmk
     17    1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/debug/kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/ to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/.
     18 1. Build a release build using kmk (which should now be in the path):
     19    1. Run kBuild/env.sh (or continue in the shell from the previous step).
     20    1. Go to the root.
     21    1. kmk BUILD_TYPE=release
     22    1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/ to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/.
     23 1. Add and commit the changes (including the binaries).