Before porting you should have your system folder[unpacked] and PORT-ROM ready. So assuming that is done.. do the following.
replace these files in BIN from stock to port :
akmd09911
applysig
audiocmdservice_atci
factory
gzip_static
kpoc_charger
vold
replace these files in ETC from stock to port :
firmware folder
mddb folder
bluetooth
wifi
replace these files/folders in LIB from stock to port :
Entire HW folder [ do not delete port first, just replace ]
Entire Soundfx folder
libcamalgo.so
libcamdrv.so
libcamdrv_FrmB.so
libcamera_metadata.so
libcameracustom.so
libvcodecdrv.so
FOR Boot.img :
Unpack stock and port boot img and
Replace Kernel From Stock To Port boot img
zip ROM folder and flash
Expect a rom that boots!!