diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-17 22:43:09 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-17 22:43:09 +0000 |
commit | 66ba72288b2dc8afd721bf44d9cf5c518b12a4b6 (patch) | |
tree | 2a98bc126a51f48d960e2fa7b8c1523607d06fdc /sys/arch/i386/boot | |
parent | d0e1166cfff3bc2264dd9b9ba6d62bee9e6996e1 (diff) |
proper size/stripping/handling
Diffstat (limited to 'sys/arch/i386/boot')
-rw-r--r-- | sys/arch/i386/boot/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/i386/boot/Makefile b/sys/arch/i386/boot/Makefile index 7e10e288ade..f89420c52fa 100644 --- a/sys/arch/i386/boot/Makefile +++ b/sys/arch/i386/boot/Makefile @@ -47,14 +47,16 @@ CFLAGS+=-DDO_BAD144 -I. -I${.CURDIR} -I$S -I${.CURDIR}/../.. OBJS= start.o table.o boot.o asm.o bios.o io.o disk.o sys.o version.o \ serial.o -boot: ${OBJS} - ${LD} -Bstatic -e start -N -T 0 -o boot ${OBJS} - cp boot boot.sym - @if [ `size boot | awk 'BEGIN {getline} {print $$1+$$2}'` -gt 7680 ];\ +boot.sym: ${OBJS} + ${LD} -Bstatic -e start -N -T 0 -o boot.sym ${OBJS} + +boot: boot.sym + @if [ `size boot.sym | awk 'BEGIN {getline} {print $$1+$$2}'` -gt 7680 ];\ then \ echo BOOT BLOCKS ARE TOO BIG;\ - fail;\ + exit 1; \ fi + @cp boot.sym boot @strip boot @sh ${.CURDIR}/rmaouthdr boot boot.tmp @mv -f boot.tmp boot |