Makefile.cats.inc revision 1.15
11.15Schris# $NetBSD: Makefile.cats.inc,v 1.15 2003/10/04 15:43:05 chris Exp $ 21.13Sthorpej 31.13SthorpejCPPFLAGS+= -D${MACHINE} 41.3Schris 51.3Schris.if (${OBJECT_FMT} == "ELF") 61.15Schris 71.15Schris.if defined(ABLEELF) && (${ABLEELF} == "1") 81.15Schris# use a standard ELF format, adjusted to align areas 91.15SchrisLINKFLAGS= -T ${THISARM}/conf/ldscript.elf 101.15Schris 111.15Schris.else 121.12Schris# Need to convert the kernel from ELF to a.out so that the firmware 131.5Sthorpej# can load it. 141.3Schris 151.12SchrisLINKFLAGS= -T ${THISARM}/conf/kern.ldscript 161.3Schris 171.8SskrllSYSTEM_LD_TAIL_EXTRA+=; \ 181.10Stsutsui echo "${DBSYM} $@ || true"; \ 191.4Schris ${DBSYM} $@ || true; \ 201.12Schris echo \ 211.14Smatt "${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout"; \ 221.14Smatt ${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout 231.15Schris.endif 241.7Sskrll.endif 25