Date: Tue, 29 Aug 2006 13:31:54 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 105262 for review Message-ID: <200608291331.k7TDVssV002638@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105262 Change 105262 by gonzo@gonzo_hq on 2006/08/29 13:31:34 o Add mips endianess support. o Add common for all mips architectures flags. Affected files ... .. //depot/projects/mips2/src/share/mk/bsd.cpu.mk#4 edit Differences ... ==== //depot/projects/mips2/src/share/mk/bsd.cpu.mk#4 (text+ko) ==== @@ -115,12 +115,13 @@ _CPUCFLAGS = -mcpu=${CPUTYPE} . endif . elif ${MACHINE_ARCH} == "mips" +_CPUCFLAGS = -mno-abicalls -G0 . if ${CPUTYPE} == "mips32" -_CPUCFLAGS = -march=mips32 +_CPUCFLAGS += -march=mips32 . elif ${CPUTYPE} == "mips64" -_CPUCFLAGS = -march=mips64 +_CPUCFLAGS += -march=mips64 . elif ${CPUTYPE} == "mipsr4kc" -_CPUCFLAGS = -march=r4kc +_CPUCFLAGS += -march=r4kc . endif . endif @@ -203,6 +204,12 @@ LD += -EB .endif +.if ${MACHINE_ARCH} == "mips" && defined(MIPS_LITTLE_ENDIAN) +_CPUCFLAGS += -EL +LDFLAGS += -Wl,-EL +LD += -EL +.endif + # NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk .if !defined(NO_CPU_CFLAGS)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608291331.k7TDVssV002638>