Add bash functions for building the toolchains