Please check the imagebuilders. Even you have the .config you will not be able to generate the same firmware as our stock firmware.
But you can compile a clean firmware with only the packages you need.