summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorryo <ryo@NetBSD.org>2021-11-25 03:08:03 +0000
committerryo <ryo@NetBSD.org>2021-11-25 03:08:03 +0000
commit172281034fb9508dbffcabf787097cd4cb73031d (patch)
tree0cdb2b955215a20d79c8727e09f5080615856883 /sys/modules
parent527e592f4c1b061d03489e0d4bd5015b14ade55a (diff)
add support COMPAT_LINUX32 for aarch64
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile3
-rw-r--r--sys/modules/compat_linux32/Makefile14
2 files changed, 15 insertions, 2 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index b74e3e3a331..e767d4ccb5a 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.260 2021/11/06 13:34:39 brad Exp $
+# $NetBSD: Makefile,v 1.261 2021/11/25 03:08:05 ryo Exp $
.include <bsd.own.mk>
@@ -365,6 +365,7 @@ SUBDIR+= wbsio
.if ${MACHINE_CPU} == "aarch64"
SUBDIR+= compat_linux
+SUBDIR+= compat_linux32
.endif
.if ${MACHINE_CPU} == "m68k"
diff --git a/sys/modules/compat_linux32/Makefile b/sys/modules/compat_linux32/Makefile
index dbc9a02016f..ea2b32d9c5a 100644
--- a/sys/modules/compat_linux32/Makefile
+++ b/sys/modules/compat_linux32/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2019/02/17 04:05:45 rin Exp $
+# $NetBSD: Makefile,v 1.10 2021/11/25 03:08:05 ryo Exp $
.include "../Makefile.inc"
.include "../Makefile.assym"
@@ -17,6 +17,18 @@ SRCS+= linux32_socket.c linux32_socketcall.c linux32_stat.c linux32_sysctl.c
SRCS+= linux32_sysinfo.c linux32_termios.c linux32_time.c
SRCS+= linux32_unistd.c linux32_utsname.c linux32_wait.c
+.if ${MACHINE_ARCH} == "aarch64"
+CPPFLAGS+= -DEXEC_ELF32
+.PATH: ${S}/compat/linux32/arch/aarch64
+SRCS+= linux32_exec_machdep.c linux32_ipccall.c linux32_machdep.c
+SRCS+= linux32_missing.c linux32_sigcode.S linux32_syscalls.c linux32_sysent.c
+SRCS+= linux32_uid16.c
+.PATH: ${S}/arch/aarch64/aarch64
+SRCS+= linux32_syscall.c
+.PATH: ${S}/compat/linux/common
+SRCS+= linux_exec_elf32.c
+.endif
+
.if ${MACHINE_ARCH} == "x86_64"
CPPFLAGS+= -DEXEC_ELF32 -DLINUX32_DEBUGLINK_SIGNATURE
.PATH: ${S}/compat/linux32/arch/amd64