Module Name:    src
Committed By:   matt
Date:           Mon Dec 14 21:19:23 UTC 2009

Modified Files:
        src/sys/rump/librump/rumpkern: Makefile.rumpkern
Added Files:
        src/sys/rump/librump/rumpkern/arch/mips: Makefile.inc

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r0 -r1.1 src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/Makefile.rumpkern
diff -u src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.67 src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.68
--- src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.67	Sun Dec 13 08:25:20 2009
+++ src/sys/rump/librump/rumpkern/Makefile.rumpkern	Mon Dec 14 21:19:23 2009
@@ -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 @@
 .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

Added files:

Index: src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc
diff -u /dev/null src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc:1.1
--- /dev/null	Mon Dec 14 21:19:23 2009
+++ src/sys/rump/librump/rumpkern/arch/mips/Makefile.inc	Mon Dec 14 21:19:23 2009
@@ -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
+

Reply via email to