enable inline kernel build and import few things from cm

Change-Id: Idfe37662e1011bd4147e25deaa3afe494b92c59d