NetBSD/sys/arch/cats/conf/Makefile.cats.inc
chris 2ba81d8c9c Update elf2aout to cope with infile and outfile being the same.
Make the cats a.out kernel be called netbsd.  This means that make install installs the correct kernel
2002-02-09 11:53:58 +00:00

24 lines
787 B
PHP

# $NetBSD: Makefile.cats.inc,v 1.6 2002/02/09 11:53:59 chris Exp $
GENASSYM_EXTRAS+= ${ARM}/footbridge/genassym.cf
LOOSE_PROTOTYPES= NO
.if (${OBJECT_FMT} == "ELF")
# Need to convert the kernel from ELF to a.out so that OpenFirmware
# can load it.
# 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.
LOADADDRESS=0xF0000020
SYSTEM_LD_TAIL_EXTRA=; \
${DBSYM} $@ || true; \
echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
${ARM}/conf/elf2aout.sh $@ $@; \
OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
${ARM}/conf/elf2aout.sh $@ $@
.endif