4 # Don't strip the ECOFF'ed version on install -- strip gets confused by that,
5 # and it's already stripped since it's a copy of the stripped ELF one.
9 SRCS
= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \
13 ${PROG}: ip2xboot ip3xboot
14 .if
${MACHINE_ARCH} == "mipseb"
15 ${OBJCOPY} --impure
-O ecoff-bigmips \
16 -R .pdr
-R .mdebug.nabi32
-R .mdebug.abi32 \
17 -R .comment
-R .ident \
23 # XXX Temporary hack to install the ELF version, too.
24 FILES
+= ip2xboot ip3xboot
25 CLEANFILES
+= ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
27 CLEANFILES
+= ip2xboot.map ip3xboot.map
29 .
include "../Makefile.booters"
31 ip3xboot
: ${OBJS} ${LIBS}
32 ${LD} -Map
${.TARGET
}.map
-N
-x
-Ttext
${LOAD_ADDRESS_IP32} ${LDBUG} \
33 -e start
-o
${.TARGET
}.elf
${OBJS} ${LIBS}
34 @
${STRIP} -s
${.TARGET
}.elf
-o
${.TARGET
}
37 ip2xboot
: ${OBJS} ${LIBS}
38 ${LD} -Map
${.TARGET
}.map
-N
-x
-Ttext
${LOAD_ADDRESS} ${LDBUG} \
39 -e start
-o
${.TARGET
}.elf
${OBJS} ${LIBS}
40 @
${STRIP} -s
${.TARGET
}.elf
-o
${.TARGET
}
43 cleandir
distclean: cleanlibdir