Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include This Makefile.inc is used for building...



details:   https://anonhg.NetBSD.org/src/rev/70bda2d38ff0
branches:  trunk
changeset: 515824:70bda2d38ff0
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Oct 05 15:36:46 2001 +0000

description:
This Makefile.inc is used for building LKMS - add the standard MIPS
kernel compile flags as well as "-mlong-calls" so that calls from the
LKM in KSEG2 work to the kernel in KSEG0.

MIPS LKMs now build and can be loaded with the right Magick command line
args to modload(8).  Changes to modload coming...

Thanks to Chris Demetriou for pointing out the -mlong-calls gcc option
that had been staring me in the face all along.

diffstat:

 sys/arch/mips/include/Makefile.inc |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 48275edff560 -r 70bda2d38ff0 sys/arch/mips/include/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/mips/include/Makefile.inc        Fri Oct 05 15:36:46 2001 +0000
@@ -0,0 +1,7 @@
+# $NetBSD: Makefile.inc,v 1.1 2001/10/05 15:36:46 simonb Exp $
+
+# Standard kernel compile flags
+CFLAGS += -G 0 -mno-abicalls -mno-half-pic
+
+# Needed so modules loaded in KSEG2 can make calls to KSEG0
+CFLAGS += -mlong-calls



Home | Main Index | Thread Index | Old Index