diff options
author | ed <ed@FreeBSD.org> | 2015-10-30 08:11:37 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2015-10-30 08:11:37 +0000 |
commit | f8063150c3bce7df1f34d3b8ddb207a8abda4f1e (patch) | |
tree | 1e988c14fde8f61b75e36ca8b01a1022b41e8822 /usr.bin/truss/Makefile | |
parent | 24409c318d1686feec71b2c2c666d90963266318 (diff) | |
download | FreeBSD-src-f8063150c3bce7df1f34d3b8ddb207a8abda4f1e.zip FreeBSD-src-f8063150c3bce7df1f34d3b8ddb207a8abda4f1e.tar.gz |
Make truss work for CloudABI processes on aarch64.
This change copies over amd64-cloudabi64.c to aarch64-cloudabi.c and
adjusts it to fetch the proper registers on aarch64. To reduce the
amount of shared code, the errno conversion function is moved into a
separate source file.
Reviewed by: jhb, andrew
Differential Revision: https://reviews.freebsd.org/D4023
Diffstat (limited to 'usr.bin/truss/Makefile')
-rw-r--r-- | usr.bin/truss/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile index c25f928..e784365 100644 --- a/usr.bin/truss/Makefile +++ b/usr.bin/truss/Makefile @@ -2,7 +2,7 @@ NO_WERROR= PROG= truss -SRCS= main.c setup.c syscalls.c ioctl.c +SRCS= cloudabi.c ioctl.c main.c setup.c syscalls.c .PATH: ${.CURDIR:H}/kdump SRCS+= utrace.c @@ -24,6 +24,9 @@ ABI_SYSPATH.amd64-linux32= sys/amd64/linux32 ABIS+= freebsd # Each ABI is expected to have an ABI.c, MACHINE_ARCH-ABI.c or # MACHINE_CPUARCH-ABI.c file that will be used to map the syscall arguments. +.if ${MACHINE_ARCH} == "aarch64" +ABIS+= cloudabi64 +.endif .if ${MACHINE_CPUARCH} == "i386" ABIS+= i386-linux .endif |