Makefile.shark.inc revision 1.11
1# $NetBSD: Makefile.shark.inc,v 1.11 2008/06/07 18:47:41 he Exp $ 2 3MACHINE_ARCH= arm 4CPPFLAGS+= -D${MACHINE} 5GENASSYM_EXTRAS+= ${THISARM}/shark/genassym.cf 6 7.if (${OBJECT_FMT} == "ELF") 8# Need to convert the kernel from ELF to a.out so that OpenFirmware 9# can load it. 10 11LINKFLAGS= -T ldscript 12 13SYSTEM_LD_HEAD_EXTRA+=; \ 14 ( cat ${ARM}/conf/kern.ldscript.head ; \ 15 OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \ 16 ${SYSTEM_OBJ} ; \ 17 cat ${ARM}/conf/kern.ldscript.tail ) > ldscript 18 19SYSTEM_LD_TAIL_EXTRA+=; \ 20 echo \ 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 \ 26 $@ $@.aout"; \ 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 \ 32 $@ $@.aout 33 34KERNIMAGES= netbsd netbsd.aout 35 36.endif 37