Changes between Version 3 and Version 4 of Bootstrapping
- Timestamp:
- Sep 28, 2006, 4:24:31 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Bootstrapping
v3 v4 4 4 1. Run kBuild/env.sh to configure the kBuild environment. 5 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 1. If GNU Make v3.81 or later isn't availble, build plain make:6 1. Build plain GNU Make: 7 7 1. Run aclocal, autoconf and automake in src/gmake if needed. 8 8 1. Create and enter src/gmake/obj. 9 9 1. Run ../configure. 10 10 1. Run make 11 1. Copy config.h to src/gmake/config.h.$BUILD_TARGET (or similar, see Makefile.kmk). 11 12 1. We've now got our own make binary which will be used in the next step. 12 1. Build kBuild using GNU Make:13 1. Run kBuild/env.sh to configure the environment properly. 14 1. Go to the root.13 1. Build src/gmake using the GNU Make we just made: 14 15 1. Go to the src/gmake. 15 16 1. make -f Makefile.kmk 17 1. When it breaks fix the compiler / linker error and redo the previous step. 16 18 1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/debug/kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/ to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/. 17 19 1. Build a release build using kmk (which should now be in the path):