objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is

now in bsd.own.mk).
This commit is contained in:
tv 2001-09-22 03:34:17 +00:00
parent d63e12815a
commit ab11c169b5
19 changed files with 30 additions and 41 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.bootxx,v 1.3 1999/08/18 20:00:27 cgd Exp $ # $NetBSD: Makefile.bootxx,v 1.4 2001/09/22 03:34:17 tv Exp $
SRCS = start.S bootxx.c booted_dev.c blkdev.c prom.c prom_disp.S \ SRCS = start.S bootxx.c booted_dev.c blkdev.c prom.c prom_disp.S \
putstr.c panic_putstr.c putstr.c panic_putstr.c
@ -23,7 +23,7 @@ CLEANFILES+= ${PROG}.sym
${PROG}: ${PROG}.sym ${PROG}: ${PROG}.sym
@echo creating ${PROG} from ${PROG}.sym... @echo creating ${PROG} from ${PROG}.sym...
@objcopy --output-target=binary ${PROG}.sym ${PROG} @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
@chmod 644 ${PROG} @chmod 644 ${PROG}
@ls -l ${PROG} @ls -l ${PROG}
@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \ @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.30 2000/09/26 05:13:36 simonb Exp $ # $NetBSD: Makefile,v 1.31 2001/09/22 03:34:17 tv Exp $
PROG = boot PROG = boot
@ -20,7 +20,7 @@ CLEANFILES+= ${PROG}.sym
${PROG}: ${PROG}.sym ${PROG}: ${PROG}.sym
@echo creating ${PROG} from ${PROG}.sym... @echo creating ${PROG} from ${PROG}.sym...
@objcopy --output-target=binary ${PROG}.sym ${PROG} @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
@chmod 644 ${PROG} @chmod 644 ${PROG}
@ls -l ${PROG} @ls -l ${PROG}
@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${SECONDARY_MAX_LOAD} \ @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${SECONDARY_MAX_LOAD} \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2000/09/26 05:13:37 simonb Exp $ # $NetBSD: Makefile,v 1.24 2001/09/22 03:34:18 tv Exp $
PROG = bootxx.old PROG = bootxx.old
@ -13,7 +13,7 @@ CLEANFILES+= ${PROG}.sym ${PROG}.trunc
${PROG}: ${PROG}.sym ${PROG}: ${PROG}.sym
@echo creating ${PROG} from ${PROG}.sym... @echo creating ${PROG} from ${PROG}.sym...
@objcopy --output-target=binary ${PROG}.sym ${PROG}.trunc @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}.trunc
@chmod 644 ${PROG}.trunc @chmod 644 ${PROG}.trunc
@dd if=${PROG}.trunc of=${PROG} obs=`expr 15 \* 512` conv=osync @dd if=${PROG}.trunc of=${PROG} obs=`expr 15 \* 512` conv=osync
@ls -l ${PROG} @ls -l ${PROG}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2001/05/28 18:21:12 he Exp $ # $NetBSD: Makefile,v 1.24 2001/09/22 03:34:18 tv Exp $
PROG = netboot PROG = netboot
@ -16,7 +16,7 @@ CPPFLAGS += ${UNIFIED_CPPFLAGS} -DSUPPORT_DHCP \
${PROG}: ${PROG}.sym ${PROG}: ${PROG}.sym
@echo creating ${PROG} from ${PROG}.sym... @echo creating ${PROG} from ${PROG}.sym...
@objcopy --output-target=binary ${PROG}.sym ${PROG} @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
@chmod 644 ${PROG} @chmod 644 ${PROG}
@ls -l ${PROG} @ls -l ${PROG}
@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \ @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2000/07/21 21:25:19 jdolecek Exp $ # $NetBSD: Makefile,v 1.6 2001/09/22 03:34:18 tv Exp $
PROG = ustarboot PROG = ustarboot
@ -17,7 +17,7 @@ CLEANFILES+= ${PROG}.sym
${PROG}: ${PROG}.sym ${PROG}: ${PROG}.sym
@echo creating ${PROG} from ${PROG}.sym... @echo creating ${PROG} from ${PROG}.sym...
@objcopy --output-target=binary ${PROG}.sym ${PROG} @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
@chmod 644 ${PROG} @chmod 644 ${PROG}
@ls -l ${PROG} @ls -l ${PROG}
@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \ @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.buildboot,v 1.4 2001/08/02 23:38:04 bjh21 Exp $ # $NetBSD: Makefile.buildboot,v 1.5 2001/09/22 03:34:18 tv Exp $
S?= ${.CURDIR}/../../../.. S?= ${.CURDIR}/../../../..
@ -47,7 +47,6 @@ RISCOS_AS= library
LIBRISCOS= ${RISCOSLIB} LIBRISCOS= ${RISCOSLIB}
RELOC=8000 RELOC=8000
OBJCOPY?=objcopy
# -N (OMAGIC) since we don't need a gap between text and data. # -N (OMAGIC) since we don't need a gap between text and data.
LINKFLAGS=-N LINKFLAGS=-N

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2001/09/08 16:57:09 thomas Exp $ # $NetBSD: Makefile,v 1.9 2001/09/22 03:34:18 tv Exp $
# for OBJECT_FMT # for OBJECT_FMT
.include <bsd.own.mk> .include <bsd.own.mk>
@ -50,7 +50,7 @@ beforeinstall:
size ${PROG}; \ size ${PROG}; \
false; \ false; \
fi; \ fi; \
objcopy -O binary ${PROG} ${PROG}XX ${OBJCOPY} -O binary ${PROG} ${PROG}XX
@cat ${PROG}XX /dev/zero | dd of=${PROG}X \ @cat ${PROG}XX /dev/zero | dd of=${PROG}X \
bs=1 count=6656 2>/dev/null bs=1 count=6656 2>/dev/null
@mv -f ${PROG} ${PROG}XX @mv -f ${PROG} ${PROG}XX

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.4 2001/09/05 19:48:12 thomas Exp $ # $NetBSD: Makefile.inc,v 1.5 2001/09/22 03:34:19 tv Exp $
BINDIR= /usr/mdec BINDIR= /usr/mdec
BINMODE= ${NONBINMODE} BINMODE= ${NONBINMODE}
@ -8,7 +8,7 @@ LDFLAGS= -nostdlib -static -Wl,-x,-Ttext,0,-N
CPPFLAGS+= -I- -I. -I.. CPPFLAGS+= -I- -I. -I..
beforeinstall: beforeinstall:
objcopy -O binary ${PROG} ${PROG}X ${OBJCOPY} -O binary ${PROG} ${PROG}X
@mv -f ${PROG} ${PROG}XX @mv -f ${PROG} ${PROG}XX
@mv -f ${PROG}X ${PROG} @mv -f ${PROG}X ${PROG}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2000/02/01 05:25:31 tsutsui Exp $ # $NetBSD: Makefile,v 1.11 2001/09/22 03:34:19 tv Exp $
CPPFLAGS= ${APMCPPFLAGS} CPPFLAGS= ${APMCPPFLAGS}
KSRC=${.CURDIR}/../../.. KSRC=${.CURDIR}/../../..
@ -21,7 +21,7 @@ biostramp.inc: biostramp.bin Makefile
.if ${OBJECT_FMT} == "ELF" .if ${OBJECT_FMT} == "ELF"
biostramp.bin: biostramp.obj biostramp.bin: biostramp.obj
objcopy --output-target=binary $? $@ ${OBJCOPY} --output-target=binary $? $@
.else .else
biostramp.bin: biostramp.obj biostramp.bin: biostramp.obj
cp $? $@ cp $? $@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.booters,v 1.27 2001/08/18 12:53:58 enami Exp $ # $NetBSD: Makefile.booters,v 1.28 2001/09/22 03:34:19 tv Exp $
BINDIR= /usr/mdec BINDIR= /usr/mdec
STRIPFLAG= STRIPFLAG=
@ -78,7 +78,7 @@ ${BASE}.sym: ${BSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386}
${BASE}.rom: ${GENPROM} ${ROMSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} ${BASE}.rom: ${GENPROM} ${ROMSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386}
${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext ${RELOC} ${ROMSTART} ${OBJS} \ ${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext ${RELOC} ${ROMSTART} ${OBJS} \
${LIBLIST} >${BASE}.list ${LIBLIST} >${BASE}.list
objcopy --output-target=binary ${BASE}.sym ${BASE}.bin ${OBJCOPY} --output-target=binary ${BASE}.sym ${BASE}.bin
(cd ${GENPROMDIR}; ${MAKE} rom BINFILE=${.OBJDIR:Q}/${BASE:Q}.bin \ (cd ${GENPROMDIR}; ${MAKE} rom BINFILE=${.OBJDIR:Q}/${BASE:Q}.bin \
ROMFILE=${.OBJDIR:Q}/${BASE:Q}.rom ROM_SIZE=${ROM_SIZE:Q}) ROMFILE=${.OBJDIR:Q}/${BASE:Q}.rom ROM_SIZE=${ROM_SIZE:Q})
rm -f ${BASE}.bin rm -f ${BASE}.bin
@ -86,6 +86,6 @@ ${BASE}.rom: ${GENPROM} ${ROMSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI38
${BASE}.com: ${DOSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} ${BASE}.com: ${DOSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386}
${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext 0x100 ${DOSSTART} ${OBJS} \ ${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext 0x100 ${DOSSTART} ${OBJS} \
${LIBLIST} >${BASE}.list ${LIBLIST} >${BASE}.list
objcopy --output-target=binary ${BASE}.sym ${BASE}.com ${OBJCOPY} --output-target=binary ${BASE}.sym ${BASE}.com
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2001/07/18 05:37:55 matt Exp $ # $NetBSD: Makefile,v 1.22 2001/09/22 03:34:19 tv Exp $
S= ${.CURDIR}/../../../.. S= ${.CURDIR}/../../../..
@ -18,7 +18,6 @@ SRCS+= ofwmagic.S
MKMAN= no MKMAN= no
STRIPFLAG= STRIPFLAG=
BINMODE= 444 BINMODE= 444
OBJCOPY?= objcopy
.if !defined(FIXCOFF) .if !defined(FIXCOFF)
.ifnmake(print-objdir) .ifnmake(print-objdir)

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.booters,v 1.2 2000/09/26 09:11:04 wdk Exp $ # $NetBSD: Makefile.booters,v 1.3 2001/09/22 03:34:20 tv Exp $
S= ${.CURDIR}/../../../.. S= ${.CURDIR}/../../../..
MIPS= ${S}/arch/mips MIPS= ${S}/arch/mips
@ -114,7 +114,7 @@ ${PROG}: machine-links ${LDSCRIPT} ${OBJS} ${LIBS}
@${SIZE} ${PROG} @${SIZE} ${PROG}
.if defined(PRIMARY_PROG) .if defined(PRIMARY_PROG)
@mv ${PROG} ${PROG}.elf @mv ${PROG} ${PROG}.elf
@objcopy --strip-all -O ecoff-bigmips -R .reginfo ${PROG}.elf ${PROG} @${OBJCOPY} --strip-all -O ecoff-bigmips -R .reginfo ${PROG}.elf ${PROG}
.endif .endif
.if defined(CHECKSIZE_CMD) .if defined(CHECKSIZE_CMD)
@${CHECKSIZE_CMD} ${PROG} ${PRIMARY_MAX_LOAD} || \ @${CHECKSIZE_CMD} ${PROG} ${PRIMARY_MAX_LOAD} || \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2001/03/04 16:15:50 tsutsui Exp $ # $NetBSD: Makefile,v 1.11 2001/09/22 03:34:20 tv Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -16,7 +16,6 @@ BINMODE= 444
SIZE?= size SIZE?= size
STRIP?= strip STRIP?= strip
OBJCOPY?= objcopy
S= ${.CURDIR}/../../../.. S= ${.CURDIR}/../../../..

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2000/02/01 05:25:43 tsutsui Exp $ # $NetBSD: Makefile,v 1.9 2001/09/22 03:34:20 tv Exp $
S= ${.CURDIR}/../../../.. S= ${.CURDIR}/../../../..
@ -8,7 +8,6 @@ MKMAN= no
STRIPFLAG= STRIPFLAG=
BINMODE= 444 BINMODE= 444
OBJCOPY?= objcopy
SIZE?= size SIZE?= size
STRIP?= strip STRIP?= strip

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2001/09/22 00:56:23 mrg Exp $ # $NetBSD: Makefile,v 1.26 2001/09/22 03:34:20 tv Exp $
STRIPFLAG= STRIPFLAG=
PROGSOURCE= boot.c net.c netif_sun.c conf.c openfirm.c bootinfo.c \ PROGSOURCE= boot.c net.c netif_sun.c conf.c openfirm.c bootinfo.c \
@ -23,8 +23,6 @@ AFLAGS+= -Wa,-32
OBJS=${SRCS:N*.h:N*.sh:N*.fth:R:S/$/.o/g} OBJS=${SRCS:N*.h:N*.sh:N*.fth:R:S/$/.o/g}
OBJCOPY?= objcopy
LINKFLAGS=-N -e start LINKFLAGS=-N -e start
.MAIN: all .MAIN: all

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/03/04 14:50:05 mrg Exp $ # $NetBSD: Makefile,v 1.3 2001/09/22 03:34:20 tv Exp $
CURDIR= ${.CURDIR} CURDIR= ${.CURDIR}
S= ${CURDIR}/../../../.. S= ${CURDIR}/../../../..
@ -21,7 +21,6 @@ CPPFLAGS+= -D_STANDALONE -DSUN4U
MKMAN= no MKMAN= no
STRIPFLAG= STRIPFLAG=
BINMODE= 444 BINMODE= 444
OBJCOPY?= objcopy
NEWVERSWHAT= "OpenFirmware Boot" NEWVERSWHAT= "OpenFirmware Boot"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/06/12 16:57:28 minoura Exp $ # $NetBSD: Makefile,v 1.8 2001/09/22 03:34:21 tv Exp $
BOOT= mboot BOOT= mboot
VERSION= 0.1 VERSION= 0.1
@ -14,7 +14,6 @@ MKMAN= no
STRIPFLAG= STRIPFLAG=
STRIP?= /usr/bin/strip STRIP?= /usr/bin/strip
OBJCOPY?= /usr/bin/objcopy
SRCS= srt0.S mboot.c SRCS= srt0.S mboot.c
KERN!= cd ${.CURDIR}/../../../..; pwd KERN!= cd ${.CURDIR}/../../../..; pwd

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2001/06/12 16:57:28 minoura Exp $ # $NetBSD: Makefile,v 1.9 2001/09/22 03:34:21 tv Exp $
BOOT= xxboot BOOT= xxboot
VERSION=0.3 VERSION=0.3
@ -18,7 +18,6 @@ SCRIPTS= installboot.sh
MKMAN= no MKMAN= no
STRIP?= strip STRIP?= strip
OBJCOPY?= objcopy
SRCS= xxboot.S bootufs.c unzip.c SRCS= xxboot.S bootufs.c unzip.c
.PATH: ${.CURDIR}/gunzip .PATH: ${.CURDIR}/gunzip

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2000/11/25 05:27:19 minoura Exp $ # $NetBSD: Makefile,v 1.8 2001/09/22 03:34:21 tv Exp $
# Makefile for loadkmap # Makefile for loadkmap
PROG= loadkmap PROG= loadkmap
@ -10,8 +10,6 @@ CLEANFILES+= ascii_kmap jis_kmap
realall: loadkmap ascii_kmap jis_kmap realall: loadkmap ascii_kmap jis_kmap
OBJCOPY?= /usr/bin/objcopy
ascii_kmap: ascii_kmap.c ascii_kmap: ascii_kmap.c
$(CC) -c -o ${.TARGET}.aout ${.CURDIR}/ascii_kmap.c $(CC) -c -o ${.TARGET}.aout ${.CURDIR}/ascii_kmap.c
${OBJCOPY} -O binary ${.TARGET}.aout ${.TARGET} ${OBJCOPY} -O binary ${.TARGET}.aout ${.TARGET}