aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/linux_common
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/linux_common')
-rw-r--r--sys/modules/linux_common/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile
index 9fb0210810fb..5b49a7409997 100644
--- a/sys/modules/linux_common/Makefile
+++ b/sys/modules/linux_common/Makefile
@@ -15,4 +15,8 @@ EXPORT_SYMS+= linux_ioctl_unregister_handler
EXPORT_SYMS+= linux_get_osname
EXPORT_SYMS+= linux_get_osrelease
+.if !defined(KERNBUILDDIR)
+.warning Building Linuxulator outside of a kernel does not make sense
+.endif
+
.include <bsd.kmod.mk>