Finish build-kernel script.