Version 2 (modified by 18 years ago) ( diff ) | ,
---|
Bootstrapping steps:
- Modify env.sh to accept the uname output.
- Modify header.kmk to accept and correctly configure the platform / target OS.
- Run kBuild/env.sh to configure the kBuild environment.
- 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.
- If GNU Make v3.81 or later isn't availble, build plain make:
- Run aclocal, autoconf and automake in src/gmake if needed.
- Create and enter src/gmake/obj.
- Run ../configure.
- Run make
- We've now got our own make binary which will be used in the next step.
- Build kBuild using GNU Make:
- Run kBuild/env.sh to configure the environment properly.
- Go to the root.
- make -f Makefile.kmk
- Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/debug/kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/ to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/.
- Build a release build using kmk (which should now be in the path):
- Run kBuild/env.sh (or continue in the shell from the previous step).
- Go to the root.
- kmk BUILD_TYPE=release
- Copy out/$BUILD_TARGET.$BUILD_TARGET_ARCH/release/kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/ to kBuild/bin/$BUILD_TARGET_ARCH.$BUILD_TARGET/.
- Add and commit the changes (including the binaries).
Note:
See TracWiki
for help on using the wiki.