diff options
author | phk <phk@FreeBSD.org> | 1995-04-20 18:36:14 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-04-20 18:36:14 +0000 |
commit | f4b86adcb0fffe02c9b00b60f1817b00577c0c0b (patch) | |
tree | 797d83773c1fd559e1ac83eeccd4e71d7687ee3b /sys/i386/boot/biosboot/Makefile | |
parent | 880782d69872e9ec4c1c4087e903ec50d412be35 (diff) | |
download | FreeBSD-src-f4b86adcb0fffe02c9b00b60f1817b00577c0c0b.zip FreeBSD-src-f4b86adcb0fffe02c9b00b60f1817b00577c0c0b.tar.gz |
Added a check so compilation fails if the bootblocks are too big.
replaces a switch with ifs to reduce size.
Diffstat (limited to 'sys/i386/boot/biosboot/Makefile')
-rw-r--r-- | sys/i386/boot/biosboot/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/i386/boot/biosboot/Makefile b/sys/i386/boot/biosboot/Makefile index 1d39914..ee8a044 100644 --- a/sys/i386/boot/biosboot/Makefile +++ b/sys/i386/boot/biosboot/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.27 1995/03/28 19:22:39 phk Exp $ +# $Id: Makefile,v 1.28 1995/04/14 21:26:47 joerg Exp $ # PROG= boot @@ -15,7 +15,7 @@ CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../.. # force usage of serial console instead of keyboard probing #CFLAGS+= -DFORCE_COMCONSOLE -CLEANFILES+= boot.nohdr boot.strip boot1 boot2 +CLEANFILES+= boot.nohdr boot.strip boot1 boot2 sizetest DPADD= ${LIBC} LDFLAGS+= -N -T 0 -nostdlib LDADD= -lc @@ -50,6 +50,10 @@ boot1: boot.nohdr boot2: boot.nohdr dd if=boot.nohdr of=boot2 bs=512 skip=1 + dd if=boot2 skip=14 of=sizetest + if [ -s sizetest ] ; then \ + echo "*** Boot2 is too BIG ***" ; exit 2 ; \ + fi all: boot1 boot2 |