Makefile.shark.inc revision 1.1
11.1Sthorpej# $NetBSD: Makefile.shark.inc,v 1.1 2002/02/10 01:57:02 thorpej Exp $ 21.1Sthorpej 31.1SthorpejGENASSYM_EXTRAS+= ${THISARM}/shark/genassym.cf 41.1Sthorpej 51.1Sthorpej.if (${OBJECT_FMT} == "ELF") 61.1Sthorpej# Need to convert the kernel from ELF to a.out so that OpenFirmware 71.1Sthorpej# can load it. 81.1Sthorpej 91.1Sthorpej# ZMAGIC a.out includes the a.out header in front of the text 101.1Sthorpej# segment, so if we link the kernel at the normal load address, 111.1Sthorpej# it will be wrong once the a.out header is stuck in the file. 121.1Sthorpej# XXX HOWEVER, by linking it +32 bytes to compensate, the resulting 131.1Sthorpej# XXX ELF kernel cannot be booted itself. 141.1SthorpejLOADADDRESS=0xF0000020 151.1Sthorpej 161.1SthorpejSYSTEM_LD_TAIL_EXTRA+=; \ 171.1Sthorpej ${DBSYM} $@ || true; \ 181.1Sthorpej echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \ 191.1Sthorpej ${ARM}/conf/elf2aout.sh $@ $@.aout; \ 201.1Sthorpej OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \ 211.1Sthorpej ${ARM}/conf/elf2aout.sh $@ $@.aout 221.1Sthorpej.endif 23