aabfa72384
- Build an ECOFF version of the bootloader as "boot". As a temporary measure (due to a bug in libbfd which has not yet been fixed, but for which a work-around exists as a patch), install and ELF version of the bootload as well as "boot.elf". "boot.elf" will go away once the toolchain issue is resolved.
24 lines
582 B
Makefile
24 lines
582 B
Makefile
# $NetBSD: Makefile,v 1.3 2001/11/22 00:58:08 thorpej Exp $
|
|
|
|
PROG= boot
|
|
|
|
SRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
|
|
|
|
${PROG}: ${PROG}.elf
|
|
${OBJCOPY} -O ecoff-bigmips ${PROG}.elf ${PROG}
|
|
@${SIZE} ${PROG}
|
|
|
|
# XXX Temporary hack to install the ELF verision, too.
|
|
FILES+= ${PROG}.elf
|
|
CLEANFILES+= ${PROG}.elf
|
|
|
|
CLEANFILES+= ${PROG}.map
|
|
|
|
.include "../Makefile.booters"
|
|
|
|
${PROG}.elf: ${OBJS} ${LIBS}
|
|
${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
|
|
-e start -o ${PROG}.elf ${OBJS} ${LIBS}
|
|
@${STRIP} -s ${PROG}.elf
|
|
@${SIZE} ${PROG}.elf
|