Date: Fri, 7 Jul 2006 16:19:20 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100896 for review Message-ID: <200607071619.k67GJKw8035600@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100896 Change 100896 by gonzo@gonzo_hq on 2006/07/07 16:18:43 o platform-dependent flags moved from kern.mk to Makefile.mips. o MIPS_LITTLE_ENDIAN make option presented to build little endian kernel. o propagate endianess/arch flags to hack.So as well. o Make KSEG0_START+0x100000 be the start of the .text segment. Affected files ... .. //depot/projects/mips2/src/sys/conf/Makefile.mips#4 edit .. //depot/projects/mips2/src/sys/conf/kern.mk#5 edit Differences ... ==== //depot/projects/mips2/src/sys/conf/Makefile.mips#4 (text+ko) ==== @@ -36,7 +36,16 @@ # # XXXMIPS: Without it, you'll be bombed by warnings. # -CFLAGS+=-fno-pic +ARCH_FLAGS=-march=mips3 +CFLAGS+=-fno-pic $(ARCH_FLAGS) +SYSTEM_LD+= -Ttext 0x80100000 +HACK_EXTRA_FLAGS+=-fno-pic $(ARCH_FLAGS) + +.if defined(MIPS_LITTLE_ENDIAN) +CFLAGS+=-EL +SYSTEM_LD+=-EL +HACK_EXTRA_FLAGS+=-EL -Wl,-EL +.endif %BEFORE_DEPEND ==== //depot/projects/mips2/src/sys/conf/kern.mk#5 (text+ko) ==== @@ -86,7 +86,7 @@ # We also force a non-PIC kernel to be built (-mno-abicalls). # .if ${MACHINE_ARCH} == "mips" -CFLAGS+= -msoft-float -mno-abicalls -mips32 +CFLAGS+= -msoft-float -mno-abicalls # XXX for debugging the build #CFLAGS+= -save-temps INLINE_LIMIT?= 15000
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607071619.k67GJKw8035600>