Date: Mon, 13 May 2019 18:28:40 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r347540 - in head/sys/modules: linprocfs linsysfs linux linux64 linux_common Message-ID: <201905131828.x4DISeYG041954@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Mon May 13 18:28:40 2019 New Revision: 347540 URL: https://svnweb.freebsd.org/changeset/base/347540 Log: 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 Modified: head/sys/modules/linprocfs/Makefile head/sys/modules/linsysfs/Makefile head/sys/modules/linux/Makefile head/sys/modules/linux64/Makefile head/sys/modules/linux_common/Makefile Modified: head/sys/modules/linprocfs/Makefile ============================================================================== --- head/sys/modules/linprocfs/Makefile Mon May 13 18:25:55 2019 (r347539) +++ head/sys/modules/linprocfs/Makefile Mon May 13 18:28:40 2019 (r347540) @@ -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> Modified: head/sys/modules/linsysfs/Makefile ============================================================================== --- head/sys/modules/linsysfs/Makefile Mon May 13 18:25:55 2019 (r347539) +++ head/sys/modules/linsysfs/Makefile Mon May 13 18:28:40 2019 (r347540) @@ -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> Modified: head/sys/modules/linux/Makefile ============================================================================== --- head/sys/modules/linux/Makefile Mon May 13 18:25:55 2019 (r347539) +++ head/sys/modules/linux/Makefile Mon May 13 18:28:40 2019 (r347540) @@ -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> Modified: head/sys/modules/linux64/Makefile ============================================================================== --- head/sys/modules/linux64/Makefile Mon May 13 18:25:55 2019 (r347539) +++ head/sys/modules/linux64/Makefile Mon May 13 18:28:40 2019 (r347540) @@ -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> Modified: head/sys/modules/linux_common/Makefile ============================================================================== --- head/sys/modules/linux_common/Makefile Mon May 13 18:25:55 2019 (r347539) +++ head/sys/modules/linux_common/Makefile Mon May 13 18:28:40 2019 (r347540) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905131828.x4DISeYG041954>