@cpuonfire your the same one that ask how to make smartphone. unless you have a EE degree and is capable low level programming and of course have to money to to it. don't waste your time.
I have and I wouldn't even try to spend my time on this. It'd take a lifetime by yourself. These days, teams do the writing using sophisticated (and expensive) tools.