PERFORCE change 124904 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Wed Aug 8 09:44:34 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=124904

Change 124904 by gonzo at gonzo_wooster on 2007/08/08 16:43:40

	o Use TARGET_BIG_ENDIAN to set either big or little
	    endianess to userland.
	o Use explicit gcc option for both big and little endian,
	    do not rely on default endianess.
	o pass only -march stuff to _CPUCFLAGS

Affected files ...

.. //depot/projects/mips2/src/share/mk/bsd.cpu.mk#10 edit

Differences ...

==== //depot/projects/mips2/src/share/mk/bsd.cpu.mk#10 (text+ko) ====

@@ -110,13 +110,10 @@
 _CPUCFLAGS = -mcpu=${CPUTYPE}
 .  endif
 . elif ${MACHINE_ARCH} == "mips"
-_CPUCFLAGS = -G0 -mabicalls -mno-dsp
-.  if ${CPUTYPE} == "mips32"
-_CPUCFLAGS += -march=mips32
-.  elif ${CPUTYPE} == "mips64"
-_CPUCFLAGS += -march=mips64
+.  if ${CPUTYPE} == "mips64"
+_CPUCFLAGS = -march=mips64
 .  elif ${CPUTYPE} == "mipsr4kc"
-_CPUCFLAGS += -march=r4kc
+_CPUCFLAGS = -march=4kc
 .  endif
 . endif
 
@@ -182,12 +179,16 @@
 .endif
 
 .if ${MACHINE_ARCH} == "mips" 
-. if defined(MIPS_LITTLE_ENDIAN)
-_CPUCFLAGS += -EL
+. if defined(TARGET_BIG_ENDIAN)
+CFLAGS += -EB
+LDFLAGS += -Wl,-EB
+LD += -EB
+. else
+CFLAGS += -EL
 LDFLAGS += -Wl,-EL
 LD += -EL
 . endif
-_CPUCFLAGS += -msoft-float
+CFLAGS += -msoft-float -G0 -mno-dsp -mabicalls
 .endif
 
 # NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk


More information about the p4-projects mailing list