Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add OBJCOPY_ELF2AOUT_FLAGS for some arm ports to cr...
details: https://anonhg.NetBSD.org/src/rev/87a76e77024d
branches: trunk
changeset: 767161:87a76e77024d
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Jul 10 04:36:13 2011 +0000
description:
Add OBJCOPY_ELF2AOUT_FLAGS for some arm ports to create a.out binaries
using objcopy(1) for old firmware, shared among src/distrib and
src/sys/arch/${MACHIHNE}/conf/Makefile.${MACHINE}.inc.
Discussed with mrg@ and matt@ on source-changes-d@.
diffstat:
share/mk/bsd.own.mk | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r aaf2dfd45416 -r 87a76e77024d share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Sun Jul 10 03:05:33 2011 +0000
+++ b/share/mk/bsd.own.mk Sun Jul 10 04:36:13 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.673 2011/07/02 20:21:16 matt Exp $
+# $NetBSD: bsd.own.mk,v 1.674 2011/07/10 04:36:13 tsutsui Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -436,6 +436,27 @@
FC= ${TOOL_FC.${ACTIVE_FC}}
OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}}
+# OBJCOPY flags to create a.out binaries for old firmware
+# shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc
+.if ${MACHINE_CPU} == "arm"
+OBJCOPY_ELF2AOUT_FLAGS?= \
+ -O a.out-arm-netbsd \
+ -R .ident \
+ -R .ARM.attributes \
+ -R .arm.atpcs \
+ -R .comment \
+ -R .debug_abbrev \
+ -R .debug_info \
+ -R .debug_line \
+ -R .debug_frame \
+ -R .debug_loc \
+ -R .debug_pubnames \
+ -R .debug_aranges \
+ -R .debug_str \
+ -R .debug_pubtypes \
+ -R .note.netbsd.ident
+.endif
+
#
# Targets to check if DESTDIR or RELEASEDIR is provided
#
Home |
Main Index |
Thread Index |
Old Index