Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/bootxx If a bootxx program already happe...



details:   https://anonhg.NetBSD.org/src/rev/62a475044993
branches:  trunk
changeset: 553356:62a475044993
user:      gson <gson%NetBSD.org@localhost>
date:      Wed Oct 15 03:49:57 2003 +0000

description:
If a bootxx program already happened to be a multiple of 512 bytes in
length before padding, the shell command to conditionally pad it to
a multiple of 512 bytes returned a nonzero exit status, causing the
build to fail.

diffstat:

 sys/arch/i386/stand/bootxx/Makefile.bootxx |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ac76a7d93c5c -r 62a475044993 sys/arch/i386/stand/bootxx/Makefile.bootxx
--- a/sys/arch/i386/stand/bootxx/Makefile.bootxx        Wed Oct 15 03:04:03 2003 +0000
+++ b/sys/arch/i386/stand/bootxx/Makefile.bootxx        Wed Oct 15 03:49:57 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.bootxx,v 1.12 2003/10/13 06:15:00 lukem Exp $
+# $NetBSD: Makefile.bootxx,v 1.13 2003/10/15 03:49:57 gson Exp $
 
 S=     ${.CURDIR}/../../../../../
 
@@ -150,7 +150,7 @@
        else \
                : pad to sector boundary; \
                pad=$$(( 512 - ( $$sz & 511 ) )); \
-               [ $$pad != 512 ] && \
+               [ $$pad = 512 ] || \
                    dd if=/dev/zero bs=1 count=$$pad >>${PROG} 2>/dev/null; \
                echo "${PROG} size $$sz, $$((${BOOTXX_MAXSIZE} - $$sz)) free"; \
        fi



Home | Main Index | Thread Index | Old Index