Require defining a variable to build kernel inline

Do not run if TARGET_KERNEL_BUILD_INLINE is not set