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/boot Fix PR port-sgimips/17568: the P...



details:   https://anonhg.NetBSD.org/src/rev/c7b4e938d887
branches:  trunk
changeset: 533998:c7b4e938d887
user:      rafal <rafal%NetBSD.org@localhost>
date:      Fri Jul 12 13:04:03 2002 +0000

description:
Fix PR port-sgimips/17568: the PROM on early Indigo2 machines did not like
the ECOFF version of boot produced by `objcopy'.  Using elf2ecoff make it
work, so use that instead.  Also, don't bother stripping the bootblocks on
install (as that confuses strip, at least for the ECOFF one, and since the
build already strips them).

diffstat:

 sys/arch/sgimips/stand/boot/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 62c43d09d00c -r c7b4e938d887 sys/arch/sgimips/stand/boot/Makefile
--- a/sys/arch/sgimips/stand/boot/Makefile      Fri Jul 12 12:20:24 2002 +0000
+++ b/sys/arch/sgimips/stand/boot/Makefile      Fri Jul 12 13:04:03 2002 +0000
@@ -1,11 +1,16 @@
-#      $NetBSD: Makefile,v 1.3 2001/11/22 00:58:08 thorpej Exp $
+#      $NetBSD: Makefile,v 1.4 2002/07/12 13:04:03 rafal Exp $
 
 PROG=  boot
 
+# Don't strip the ECOFF'ed version on install -- strip gets confused by that,
+# and it's already stripped since it's a copy of the stripped ELF one.
+#
+STRIPFLAG=
+
 SRCS=  start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
 
 ${PROG}: ${PROG}.elf
-       ${OBJCOPY} -O ecoff-bigmips ${PROG}.elf ${PROG}
+       ${ELF2ECOFF} ${PROG}.elf ${PROG}
        @${SIZE} ${PROG}
 
 # XXX Temporary hack to install the ELF verision, too.



Home | Main Index | Thread Index | Old Index