Add warning to the Linuxulator makefiles that building it outside of a

kernel does not make sence.

PR:		222861
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D20179
This commit is contained in:
Dmitry Chagin 2019-05-13 18:28:40 +00:00
parent c5156c7785
commit 6e4cf32e95
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347540
5 changed files with 20 additions and 0 deletions

View File

@ -7,4 +7,8 @@ SRCS= vnode_if.h \
device_if.h bus_if.h \
linprocfs.c
.if !defined(KERNBUILDDIR)
.warning Building Linuxulator outside of a kernel does not make sense
.endif
.include <bsd.kmod.mk>

View File

@ -7,4 +7,8 @@ SRCS= vnode_if.h \
device_if.h bus_if.h pci_if.h \
linsysfs.c
.if !defined(KERNBUILDDIR)
.warning Building Linuxulator outside of a kernel does not make sense
.endif
.include <bsd.kmod.mk>

View File

@ -80,4 +80,8 @@ ${VDSO}.so: linux${SFX}_locore.o
linux${SFX}_genassym.o: offset.inc
${CC} -c ${CFLAGS:N-flto:N-fno-common} ${.IMPSRC}
.if !defined(KERNBUILDDIR)
.warning Building Linuxulator outside of a kernel does not make sense
.endif
.include <bsd.kmod.mk>

View File

@ -55,4 +55,8 @@ linux_support.o: assym.inc linux_assym.h
linux_genassym.o: offset.inc
${CC} -c ${CFLAGS:N-flto:N-fno-common} ${.IMPSRC}
.if !defined(KERNBUILDDIR)
.warning Building Linuxulator outside of a kernel does not make sense
.endif
.include <bsd.kmod.mk>

View File

@ -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>