Changes between Version 8 and Version 9 of Bootstrapping
- Timestamp:
- Dec 17, 2006, 6:53:08 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Bootstrapping
v8 v9 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.$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: 7 15 1. Run aclocal, autoconf and automake in src/gmake if needed. 8 16 1. Create and enter src/gmake/obj. … … 10 18 1. Run make 11 19 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. 13 21 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. 15 23 1. make -f Makefile.kmk 16 24 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 buildusing 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/. 26 1. Rebuild everything using kmk (which should now be in the path): 19 27 1. Run kBuild/env.sh (or continue in the shell from the previous step). 20 28 1. Go to the root. 21 29 1. kmk BUILD_TYPE=release rebuild 30 1. Fix build breaks and repeat the previous step. 22 31 1. Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/ to kBuild/bin/$BUILD_TARGET.$BUILD_TARGET_ARCH/. 23 32 1. Add and commit the changes (including the binaries).