Default Porting Roms

How difficult would it be to port over a rom from a different variant? What would I have to change?

Sent from my SM-N900P using xda app-developers app