Makefile.cats.inc revision 1.5
11.5Sthorpej# $NetBSD: Makefile.cats.inc,v 1.5 2002/02/06 19:59:01 thorpej Exp $ 21.1Sthorpej 31.1SthorpejGENASSYM_EXTRAS+= ${ARM}/footbridge/genassym.cf 41.2SchrisLOOSE_PROTOTYPES= NO 51.3Schris 61.3Schris.if (${OBJECT_FMT} == "ELF") 71.5Sthorpej# Need to convert the kernel from ELF to a.out so that OpenFirmware 81.5Sthorpej# can load it. 91.3Schris 101.5Sthorpej# ZMAGIC a.out includes the a.out header in front of the text 111.5Sthorpej# segment, so if we link the kernel at the normal load address, 121.5Sthorpej# it will be wrong once the a.out header is stuck in the file. 131.5Sthorpej# XXX HOWEVER, by linking it +32 bytes to compensate, the resulting 141.5Sthorpej# XXX ELF kernel cannot be booted itself. 151.4SchrisLOADADDRESS=0xF0000020 161.3Schris 171.4SchrisSYSTEM_LD_TAIL_EXTRA=; \ 181.4Schris ${DBSYM} $@ || true; \ 191.5Sthorpej echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \ 201.5Sthorpej ${ARM}/conf/elf2aout.sh $@ $@.aout; \ 211.5Sthorpej OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \ 221.5Sthorpej ${ARM}/conf/elf2aout.sh $@ $@.aout 231.3Schris.endif 24