How to use your own repo

I can build with the fenix scripts, but they download the code from the Khadas repos. My company needs me to store the code in our local repos and develop and build locally so that we can control our own build process. As far as I can tell, the fenix scripts are not set up for this.

Has anyone had any experience setting up their own builds locally? Do you have to throw out the fenix scripts and write your own or is there an easier way?

Thanks for your help.