@rabejens You can find some documentation here:
https://gitlab.com/recalbox/recalbox/wikis/compilation-process
https://buildroot.org/downloads/manual/manual.html
https://gitlab.com/recalbox/recalbox/wikis/writing-a-buildroot-package
https://gitlab.com/recalbox/recalbox/wikis/recalbox-romfs