aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/linux/Makefile1
-rw-r--r--sys/modules/linux_common/Makefile10
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index 8904e8005416..69b2af142712 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -63,6 +63,7 @@ SRCS+= imgact_linux.c \
linux.c \
linux_dummy.c \
linux_emul.c \
+ linux_emul_md.c \
linux_errno.c \
linux_mib.c \
linux_mmap.c \
diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile
index 1fa740b8b823..280d8f8d3ec3 100644
--- a/sys/modules/linux_common/Makefile
+++ b/sys/modules/linux_common/Makefile
@@ -1,6 +1,9 @@
.PATH: ${SRCTOP}/sys/compat/linux
.if ${MACHINE_CPUARCH} == "amd64"
-.PATH: ${SRCTOP}/sys/x86/linux
+.PATH: ${SRCTOP}/sys/amd64/linux ${SRCTOP}/sys/x86/linux
+.endif
+.if ${MACHINE_CPUARCH} == "aarch64"
+.PATH: ${SRCTOP}/sys/arm64/linux
.endif
KMOD= linux_common
@@ -9,7 +12,10 @@ SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h opt_inet.h
.if ${MACHINE_CPUARCH} == "amd64"
-SRCS+= linux_x86.c linux_vdso_selector_x86.c
+SRCS+= linux_pkru.c linux_x86.c linux_vdso_selector_x86.c
+.endif
+.if ${MACHINE_CPUARCH} == "aarch64"
+SRCS+= linux_emul_md.c
.endif
EXPORT_SYMS=