Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand fix creation of DOS / ROM images from EL...
details: https://anonhg.NetBSD.org/src/rev/e4c4fe4fad94
branches: trunk
changeset: 474497:e4c4fe4fad94
user: drochner <drochner%NetBSD.org@localhost>
date: Thu Jul 08 14:32:28 1999 +0000
description:
fix creation of DOS / ROM images from ELF executables: use "objcopy"
diffstat:
sys/arch/i386/stand/Makefile.booters | 10 +++-------
sys/arch/i386/stand/genprom/Makefile | 5 ++---
2 files changed, 5 insertions(+), 10 deletions(-)
diffs (46 lines):
diff -r e252d1601501 -r e4c4fe4fad94 sys/arch/i386/stand/Makefile.booters
--- a/sys/arch/i386/stand/Makefile.booters Thu Jul 08 14:24:42 1999 +0000
+++ b/sys/arch/i386/stand/Makefile.booters Thu Jul 08 14:32:28 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.booters,v 1.23 1999/05/11 19:43:09 drochner Exp $
+# $NetBSD: Makefile.booters,v 1.24 1999/07/08 14:32:28 drochner Exp $
BINDIR= /usr/mdec
STRIPFLAG=
@@ -76,8 +76,7 @@
${BASE}.rom: ${GENPROM} ${ROMSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o
${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext ${RELOC} ${ROMSTART} ${OBJS} \
vers.o ${LIBLIST} >${BASE}.list
- cp ${BASE}.sym ${BASE}.bin
- strip ${BASE}.bin
+ objcopy --output-target=binary ${BASE}.sym ${BASE}.bin
(cd ${GENPROMDIR}; ${MAKE} rom BINFILE=${.OBJDIR:Q}/${BASE:Q}.bin \
ROMFILE=${.OBJDIR:Q}/${BASE:Q}.rom ROM_SIZE=${ROM_SIZE:Q})
rm -f ${BASE}.bin
@@ -85,9 +84,6 @@
${BASE}.com: ${DOSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o
${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext 0x100 ${DOSSTART} ${OBJS} \
vers.o ${LIBLIST} >${BASE}.list
- cp ${BASE}.sym ${BASE}.bin
- strip ${BASE}.bin
- dd if=${BASE}.bin of=${BASE}.com ibs=32 skip=1 obs=1024b
- rm -f ${BASE}.bin
+ objcopy --output-target=binary ${BASE}.sym ${BASE}.com
.include <bsd.prog.mk>
diff -r e252d1601501 -r e4c4fe4fad94 sys/arch/i386/stand/genprom/Makefile
--- a/sys/arch/i386/stand/genprom/Makefile Thu Jul 08 14:24:42 1999 +0000
+++ b/sys/arch/i386/stand/genprom/Makefile Thu Jul 08 14:32:28 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1999/02/13 02:54:46 lukem Exp $
+# $NetBSD: Makefile,v 1.4 1999/07/08 14:32:29 drochner Exp $
PROG= genprom
MKMAN= no
@@ -9,5 +9,4 @@
#to be used from netboot's Makefile
rom: ${PROG} ${BINFILE}
- dd if=${BINFILE} ibs=32 skip=1 | ./${PROG} ${ROM_SIZE} >${ROMFILE} \
- || (rm ${ROMFILE}; false)
+ ./${PROG} ${ROM_SIZE} <${BINFILE} >${ROMFILE} || (rm ${ROMFILE}; false)
Home |
Main Index |
Thread Index |
Old Index