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.
This commit is contained in:
simonb 2001-10-05 15:36:46 +00:00
parent 9d1d665dac
commit 4471b94432
1 changed files with 7 additions and 0 deletions

View File

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