build the repository framework for a submodule build