also create boot.ip32 with the entry point set to the IP32 load address
from Chris Sekiya
This commit is contained in:
parent
fb83173bb6
commit
2f32342d20
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.booters,v 1.7 2002/11/10 17:12:58 thorpej Exp $
|
||||
# $NetBSD: Makefile.booters,v 1.8 2002/12/23 19:31:24 pooka Exp $
|
||||
|
||||
# $S must correspond to the top of the 'sys' tree
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
@ -36,7 +36,9 @@ NOMAN= # defined
|
|||
# We load the kernel at 420K in from the start of RAM to give the boot
|
||||
# loader plenty of breathing room. Load the boot loader starting at
|
||||
# the second page of RAM.
|
||||
# A warm thank-you to SGI for making load addresses different :)
|
||||
LOAD_ADDRESS?= 0x88002000
|
||||
LOAD_ADDRESS_IP32?= 0x80002000
|
||||
|
||||
# if there is a 'version' file, add rule for vers.c and add it to SRCS
|
||||
# and CLEANFILES
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.4 2002/07/12 13:04:03 rafal Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2002/12/23 19:31:25 pooka Exp $
|
||||
|
||||
PROG= boot
|
||||
|
||||
|
@ -9,18 +9,24 @@ STRIPFLAG=
|
|||
|
||||
SRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
|
||||
|
||||
${PROG}: ${PROG}.elf
|
||||
${PROG}: ${PROG}.elf ${PROG}.ip32
|
||||
${ELF2ECOFF} ${PROG}.elf ${PROG}
|
||||
@${SIZE} ${PROG}
|
||||
|
||||
# XXX Temporary hack to install the ELF verision, too.
|
||||
FILES+= ${PROG}.elf
|
||||
CLEANFILES+= ${PROG}.elf
|
||||
FILES+= ${PROG}.elf ${PROG}.ip32
|
||||
CLEANFILES+= ${PROG}.elf ${PROG}.ip32
|
||||
|
||||
CLEANFILES+= ${PROG}.map
|
||||
|
||||
.include "../Makefile.booters"
|
||||
|
||||
${PROG}.ip32: ${OBJS} ${LIBS}
|
||||
${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
|
||||
-e start -o ${PROG}.ip32 ${OBJS} ${LIBS}
|
||||
@${STRIP} -s ${PROG}.ip32
|
||||
@${SIZE} ${PROG}.ip32
|
||||
|
||||
${PROG}.elf: ${OBJS} ${LIBS}
|
||||
${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
|
||||
-e start -o ${PROG}.elf ${OBJS} ${LIBS}
|
||||
|
|
Loading…
Reference in New Issue