Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2023 19:07:41 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fcab90d8e540 - stable/13 - linux_common: Fixup .PATH.
Message-ID:  <202302061907.316J7fe9076808@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=fcab90d8e540557355b38216965df7dec2c74dd9

commit fcab90d8e540557355b38216965df7dec2c74dd9
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-01-28 17:31:38 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-02-06 19:06:29 +0000

    linux_common: Fixup .PATH.
    
    Since we have arm64, and awaiting ppc64 Linuxulator, do not include x86 specific
    path to the module build for non x86 architectures.
    
    MFC after:              1 week
    
    (cherry picked from commit c19fc5cd9b49115604ce2b89279e3434c7f120cc)
---
 sys/modules/linux_common/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile
index 6e67e7ab2578..204cfe5059e5 100644
--- a/sys/modules/linux_common/Makefile
+++ b/sys/modules/linux_common/Makefile
@@ -1,6 +1,9 @@
 # $FreeBSD$
 
-.PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/x86/linux
+.PATH: ${SRCTOP}/sys/compat/linux
+.if ${MACHINE_CPUARCH} == "amd64"
+.PATH: ${SRCTOP}/sys/x86/linux
+.endif
 
 KMOD=	linux_common
 SRCS=	linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302061907.316J7fe9076808>