summaryrefslogtreecommitdiff
path: root/sys/modules/linux_common/Makefile
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2022-05-23 10:16:26 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2022-05-23 10:16:26 +0000
commit2434137f690dabc35586ab45fc4c4ecc5b71184f (patch)
treed2a2fae16897aa4e5fa923427a643eee1eabfca0 /sys/modules/linux_common/Makefile
parentb387a075d9db81a7bcc3adcc7c1c5ba93e8d8f66 (diff)
Diffstat (limited to 'sys/modules/linux_common/Makefile')
-rw-r--r--sys/modules/linux_common/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile
index 1815714e9202..033fabe27188 100644
--- a/sys/modules/linux_common/Makefile
+++ b/sys/modules/linux_common/Makefile
@@ -1,12 +1,16 @@
# $FreeBSD$
-.PATH: ${SRCTOP}/sys/compat/linux
+.PATH: ${SRCTOP}/sys/compat/linux ${SRCTOP}/sys/x86/linux
KMOD= linux_common
SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
linux_dummy.c linux_errno.c \
linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h
+.if ${MACHINE_CPUARCH} == "amd64"
+SRCS+= linux_x86.c
+.endif
+
EXPORT_SYMS=
EXPORT_SYMS+= linux_emul_path
EXPORT_SYMS+= linux_get_osname