Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Change arch from mips to mipsel/mipseb as appropria...
details: https://anonhg.NetBSD.org/src/rev/0fa065496c81
branches: trunk
changeset: 499986:0fa065496c81
user: matt <matt%NetBSD.org@localhost>
date: Sun Dec 03 05:30:31 2000 +0000
description:
Change arch from mips to mipsel/mipseb as appropriate. Nuke the ENDIAN
makeoption. Key off MACHINE_ARCH for adding -EB/-EL to CFLAGS/AFLAGS/LD/
LINKFLAGS.
diffstat:
sys/arch/mips/conf/Makefile.mips | 15 ++++++++++-----
sys/arch/mipsco/conf/std.mipsco | 5 ++---
sys/arch/newsmips/conf/std.newsmips | 5 ++---
sys/arch/sgimips/conf/std.sgimips | 5 ++---
4 files changed, 16 insertions(+), 14 deletions(-)
diffs (84 lines):
diff -r ebccedaa428d -r 0fa065496c81 sys/arch/mips/conf/Makefile.mips
--- a/sys/arch/mips/conf/Makefile.mips Sun Dec 03 05:27:51 2000 +0000
+++ b/sys/arch/mips/conf/Makefile.mips Sun Dec 03 05:30:31 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mips,v 1.2 2000/12/03 04:52:38 matt Exp $
+# $NetBSD: Makefile.mips,v 1.3 2000/12/03 05:30:31 matt Exp $
# Makefile for NetBSD
#
@@ -58,15 +58,20 @@
.endif
GP?= -G 0
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
- -mno-abicalls -mno-half-pic ${ENDIAN}
-AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE ${ENDIAN}
+ -mno-abicalls -mno-half-pic
+AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS+= -Ttext ${TEXTADDR} -e start ${GP}
-.if (${ENDIAN} == "-EB")
+.if (${MACHINE_ARCH} == "mipseb")
LINKFLAGS+= -T ${MIPS}/conf/kern.ldscript.be
+CFLAGS+= -EB
+AFLAGS+= -EB
+LD+= -EB
.else
LINKFLAGS+= -T ${MIPS}/conf/kern.ldscript.le
+CFLAGS+= -EL
+AFLAGS+= -EL
+LD+= -EL
.endif
-LD+= ${ENDIAN}
STRIPFLAGS= -g -X -x
.if exists(${THISMIPS}/conf/Makefile.${MACHINE}.inc)
diff -r ebccedaa428d -r 0fa065496c81 sys/arch/mipsco/conf/std.mipsco
--- a/sys/arch/mipsco/conf/std.mipsco Sun Dec 03 05:27:51 2000 +0000
+++ b/sys/arch/mipsco/conf/std.mipsco Sun Dec 03 05:30:31 2000 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: std.mipsco,v 1.2 2000/12/03 04:51:26 matt Exp $
+# $NetBSD: std.mipsco,v 1.3 2000/12/03 05:30:31 matt Exp $
-machine mipsco mips
+machine mipsco mipseb
options EXEC_ELF32 # exec ELF32 binaries
options EXEC_SCRIPT # exec #! scripts
makeoptions DEFTEXTADDR="0x80021000"
-makeoptions ENDIAN="-EB"
makeoptions LINKFLAGS="-N"
diff -r ebccedaa428d -r 0fa065496c81 sys/arch/newsmips/conf/std.newsmips
--- a/sys/arch/newsmips/conf/std.newsmips Sun Dec 03 05:27:51 2000 +0000
+++ b/sys/arch/newsmips/conf/std.newsmips Sun Dec 03 05:30:31 2000 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: std.newsmips,v 1.8 2000/12/03 02:07:06 matt Exp $
+# $NetBSD: std.newsmips,v 1.9 2000/12/03 05:30:31 matt Exp $
-machine newsmips mips
+machine newsmips mipseb
options EXEC_ELF32 # exec ELF32 binaries
options EXEC_SCRIPT # exec #! scripts
-makeoptions ENDIAN="-EB"
makeoptions DEFTEXTADDR="0x80001000"
makeoptions LINKFLAGS="-N"
diff -r ebccedaa428d -r 0fa065496c81 sys/arch/sgimips/conf/std.sgimips
--- a/sys/arch/sgimips/conf/std.sgimips Sun Dec 03 05:27:51 2000 +0000
+++ b/sys/arch/sgimips/conf/std.sgimips Sun Dec 03 05:30:31 2000 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: std.sgimips,v 1.4 2000/12/03 02:07:04 matt Exp $
+# $NetBSD: std.sgimips,v 1.5 2000/12/03 05:30:31 matt Exp $
-machine sgimips mips
+machine sgimips mipseb
options EXEC_ELF32 # exec ELF32 binaries
options EXEC_SCRIPT # exec #! scripts
@@ -15,5 +15,4 @@
options TLP_MATCH_21140
options TLP_MATCH_21142
-makeoptions ENDIAN="-EB"
makeoptions DEFTEXTADDR="0x80002000"
Home |
Main Index |
Thread Index |
Old Index