build kernel inline