Makefile.cats.inc revision 1.26
11.26Smatt# $NetBSD: Makefile.cats.inc,v 1.26 2013/06/27 01:01:08 matt Exp $ 21.13Sthorpej 31.26SmattMACHINE_ARCH?= arm 41.13SthorpejCPPFLAGS+= -D${MACHINE} 51.3Schris 61.15Schris.if defined(ABLEELF) && (${ABLEELF} == "1") 71.15Schris# use a standard ELF format, adjusted to align areas 81.15SchrisLINKFLAGS= -T ${THISARM}/conf/ldscript.elf 91.15Schris 101.15Schris.else 111.12Schris# Need to convert the kernel from ELF to a.out so that the firmware 121.5Sthorpej# can load it. 131.3Schris 141.16SchsLINKFLAGS= -T ldscript 151.16Schs 161.16SchsSYSTEM_LD_HEAD_EXTRA+=; \ 171.16Schs ( cat ${ARM}/conf/kern.ldscript.head ; \ 181.18Stsutsui OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \ 191.16Schs ${SYSTEM_OBJ} ; \ 201.16Schs cat ${ARM}/conf/kern.ldscript.tail ) > ldscript 211.3Schris 221.8SskrllSYSTEM_LD_TAIL_EXTRA+=; \ 231.25Stsutsui echo "${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ $@.aout"; \ 241.25Stsutsui ${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ $@.aout 251.15Schris.endif 26