1# $NetBSD: Makefile.shark.inc,v 1.13 2010/07/06 06:00:00 mrg Exp $ 2 3MACHINE_ARCH= arm 4CPPFLAGS+= -D${MACHINE} 5GENASSYM_EXTRAS+= ${THISARM}/shark/genassym.cf 6 7# Need to convert the kernel from ELF to a.out so that OpenFirmware 8# can load it. 9 10LINKFLAGS= -T ldscript 11 12SYSTEM_LD_HEAD_EXTRA+=; \ 13 ( cat ${ARM}/conf/kern.ldscript.head ; \ 14 OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \ 15 ${SYSTEM_OBJ} ; \ 16 cat ${ARM}/conf/kern.ldscript.tail ) > ldscript 17 18SYSTEM_LD_TAIL_EXTRA+=; \ 19 echo \ 20 "${OBJCOPY} -O a.out-arm-netbsd \ 21 -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \ 22 -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \ 23 -R .debug_frame -R .debug_loc -R .debug_pubnames \ 24 -R .debug_aranges -R .ARM.attributes \ 25 $@ $@.aout"; \ 26 ${OBJCOPY} -O a.out-arm-netbsd \ 27 -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \ 28 -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \ 29 -R .debug_frame -R .debug_loc -R .debug_pubnames \ 30 -R .debug_aranges -R .ARM.attributes \ 31 $@ $@.aout 32 33KERNIMAGES= netbsd netbsd.aout 34