diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-24 16:22:03 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-24 16:22:03 +0000 |
commit | f1806e4235c97f9f0776ca9eacca2d6eda1397a7 (patch) | |
tree | efd1cfec5727a9a0488f4bdc433d6dc10679dd3e /usr.bin/kdump/Makefile | |
parent | edf6d015c304da9553e0a9d651d3e725a767f525 (diff) | |
download | FreeBSD-src-f1806e4235c97f9f0776ca9eacca2d6eda1397a7.zip FreeBSD-src-f1806e4235c97f9f0776ca9eacca2d6eda1397a7.tar.gz |
Teach kdump to understand both linux emulation.
Differential Revision: https://reviews.freebsd.org/D1079
Reviewed by: emaste
Diffstat (limited to 'usr.bin/kdump/Makefile')
-rw-r--r-- | usr.bin/kdump/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile index c295038..78a1763 100644 --- a/usr.bin/kdump/Makefile +++ b/usr.bin/kdump/Makefile @@ -3,10 +3,6 @@ .include <src.opts.mk> -.if (${MACHINE_ARCH} == "amd64") -SFX= 32 -.endif - .PATH: ${.CURDIR}/../ktrace PROG= kdump @@ -30,6 +26,9 @@ CLEANFILES= ioctl.c kdump_subr.c kdump_subr.h .if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386") CLEANFILES+= linux_syscalls.c .endif +.if (${MACHINE_ARCH} == "amd64") +CLEANFILES+= linux32_syscalls.c +.endif ioctl.c: mkioctls env MACHINE=${MACHINE} CPP="${CPP}" \ @@ -43,7 +42,11 @@ kdump_subr.c: mksubr kdump_subr.h sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include >${.TARGET} .if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386") sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \ - ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf + ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux/syscalls.master ${.CURDIR}/linux_syscalls.conf +.endif +.if (${MACHINE_ARCH} == "amd64") + sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \ + ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux32/syscalls.master ${.CURDIR}/linux32_syscalls.conf .endif .include <bsd.prog.mk> |