xref: /netbsd/sys/arch/cats/conf/Makefile.cats.inc (revision c4a72b64)
1#	$NetBSD: Makefile.cats.inc,v 1.12 2002/11/21 02:05:08 chris Exp $
2
3.if (${OBJECT_FMT} == "ELF")
4# Need to convert the kernel from ELF to a.out so that the firmware
5# can load it.
6
7LINKFLAGS=	-T ${THISARM}/conf/kern.ldscript
8
9SYSTEM_LD_TAIL_EXTRA+=; \
10	echo "${DBSYM} $@ || true"; \
11	${DBSYM} $@ || true; \
12	echo \
13	 "${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs $@ $@.aout"; \
14	${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs $@ $@.aout
15.endif
16