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.
This commit is contained in:
parent
65a9d68fda
commit
866f93d61f
|
@ -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 @@ CWARNFLAGS+= -Wno-main
|
|||
.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)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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_21041
|
|||
options TLP_MATCH_21140
|
||||
options TLP_MATCH_21142
|
||||
|
||||
makeoptions ENDIAN="-EB"
|
||||
makeoptions DEFTEXTADDR="0x80002000"
|
||||
|
|
Loading…
Reference in New Issue