Make librump play with mips nicely. Define ARCH_ELFSIZE for mips to be 32.

This works for N64 kernels because objcopy them to be 32bit to the bootloaders
can handle them.
This commit is contained in:
matt 2009-12-14 21:19:23 +00:00
parent df341ead56
commit 9ca0818a05
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rumpkern,v 1.67 2009/12/13 08:25:20 mrg Exp $
# $NetBSD: Makefile.rumpkern,v 1.68 2009/12/14 21:19:23 matt Exp $
#
.include "${RUMPTOP}/Makefile.rump"
@ -90,6 +90,8 @@ AFLAGS+= -D_LOCORE -Wa,-fatal-warnings
.ifdef MLIBDIR
ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MLIBDIR}
LIBKERN_ARCH= ${MLIBDIR}
.elif exists(${RUMPTOP}/librump/rumpkern/arch/${MACHINE_CPU})
ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_CPU}
.else
ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_ARCH}
.endif

View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile.inc,v 1.1 2009/12/14 21:19:23 matt Exp $
CPPFLAGS+= -DARCH_ELFSIZE=32
SRCS+= kobj_stubs.c rumpcpu_generic.c