Module Name: src
Committed By: christos
Date: Mon Dec 31 13:37:07 UTC 2018
Modified Files:
src/sys/arch/shark/conf: Makefile.shark.inc
Log Message:
Switch to arm-elf2aout from objcopy since new binutils don't support a.out
anymore.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/shark/conf/Makefile.shark.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/shark/conf/Makefile.shark.inc
diff -u src/sys/arch/shark/conf/Makefile.shark.inc:1.26 src/sys/arch/shark/conf/Makefile.shark.inc:1.27
--- src/sys/arch/shark/conf/Makefile.shark.inc:1.26 Mon Aug 24 10:04:25 2015
+++ src/sys/arch/shark/conf/Makefile.shark.inc Mon Dec 31 08:37:07 2018
@@ -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 @@ ldscript: \
${SYSTEM_OBJ} ; \
cat ${ARM}/conf/kern.ldscript.tail ) > ldscript
+.if ${HAVE_BINUTILS} == 227
SYSTEM_LD_TAIL_EXTRA+=; \
echo "${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ [email protected]"; \
${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ [email protected]
+.else
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo "${ARM_ELF2AOUT} $@ [email protected]"; \
+ ${ARM_ELF2AOUT} $@ [email protected]
+.endif
KERNIMAGES= netbsd netbsd.aout