Steps to use precompiled toolchain instead of compiling one for every fresh build

I want to use precompiled toolchain, instead for building it from scratch for every clean (targetclean/distclean) build. I want to optimize the compile time. Please help

You do not have to compile the toolchain for each build, at least I do not do that.

3 Likes

Only targetclean, distclean, and dirclean should clear the directories /build_dir/toolchain* and /staging_dir/toolchain*.

Perhaps you can describe in a bit more detail what you're trying to do and where the recompilation is kicking in?

For the first time I compile the code, toolchain is getting compiled. Or if I do targetclean/distclean. The thing is I want to commit the compiled toolchain to keep it remain static and do not want it to get compiled again, even with targetclean.
Do we have any better way to do this ?

You can look in make menuconfig/nconfig Advanced configuration options (for developers) and see if Use external toolchain might be of use to you.