PERFORCE change 100896 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Fri Jul 7 16:19:21 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100896
Change 100896 by gonzo at 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
More information about the p4-projects
mailing list