2003-10-04 19:43:05 +04:00
|
|
|
# $NetBSD: Makefile.cats.inc,v 1.15 2003/10/04 15:43:05 chris Exp $
|
2003-01-03 05:34:48 +03:00
|
|
|
|
|
|
|
CPPFLAGS+= -D${MACHINE}
|
2002-01-31 13:37:41 +03:00
|
|
|
|
|
|
|
.if (${OBJECT_FMT} == "ELF")
|
2003-10-04 19:43:05 +04:00
|
|
|
|
|
|
|
.if defined(ABLEELF) && (${ABLEELF} == "1")
|
|
|
|
# use a standard ELF format, adjusted to align areas
|
|
|
|
LINKFLAGS= -T ${THISARM}/conf/ldscript.elf
|
|
|
|
|
|
|
|
.else
|
2002-11-21 05:05:08 +03:00
|
|
|
# Need to convert the kernel from ELF to a.out so that the firmware
|
2002-02-06 22:59:01 +03:00
|
|
|
# can load it.
|
2002-01-31 13:37:41 +03:00
|
|
|
|
2002-11-21 05:05:08 +03:00
|
|
|
LINKFLAGS= -T ${THISARM}/conf/kern.ldscript
|
2002-01-31 13:37:41 +03:00
|
|
|
|
2002-04-11 20:33:58 +04:00
|
|
|
SYSTEM_LD_TAIL_EXTRA+=; \
|
2002-10-29 17:33:32 +03:00
|
|
|
echo "${DBSYM} $@ || true"; \
|
2002-02-06 03:55:56 +03:00
|
|
|
${DBSYM} $@ || true; \
|
2002-11-21 05:05:08 +03:00
|
|
|
echo \
|
2003-09-21 19:21:03 +04:00
|
|
|
"${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
|
2002-04-04 20:04:22 +04:00
|
|
|
.endif
|
2003-10-04 19:43:05 +04:00
|
|
|
.endif
|