Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/stand Make sure that sgimips64 can build th...



details:   https://anonhg.NetBSD.org/src/rev/0f1540cafc46
branches:  trunk
changeset: 762731:0f1540cafc46
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Feb 26 16:26:58 2011 +0000

description:
Make sure that sgimips64 can build the O32 bootloaders

diffstat:

 sys/arch/sgimips/stand/Makefile.booters |  7 +++----
 sys/arch/sgimips/stand/boot/Makefile    |  6 +++---
 2 files changed, 6 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 1fdc56a1620c -r 0f1540cafc46 sys/arch/sgimips/stand/Makefile.booters
--- a/sys/arch/sgimips/stand/Makefile.booters   Sat Feb 26 15:41:32 2011 +0000
+++ b/sys/arch/sgimips/stand/Makefile.booters   Sat Feb 26 16:26:58 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.booters,v 1.20 2011/02/20 07:59:51 matt Exp $
+# $NetBSD: Makefile.booters,v 1.21 2011/02/26 16:26:58 matt Exp $
 
 # PROG set by parent.
 NOMAN=         # defined
@@ -26,9 +26,8 @@
 # compiler flags for smallest code size
 CFLAGS=                -ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024
 .if ${MACHINE_ARCH} == "mips64eb"
-CPUFLAGS+=     -mips3 -mabi=32
-LDFLAGS+=      -mips3 -mabi=32
-MACHINE_ARCH=  mipseb
+AFLAGS+=       -mips3 -mabi=32
+CFLAGS+=       -mips3 -mabi=32
 .endif
 CWARNFLAGS+=   -Wall -Werror
 CWARNFLAGS+=   -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
diff -r 1fdc56a1620c -r 0f1540cafc46 sys/arch/sgimips/stand/boot/Makefile
--- a/sys/arch/sgimips/stand/boot/Makefile      Sat Feb 26 15:41:32 2011 +0000
+++ b/sys/arch/sgimips/stand/boot/Makefile      Sat Feb 26 16:26:58 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.18 2011/02/20 07:59:51 matt Exp $
+#      $NetBSD: Makefile,v 1.19 2011/02/26 16:26:58 matt Exp $
 
 
 # Don't strip the ECOFF'ed version on install -- strip gets confused by that,
@@ -31,14 +31,14 @@
 ip3xboot: ${OBJS} ${LIBS}
        ${_MKTARGET_LINK}
        ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
-           -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
+           -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
        @${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
        @${SIZE} ${.TARGET}
 
 ip2xboot: ${OBJS} ${LIBS}
        ${_MKTARGET_LINK}
        ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
-           -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
+           -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
        @${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
        @${SIZE} ${.TARGET}
 



Home | Main Index | Thread Index | Old Index