make compat_linux LKM buildable on macppc

This commit is contained in:
jdolecek 2002-05-19 18:18:36 +00:00
parent bfbe50611b
commit ff2064e0c8
2 changed files with 18 additions and 2 deletions

View File

@ -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)

View File

@ -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 <bsd.kmod.mk>