1 # $NetBSD: Makefile.shark.inc,v 1.11 2008/06/07 18:47:41 he Exp $
4 CPPFLAGS+= -D${MACHINE}
5 GENASSYM_EXTRAS+= ${THISARM}/shark/genassym.cf
7 .if (${OBJECT_FMT} == "ELF")
8 # Need to convert the kernel from ELF to a.out so that OpenFirmware
11 LINKFLAGS= -T ldscript
13 SYSTEM_LD_HEAD_EXTRA+=; \
14 ( cat ${ARM}/conf/kern.ldscript.head ; \
15 OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \
17 cat ${ARM}/conf/kern.ldscript.tail ) > ldscript
19 SYSTEM_LD_TAIL_EXTRA+=; \
21 "${OBJCOPY} -O a.out-arm-netbsd \
22 -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
23 -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
24 -R .debug_frame -R .debug_loc -R .debug_pubnames \
25 -R .debug_aranges -R .ARM.attributes \
27 ${OBJCOPY} -O a.out-arm-netbsd \
28 -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
29 -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
30 -R .debug_frame -R .debug_loc -R .debug_pubnames \
31 -R .debug_aranges -R .ARM.attributes \
34 KERNIMAGES= netbsd netbsd.aout