NetBSD/sys/arch/shark/conf/Makefile.shark.inc

19 lines
559 B
PHP

# $NetBSD: Makefile.shark.inc,v 1.4 2003/09/21 00:20:28 matt Exp $
CPPFLAGS+= -D${MACHINE}
GENASSYM_EXTRAS+= ${THISARM}/shark/genassym.cf
.if (${OBJECT_FMT} == "ELF")
# Need to convert the kernel from ELF to a.out so that OpenFirmware
# can load it.
LINKFLAGS= -T ${THISARM}/conf/kern.ldscript
SYSTEM_LD_TAIL_EXTRA+=; \
echo "${DBSYM} $@ || true"; \
${DBSYM} $@ || true; \
echo \
"${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout"; \
${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout
.endif