ELF2ECOFF -> MIPS_ELF2ECOFF

This commit is contained in:
christos 2019-01-01 19:41:04 +00:00
parent 8adbf7c67a
commit f073fd018a
8 changed files with 19 additions and 16 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.22 2017/04/08 19:53:20 christos Exp $
# $NetBSD: Makefile,v 1.23 2019/01/01 19:41:04 christos Exp $
WARNS ?= 1
NOMAN =
@ -126,7 +126,7 @@ ${PROG}: ${BINKERNEL_DUMMY_O} ${OBJS} ${LIBS}
${PROG}.coff: ${PROG}
${_MKTARGET_CREATE}
${ELF2ECOFF} ${PROG} ${.TARGET}.tmp
${MIPS_ELF2ECOFF} ${PROG} ${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}
${BOOT_KERNEL}.gz: ${BINKERNEL_O} ${OBJS} ${LIBS}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.mips,v 1.69 2018/09/22 12:24:02 rin Exp $
# $NetBSD: Makefile.mips,v 1.70 2019/01/01 19:41:04 christos Exp $
# Makefile for NetBSD
#
@ -25,7 +25,7 @@ NEED_OWN_INSTALL_TARGET?=no
## (0) toolchain settings for things that aren't part of the standard
## toolchain
##
ELF2ECOFF?= elf2ecoff
MIPS_ELF2ECOFF?= elf2ecoff
##
## (1) port identification

View File

@ -1,7 +1,8 @@
# $NetBSD: Makefile.mipsco.inc,v 1.6 2002/11/15 10:12:40 wdk Exp $
# $NetBSD: Makefile.mipsco.inc,v 1.7 2019/01/01 19:41:04 christos Exp $
SYSTEM_LD_TAIL_EXTRA=; \
echo ${ELF2ECOFF} $@ $@.ecoff; ${ELF2ECOFF} $@ $@.ecoff; \
echo ${MIPS_ELF2ECOFF} $@ $@.ecoff; \
${MIPS_ELF2ECOFF} $@ $@.ecoff; \
${SIZE} $@.ecoff; chmod 755 $@.ecoff
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ecoff@}

View File

@ -1,7 +1,8 @@
# $NetBSD: Makefile.pmax.inc,v 1.6 2009/12/14 00:46:09 matt Exp $
# $NetBSD: Makefile.pmax.inc,v 1.7 2019/01/01 19:41:04 christos Exp $
.if ${MACHINE_ARCH} == "mipsel"
SYSTEM_LD_TAIL_EXTRA=; \
echo ${ELF2ECOFF} $@ $@.ecoff; ${ELF2ECOFF} $@ $@.ecoff; \
echo ${MIPS_ELF2ECOFF} $@ $@.ecoff; \
${MIPS_ELF2ECOFF} $@ $@.ecoff; \
chmod 755 $@.ecoff
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.booters,v 1.63 2017/04/08 19:53:22 christos Exp $
# $NetBSD: Makefile.booters,v 1.64 2019/01/01 19:41:04 christos Exp $
NOMAN= # defined
NOPIE= # defined
@ -118,7 +118,7 @@ ${PROG}: ${OBJS} ${LIBS}
.if defined(DO_ECOFF_BINARY)
@echo -n "Creating ECOFF binary... "
@mv ${PROG} ${PROG}.elf
@${ELF2ECOFF} ${PROG}.elf ${PROG}
@${MIPS_ELF2ECOFF} ${PROG}.elf ${PROG}
.endif
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2002/04/12 05:11:18 lukem Exp $
# $NetBSD: Makefile,v 1.6 2019/01/01 19:41:04 christos Exp $
PROG= setnetimage
NOMAN= # defined
@ -27,7 +27,7 @@ smallnet.elf: ${SNDIR}/smallnet
kernel: smallnet.elf
./${PROG} ${KERNEL} ${.ALLSRC}
${ELF2ECOFF} smallnet.elf smallnet
${MIPS_ELF2ECOFF} smallnet.elf smallnet
.endif
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.sgimips.inc,v 1.12 2011/02/20 07:59:49 matt Exp $
# $NetBSD: Makefile.sgimips.inc,v 1.13 2019/01/01 19:41:04 christos Exp $
WANT_ECOFF?=no
@ -6,6 +6,7 @@ GENASSYM_EXTRAS+= ${S}/dev/arcbios/genassym.cf
.if ${WANT_ECOFF} == "yes"
SYSTEM_LD_TAIL_EXTRA=; \
echo ${ELF2ECOFF} $@ $@.ecoff; ${ELF2ECOFF} $@ $@.ecoff; \
echo ${MIPS_ELF2ECOFF} $@ $@.ecoff; \
${MIPS_ELF2ECOFF} $@ $@.ecoff; \
chmod 755 $@.ecoff
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2018/09/02 12:06:16 tsutsui Exp $
# $NetBSD: Makefile,v 1.21 2019/01/01 19:41:05 christos Exp $
# Don't strip the ECOFF'ed version on install -- strip gets confused by that,
@ -12,7 +12,7 @@ SRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \
PROG= aoutboot
${PROG}: ip2xboot ip3xboot
.if ${MACHINE_ARCH} == "mipseb"
${ELF2ECOFF} ip2xboot ${.TARGET}
${MIPS_ELF2ECOFF} ip2xboot ${.TARGET}
.else
touch ${.TARGET}
.endif