I want to port miui using aosp as base rom . I searched on the web but didn't find any aosp rom for my device.I owns a Moto g turbo(merlin).So will I have to make it from scratch from the instructions provided on aosp site.
as far as I could search quickly, I found there's Lineage OS Port for merlin. You could use that as base for porting MIUI without porting or building AOSP. Here's the device tree of it
First try to find a similar device to turbo having MIUI port. If you could find that, it would be easier to port from that device relatively.