Makefile.cats.inc revision 1.25
11.25Stsutsui# $NetBSD: Makefile.cats.inc,v 1.25 2011/07/10 04:37:56 tsutsui Exp $ 21.13Sthorpej 31.16SchsMACHINE_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