Post [Q] how to port roms???

hey i want to port a cm7.2 based rom from the GT-S5830 to the GT-S5830i plz help