Subject: port-i386/7553: make netboot.com in /usr/src/sys/arch/i386/stand/netboot missing lines
To: None <gnats-bugs@gnats.netbsd.org>
From: David Rankin <drankin@bohemians.lexington.ky.us>
List: netbsd-bugs
Date: 05/11/1999 11:51:09
>Number:         7553
>Category:       port-i386
>Synopsis:       make netboot.com in /usr/src/sys/arch/i386/stand/netboot missing lines
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer (NetBSD/i386 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 11 11:50:01 1999
>Last-Modified:
>Originator:     David Rankin
>Organization:
Bohemians Unincorporated
>Release:        NetBSD-1.4
>Environment:
	
System: NetBSD portia 1.3I NetBSD 1.3I (PORTIA) #13: Tue Mar 30 00:03:19 EST 1999 drankin@oldtom:/usr/src/sys/arch/i386/compile/PORTIA i386


>Description:
When doing "make netboot.com" or " make netboot.rom" in a clean
/usr/src/sys/arch/i386/stand/netboot, the make fails on missing .h files
in machine.

>How-To-Repeat:
cd /usr/src/sys/arch/i386/stand/netboot
make clean
make netboot.com

>Fix:
Apply this patch (or make other changes to file to make same effect).


--- /usr/src/sys/arch/i386/stand/Makefile.booters.bak	Tue May 11 14:30:31 1999
+++ /usr/src/sys/arch/i386/stand/Makefile.booters	Tue May 11 14:32:41 1999
@@ -65,11 +65,11 @@
 	sh ${I386_STAND_DIR}/newvers.sh ${.ALLSRC} ${NEWVERSWHAT}
 	${COMPILE.c} vers.c
 
-${BASE}.sym: ${BSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o
+${BASE}.sym: ${.OBJDIR}/machine ${BSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o 
 	${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext 0 ${BSSTART} ${OBJS} \
 	vers.o ${LIBI386} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} >${BASE}.list
 
-${BASE}.rom: ${GENPROM} ${ROMSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o
+${BASE}.rom: ${.OBJDIR}/machine ${GENPROM} ${ROMSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o 
 	${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext ${RELOC} ${ROMSTART} ${OBJS} \
 	vers.o ${LIBI386} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} >${BASE}.list
 	cp ${BASE}.sym ${BASE}.bin
@@ -78,7 +78,7 @@
 		ROMFILE=${.OBJDIR:Q}/${BASE:Q}.rom ROM_SIZE=${ROM_SIZE:Q})
 	rm -f ${BASE}.bin
 
-${BASE}.com: ${DOSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o
+${BASE}.com: ${.OBJDIR}/machine ${DOSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o 
 	${LD} -o ${BASE}.sym ${LDFLAGS} -Ttext 0x100 ${DOSSTART} ${OBJS} \
 	vers.o ${LIBI386} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} >${BASE}.list
 	cp ${BASE}.sym ${BASE}.bin
>Audit-Trail:
>Unformatted: