Revert "Revert "Build kernel inline""

This reverts commit bb43a734e25910c7db3ab3d74da3c6767d7a0a85.