diff --git a/sys/lkm/compat/Makefile.inc b/sys/lkm/compat/Makefile.inc index cd21f4b534f1..210937a891ed 100644 --- a/sys/lkm/compat/Makefile.inc +++ b/sys/lkm/compat/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.10 2001/12/13 01:26:39 lukem Exp $ +# $NetBSD: Makefile.inc,v 1.11 2002/05/19 18:18:36 jdolecek Exp $ .if !target(assym.h) S!= cd ${.CURDIR}/../../..;pwd @@ -9,6 +9,14 @@ NOMAN= # defined DPSRCS+= assym.h +.if (${MACHINE_ARCH} == "powerpc") +.if (${MACHINE} == "macppc") +# use mpc6xx +GENASSYM_DIR= $S/arch/${MACHINE_ARCH}/mpc6xx +CPPFLAGS+= -DPPC_MPC6XX +.endif +.endif + .if exists($S/arch/${MACHINE}/${MACHINE}/genassym.cf) GENASSYM_DIR?= $S/arch/${MACHINE}/${MACHINE} .elif exists($S/arch/${MACHINE_CPU}/${MACHINE_CPU}/genassym.cf) diff --git a/sys/lkm/compat/linux/Makefile b/sys/lkm/compat/linux/Makefile index e314a024393d..a1342a3fd496 100644 --- a/sys/lkm/compat/linux/Makefile +++ b/sys/lkm/compat/linux/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2002/04/01 06:54:55 enami Exp $ +# $NetBSD: Makefile,v 1.22 2002/05/19 18:18:37 jdolecek Exp $ COMPAT_UTIL_OVERRIDE= linux .include "../Makefile.inc" @@ -49,4 +49,12 @@ SRCS+= linux_olduname.c linux_syscall.c SRCS+= linux_sigcode.s .endif +.if ${MACHINE_ARCH} == "powerpc" +CPPFLAGS+= -Dpowerpc +SRCS+= linux_ipccall.c linux_misc_notalpha.c linux_sig_notalpha.c \ + linux_socketcall.c linux_llseek.c linux_olduname.c linux_file64.c +SRCS+= linux_ptrace.c linux_exec_powerpc.c linux_sp_wrap_powerpc.S +SRCS+= linux_sigcode.S linux_trap.c +.endif + .include