Changes between Version 8 and Version 9 of Bootstrapping


Ignore:
Timestamp:
Dec 17, 2006, 6:53:08 AM (18 years ago)
Author:
bird
Comment:

sed

Legend:

Unmodified
Added
Removed
Modified
  • Bootstrapping

    v8 v9  
    44 1. Run kBuild/env.sh to configure the kBuild environment.
    55 1. Copy unix like tools from you system to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/. kBuild requires all ash, cat, cp, echo, install, ln, mkdir, mv, rm, rmdir and sed. The kBuild copies must be prefixed with {{{kmk_}}}. Some of these tools will be replaced later in the bootstrapping.
    6  1. Build plain GNU Make:
     6 1. Configure and build GNU sed:
     7    1. Go to the src/sed directory.
     8    1. Run aclocal, autoconf and automake in src/sed if needed.
     9    1. Create and enter src/sed/obj.
     10    1. Run ../configure.
     11    1. Run make
     12    1. Copy config.h to src/sed/config.h.$BUILD_TARGET (or similar, see Makefile.kmk).
     13    1. Copy sed/sed[.exe] to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/
     14 1. Configure and build plain GNU Make:
    715    1. Run aclocal, autoconf and automake in src/gmake if needed.
    816    1. Create and enter src/gmake/obj.
     
    1018    1. Run make
    1119    1. Copy config.h to src/gmake/config.h.$BUILD_TARGET (or similar, see Makefile.kmk). Append a dummy definitions for LOCALEDIR, LIBDIR, INCLUDEDIR and ALIASPATH.
    12     1. We've now got our own make binary which will be used in the next step.
     20    1. We've now got our own make binary which will be used further down.
    1321 1. Build src/gmake using the GNU Make we just made:
    14     1. Go to the src/gmake.
     22    1. Go to the src/gmake directory.
    1523    1. make -f Makefile.kmk
    1624    1. When it breaks fix the compiler / linker error and redo the previous step.
    17     1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/debug/kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/ to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/.
    18  1. Build a release build using kmk (which should now be in the path):
     25    1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/ to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/.
     261. Rebuild everything using kmk (which should now be in the path):
    1927    1. Run kBuild/env.sh (or continue in the shell from the previous step).
    2028    1. Go to the root.
    2129    1. kmk BUILD_TYPE=release rebuild
     30    1. Fix build breaks and repeat the previous step.
    2231    1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/ to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/.
    2332 1. Add and commit the changes (including the binaries).