Revert "Revert "Revert "Build kernel inline"""

This reverts commit 2637e205029963edf80b8efa0e0b80ef53529795.