this Porting Guide CM Based ROMs for MT67XX
Copy these files from /System in stock ROM to /System in port
From /System/bin Copy
/System/bin/install-recovery.sh
/System/bin/linker
/System/bin/linker64
/System/bin/mdnsd
/System/bin/ndc
/System/bin/netd
From /System/etc Copy
/System/etc/firmware Folder
/System/etc/mddb Folder
/System/etc/agps_profiles_conf2.xml
/System/etc/apns_conf.xml
/System/etc/custom.conf
/System/etc/recovery.fstab
/System/etc/recovery.sig
/System/etc/spn_conf.xml
/System/etc/trustzone.bin
From /System/lib and /System/lib64 Copy
Lib3a.so
Lib3a_sample.so
Liba3m.so
Libcamalgo.so
Libcamdrv.so
Libcameracustom.so
Libcam.camadapter.so
Libcam.camnode.so
Libcam.client.so
Libcam.halsensor.so
Libcam.iopipe.so
Libcam.metadataprovider.so
Libcam.paramsmgr.so
Libcam.sdkclient.so
Libdpframework.so
Libexif.so
Libfeatureio.so
Libja3m.so
LibMtkOmxAdpcmDec.so
LibMtkOmxAdpcmEnc.so
LibMtkOmxAlacDec.so
LibMtkOmxApeDec.so
LibMtkOmxCore.so
LibMtkOmxFlacDec.so
LibMtkOmxG711Dec.so
LibMtkOmxGsmDec.so
LibMtkOmxMp3Dec.so
LibMtkOmxRawDec.so
LibMtkOmxvDec.so
LibMtkOmxVenc.so
LibMtkOmxVorbisEnc.so
LibVcodecdrv.so
From /System/lib/hw and /System/lib64/hw Copy
Audio.primary.default.so
Audio.primary.mt67xx.so
Camera.mt67xx.so
Gps.default.so
Gralloc.default.so
Gralloc.mt67xx.so
Hwcomposer.mt67xx.so
Memtrack.mt67xx.so
Sensors.mt67xx.so
Copy whole folder from /System/lib/Egl and /System/lib64/Egl
Edit boot image (kernel/zimage) from stock to port
Edit Mount points
Zip and flash!
Credits:
Mad Skill Skill
Mt67xx 64 group