Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/usr.bin/loadkmap Use objcopy instead of dd. T...



details:   https://anonhg.NetBSD.org/src/rev/72c1e58a28bb
branches:  trunk
changeset: 499635:72c1e58a28bb
user:      minoura <minoura%NetBSD.org@localhost>
date:      Sat Nov 25 05:27:19 2000 +0000

description:
Use objcopy instead of dd.  This will work after we'll switch to ELF.
Using command directly breaks cross compilation.  Use macro instead.

diffstat:

 sys/arch/x68k/usr.bin/loadkmap/Makefile |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r ccae4e2efc71 -r 72c1e58a28bb sys/arch/x68k/usr.bin/loadkmap/Makefile
--- a/sys/arch/x68k/usr.bin/loadkmap/Makefile   Sat Nov 25 04:42:06 2000 +0000
+++ b/sys/arch/x68k/usr.bin/loadkmap/Makefile   Sat Nov 25 05:27:19 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2000/04/16 14:19:53 minoura Exp $
+#      $NetBSD: Makefile,v 1.7 2000/11/25 05:27:19 minoura Exp $
 # Makefile for loadkmap
 
 PROG=          loadkmap
@@ -10,16 +10,16 @@
 
 realall:       loadkmap ascii_kmap jis_kmap
 
+OBJCOPY?=      /usr/bin/objcopy
+
 ascii_kmap: ascii_kmap.c
        $(CC) -c -o ${.TARGET}.aout ${.CURDIR}/ascii_kmap.c
-       strip ${.TARGET}.aout
-       dd bs=1 skip=32 if=${.TARGET}.aout of=${.TARGET}
+       ${OBJCOPY} -O binary ${.TARGET}.aout ${.TARGET}
        rm ${.TARGET}.aout
 
 jis_kmap: jis_kmap.c
        $(CC) -c -o ${.TARGET}.aout ${.CURDIR}/jis_kmap.c
-       strip ${.TARGET}.aout
-       dd bs=1 skip=32 if=${.TARGET}.aout of=${.TARGET}
+       ${OBJCOPY} -O binary ${.TARGET}.aout ${.TARGET}
        rm ${.TARGET}.aout
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index