Module Name:    src
Committed By:   tsutsui
Date:           Sun Jul 10 04:36:13 UTC 2011

Modified Files:
        src/share/mk: bsd.own.mk

Log Message:
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@.


To generate a diff of this commit:
cvs rdiff -u -r1.673 -r1.674 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.673 src/share/mk/bsd.own.mk:1.674
--- src/share/mk/bsd.own.mk:1.673	Sat Jul  2 20:21:16 2011
+++ src/share/mk/bsd.own.mk	Sun Jul 10 04:36:13 2011
@@ -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
 #

Reply via email to