Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/shark/conf Switch to arm-elf2aout from objcopy sinc...



details:   https://anonhg.NetBSD.org/src/rev/0511f9654924
branches:  trunk
changeset: 838045:0511f9654924
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 31 13:37:07 2018 +0000

description:
Switch to arm-elf2aout from objcopy since new binutils don't support a.out
anymore.

diffstat:

 sys/arch/shark/conf/Makefile.shark.inc |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 795828143b23 -r 0511f9654924 sys/arch/shark/conf/Makefile.shark.inc
--- a/sys/arch/shark/conf/Makefile.shark.inc    Mon Dec 31 13:35:15 2018 +0000
+++ b/sys/arch/shark/conf/Makefile.shark.inc    Mon Dec 31 13:37:07 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.shark.inc,v 1.26 2015/08/24 14:04:25 uebayasi Exp $
+#      $NetBSD: Makefile.shark.inc,v 1.27 2018/12/31 13:37:07 christos Exp $
 
 CPPFLAGS+=             -D${MACHINE}
 CFLAGS+=               -fno-unwind-tables
@@ -22,8 +22,14 @@
                ${SYSTEM_OBJ} ; \
          cat ${ARM}/conf/kern.ldscript.tail ) > ldscript
 
+.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
 
 KERNIMAGES=    netbsd netbsd.aout



Home | Main Index | Thread Index | Old Index