Clean up and enable kernel inline building

Change-Id: I63f1ddaf1f9716bfb1853d10cf8fc207a66eba50