2002-02-06 22:59:01 +03:00
|
|
|
# $NetBSD: Makefile.cats.inc,v 1.5 2002/02/06 19:59:01 thorpej Exp $
|
2001-11-27 03:15:58 +03:00
|
|
|
|
|
|
|
GENASSYM_EXTRAS+= ${ARM}/footbridge/genassym.cf
|
2002-01-31 12:53:33 +03:00
|
|
|
LOOSE_PROTOTYPES= NO
|
2002-01-31 13:37:41 +03:00
|
|
|
|
|
|
|
.if (${OBJECT_FMT} == "ELF")
|
2002-02-06 22:59:01 +03:00
|
|
|
# Need to convert the kernel from ELF to a.out so that OpenFirmware
|
|
|
|
# can load it.
|
2002-01-31 13:37:41 +03:00
|
|
|
|
2002-02-06 22:59:01 +03:00
|
|
|
# ZMAGIC a.out includes the a.out header in front of the text
|
|
|
|
# segment, so if we link the kernel at the normal load address,
|
|
|
|
# it will be wrong once the a.out header is stuck in the file.
|
|
|
|
# XXX HOWEVER, by linking it +32 bytes to compensate, the resulting
|
|
|
|
# XXX ELF kernel cannot be booted itself.
|
2002-02-06 03:55:56 +03:00
|
|
|
LOADADDRESS=0xF0000020
|
2002-01-31 13:37:41 +03:00
|
|
|
|
2002-02-06 03:55:56 +03:00
|
|
|
SYSTEM_LD_TAIL_EXTRA=; \
|
|
|
|
${DBSYM} $@ || true; \
|
2002-02-06 22:59:01 +03:00
|
|
|
echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
|
|
|
|
${ARM}/conf/elf2aout.sh $@ $@.aout; \
|
|
|
|
OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
|
|
|
|
${ARM}/conf/elf2aout.sh $@ $@.aout
|
2002-01-31 13:37:41 +03:00
|
|
|
.endif
|