Skip to content

Commit

Permalink
Add warning to the Linuxulator makefiles that building it outside of a
Browse files Browse the repository at this point in the history
kernel does not make sence.

PR:		222861
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D20179

(cherry picked from commit 6e4cf32)
  • Loading branch information
lemul committed Mar 20, 2021
1 parent e6e7522 commit 097e0b8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/modules/linprocfs/Makefile
Expand Up @@ -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>
4 changes: 4 additions & 0 deletions sys/modules/linsysfs/Makefile
Expand Up @@ -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>
4 changes: 4 additions & 0 deletions sys/modules/linux/Makefile
Expand Up @@ -80,4 +80,8 @@ ${VDSO}.so: linux${SFX}_locore.o
linux${SFX}_genassym.o: offset.inc
${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC}

.if !defined(KERNBUILDDIR)
.warning Building Linuxulator outside of a kernel does not make sense
.endif

.include <bsd.kmod.mk>
4 changes: 4 additions & 0 deletions sys/modules/linux64/Makefile
Expand Up @@ -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} -fcommon ${.IMPSRC}

.if !defined(KERNBUILDDIR)
.warning Building Linuxulator outside of a kernel does not make sense
.endif

.include <bsd.kmod.mk>
4 changes: 4 additions & 0 deletions sys/modules/linux_common/Makefile
Expand Up @@ -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>

0 comments on commit 097e0b8

Please sign in to comment.