NetBSD/sys/arch/arc/conf/Makefile.arc.inc
tsutsui 7d5571319d Remove .mdebug and .ident sections from ECOFF kernels so that
the ARC BIOS can load ECOFF kernels built with new-toolchain properly.
2002-01-12 04:07:27 +00:00

13 lines
378 B
PHP

# $NetBSD: Makefile.arc.inc,v 1.6 2002/01/12 04:07:27 tsutsui Exp $
CFLAGS+= -mips2 -mcpu=r4000
AFLAGS+= -mips2
# XXX
SYSTEM_LD_TAIL_EXTRA=; \
echo ${OBJCOPY} -O ecoff-littlemips -R .mdebug -R .ident $@ $@.ecoff; \
${OBJCOPY} -O ecoff-littlemips -R .mdebug -R .ident $@ $@.ecoff
# XXX works *only* for kernels with one config line named "netbsd"
EXTRA_CLEAN+= netbsd.ecoff