@alienmancomputer I think this could be useful:
https://docs.ubports.com/en/latest/porting/introduction/index.html