From owner-dev-commits-src-branches@freebsd.org Sat Mar 20 15:18:50 2021 Return-Path: Delivered-To: dev-commits-src-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7BCA05ABE7B; Sat, 20 Mar 2021 15:18:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F2ktf370Tz4dD8; Sat, 20 Mar 2021 15:18:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 531DC1B62; Sat, 20 Mar 2021 15:18:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 12KFIoaK093417; Sat, 20 Mar 2021 15:18:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 12KFIobw093416; Sat, 20 Mar 2021 15:18:50 GMT (envelope-from git) Date: Sat, 20 Mar 2021 15:18:50 GMT Message-Id: <202103201518.12KFIobw093416@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 097e0b895576 - stable/12 - Add warning to the Linuxulator makefiles that building it outside of a kernel does not make sence. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 097e0b8955762c043b01ba247e59d704a83d222a Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the stable branches of the FreeBSD src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2021 15:18:50 -0000 The branch stable/12 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=097e0b8955762c043b01ba247e59d704a83d222a commit 097e0b8955762c043b01ba247e59d704a83d222a Author: Dmitry Chagin AuthorDate: 2019-05-13 18:28:40 +0000 Commit: Dmitry Chagin CommitDate: 2021-03-20 15:18:01 +0000 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 (cherry picked from commit 6e4cf32e95841b4c3ef0caeb80802bf528a35cd0) --- sys/modules/linprocfs/Makefile | 4 ++++ sys/modules/linsysfs/Makefile | 4 ++++ sys/modules/linux/Makefile | 4 ++++ sys/modules/linux64/Makefile | 4 ++++ sys/modules/linux_common/Makefile | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/sys/modules/linprocfs/Makefile b/sys/modules/linprocfs/Makefile index 6408a9882147..fa7ac8725d14 100644 --- a/sys/modules/linprocfs/Makefile +++ b/sys/modules/linprocfs/Makefile @@ -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 diff --git a/sys/modules/linsysfs/Makefile b/sys/modules/linsysfs/Makefile index 6eaa844e9ea5..058fbbc521b1 100644 --- a/sys/modules/linsysfs/Makefile +++ b/sys/modules/linsysfs/Makefile @@ -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 diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index 7ff1fdd1a17e..7065c1f0f6cd 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -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 diff --git a/sys/modules/linux64/Makefile b/sys/modules/linux64/Makefile index f084df6cc466..046eeeda30f2 100644 --- a/sys/modules/linux64/Makefile +++ b/sys/modules/linux64/Makefile @@ -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 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