diff options
author | rnordier <rnordier@FreeBSD.org> | 1998-10-20 20:20:48 +0000 |
---|---|---|
committer | rnordier <rnordier@FreeBSD.org> | 1998-10-20 20:20:48 +0000 |
commit | f8807b8fc154475494280090923ce6f4d311d64e (patch) | |
tree | 16e19c5ac7ea7fdfcae995615867f4a492ea8130 /sys/boot/i386/gptboot | |
parent | d237d225342ff374e09aa38ba5891ea25e3ffa5f (diff) | |
download | FreeBSD-src-f8807b8fc154475494280090923ce6f4d311d64e.zip FreeBSD-src-f8807b8fc154475494280090923ce6f4d311d64e.tar.gz |
Make serial port, data format, and bps configurable.
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r-- | sys/boot/i386/gptboot/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile index e36df60..d0d5fef 100644 --- a/sys/boot/i386/gptboot/Makefile +++ b/sys/boot/i386/gptboot/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.6 1998/10/15 20:04:21 rnordier Exp $ +# $Id: Makefile,v 1.7 1998/10/15 22:08:13 rnordier Exp $ PROG= boot2 NOMAN= @@ -11,6 +11,10 @@ CLEANFILES+= boot1 boot1.out boot1.o \ M4?= m4 +B2SIOPRT?= 0x3f8 +B2SIOFMT?= 0x3 +B2SIODIV?= 0xc + .if exists(${.OBJDIR}/../btx) BTX= ${.OBJDIR}/../btx .else @@ -58,7 +62,9 @@ boot2.out: boot2.o sio.o ${BTX}/lib/crt0.o boot2.o sio.o sio.o: sio.s - ${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC} + (cd ${.CURDIR}; ${M4} -DSIOPRT=${B2SIOPRT} \ + -DSIOFMT=${B2SIOFMT} -DSIODIV=${B2SIODIV} sio.s) | \ + ${AS} ${AFLAGS} -o ${.TARGET} install: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ |