In order to build kb, you need to have the n64 toolchain installed.
kb requires libundermine-f3dex This is also provided as a git submodule
via git submodule update --init
To build the libunderime-f3dex submodule run make libum
To build all kb binaries, run make all
to only build a sepecific version run make kb-VERSION
Where VERSION is
kb-NBKJ
The patching scripts will run the building process, so you can skip the building process if you plan on patching.
To build and patch kb run
build/makerom /path/to/vanilla/rom.z64