Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/cats/conf Switch to elf2aout for new binutils



details:   https://anonhg.NetBSD.org/src/rev/aee9c4bb917c
branches:  trunk
changeset: 447106:aee9c4bb917c
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 31 13:30:17 2018 +0000

description:
Switch to elf2aout for new binutils

diffstat:

 sys/arch/cats/conf/Makefile.cats.inc |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 1a78414185fb -r aee9c4bb917c sys/arch/cats/conf/Makefile.cats.inc
--- a/sys/arch/cats/conf/Makefile.cats.inc      Mon Dec 31 13:05:07 2018 +0000
+++ b/sys/arch/cats/conf/Makefile.cats.inc      Mon Dec 31 13:30:17 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.cats.inc,v 1.35 2015/08/24 14:04:24 uebayasi Exp $
+#      $NetBSD: Makefile.cats.inc,v 1.36 2018/12/31 13:30:17 christos Exp $
 
 MACHINE_ARCH?= arm
 CPPFLAGS+=     -D${MACHINE}
@@ -27,9 +27,14 @@
          OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \
                ${SYSTEM_OBJ} ; \
          cat ${ARM}/conf/kern.ldscript.tail ) > $@
-
+.if ${HAVE_BINUTILS} == 227
 SYSTEM_LD_TAIL_EXTRA+=; \
        echo "${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ $@.aout"; \
        ${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ $@.aout
+.else
+SYSTEM_LD_TAIL_EXTRA+=; \
+       echo "${ARM_ELF2AOUT} $@ $@.aout"; \
+       ${ARM_ELF2AOUT} $@ $@.aout
+.endif
 .endif
 



Home | Main Index | Thread Index | Old Index