split build stage1 and tools. tarball funcion