freebsd-dev/sys/boot/alpha/boot1/Makefile
Mike Smith c2f9d95de5 This is the new unified bootstrap, sometimes known previously as the
'three-stage' bootstrap.
There are a number of caveats with the code in its current state:
 - The i386 bootstrap only supports booting from a floppy.
 - The kernel and kld do not yet know how to deal with the extended
   information and module summary passed in.
 - PnP-based autodetection and demand loading of modules is not implemented.
 - i386 ELF kernel loading is not ready yet.
 - The i386 bootstrap is loaded via an ugly blockmap.

On the alpha, both net- and disk-booting (SRM console machines only) is
supported.  No blockmaps are used by this code.

Obtained from:	Parts from the NetBSD/i386 standalone bootstrap.
1998-08-21 03:17:42 +00:00

48 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.15 1998/03/28 00:21:35 thorpej Exp $
.include <../Makefile.inc>
PROG = boot1
.PATH: ${.CURDIR}/../../common
.PATH: ${.CURDIR}/../libalpha
SRCS= start.S boot1.c sys.c
CFLAGS+= -mno-fp-regs
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
LIBSTANDDIR= /home/dfr/FreeBSD/alpha/src/lib/libstand
LIBSTAND= ${LIBSTANDDIR}/obj/libstand.a
CFLAGS+= -I${LIBSTANDDIR}
LIBALPHA= ${.CURDIR}/../libalpha/obj/libalpha.a
CFLAGS+= -I${.CURDIR}/..
CFLAGS+= -DSECONDARY_LOAD_ADDRESS=0x${SECONDARY_LOAD_ADDRESS} -DMINIMAL
NOMAN=1
STRIP=
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
CLEANFILES+= ${PROG}.sym ${PROG}.nosym ${PROG}.list
all: ${PROG}
afterinstall:
ln -sf boot1 /usr/mdec/sdboot
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
strip ${PROG}.nosym
${PROG}: ${PROG}.nosym
objcopy -O binary ${PROG}.nosym ${PROG}
.include <bsd.prog.mk>
start.o: ${.CURDIR}/../libalpha/start.S
${CC} -c -DPRIMARY_BOOTBLOCK $<
${PROG}.sym: ${OBJS} ${LIBKERN}
${LD} -M -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS} \
${LIBSTAND} ${LIBALPHA} ${LIBSTAND} > ${.OBJDIR}/${PROG}.list
size ${PROG}.sym