PERFORCE change 112620 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Sat Jan 6 12:24:09 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=112620
Change 112620 by gonzo at gonzo_hq on 2007/01/06 20:23:32
o Enable softfloat for mips port. Leave float copropcessor
until we get real hardware to fight with.
Affected files ...
.. //depot/projects/mips2/src/lib/libc/Makefile#2 edit
.. //depot/projects/mips2/src/share/mk/bsd.cpu.mk#5 edit
Differences ...
==== //depot/projects/mips2/src/lib/libc/Makefile#2 (text+ko) ====
@@ -57,7 +57,7 @@
.include "${.CURDIR}/rpc/Makefile.inc"
.include "${.CURDIR}/uuid/Makefile.inc"
.include "${.CURDIR}/xdr/Makefile.inc"
-.if ${MACHINE_ARCH} == "arm"
+.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "mips"
.include "${.CURDIR}/softfloat/Makefile.inc"
.endif
.if ${MK_NIS} != "no"
==== //depot/projects/mips2/src/share/mk/bsd.cpu.mk#5 (text+ko) ====
@@ -204,10 +204,13 @@
LD += -EB
.endif
-.if ${MACHINE_ARCH} == "mips" && defined(MIPS_LITTLE_ENDIAN)
+.if ${MACHINE_ARCH} == "mips"
+. if defined(MIPS_LITTLE_ENDIAN)
_CPUCFLAGS += -EL
LDFLAGS += -Wl,-EL
LD += -EL
+. endif
+_CPUCFLAGS += -msoft-float
.endif
# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
More information about the p4-projects
mailing list