xref: /netbsd/sys/arch/cats/conf/Makefile.cats.inc (revision bf9ec67e)
1#	$NetBSD: Makefile.cats.inc,v 1.8 2002/04/11 16:33:58 skrll Exp $
2
3GENASSYM_EXTRAS+=	${ARM}/footbridge/genassym.cf
4LOOSE_PROTOTYPES=	NO
5
6.if (${OBJECT_FMT} == "ELF")
7# Need to convert the kernel from ELF to a.out so that OpenFirmware
8# can load it.
9
10# ZMAGIC a.out includes the a.out header in front of the text
11# segment, so if we link the kernel at the normal load address,
12# it will be wrong once the a.out header is stuck in the file.
13# XXX HOWEVER, by linking it +32 bytes to compensate, the resulting
14# XXX ELF kernel cannot be booted itself.
15LOADADDRESS=0xF0000020
16
17SYSTEM_LD_TAIL_EXTRA+=; \
18	${DBSYM} $@ || true; \
19	echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
20	    ${ARM}/conf/elf2aout.sh $@ $@.aout; \
21	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
22	    ${ARM}/conf/elf2aout.sh $@ $@.aout
23.endif
24