From owner-freebsd-bugs Mon Feb 25 18:50:20 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6F7E037B440 for ; Mon, 25 Feb 2002 18:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1Q2o2m27482; Mon, 25 Feb 2002 18:50:02 -0800 (PST) (envelope-from gnats) Date: Mon, 25 Feb 2002 18:50:02 -0800 (PST) Message-Id: <200202260250.g1Q2o2m27482@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: conf/35262: Generation of boot block for headless operation no longer works Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/35262; it has been noted by GNATS. From: "Crist J. Clark" To: Sheldon Hearn Cc: bug-followup@FreeBSD.ORG Subject: Re: conf/35262: Generation of boot block for headless operation no longer works Date: Mon, 25 Feb 2002 18:41:49 -0800 On Mon, Feb 25, 2002 at 09:40:04AM -0800, Sheldon Hearn wrote: > The following reply was made to PR conf/35262; it has been noted by GNATS. > > From: Sheldon Hearn > To: Brett Glass > Cc: freebsd-gnats-submit@FreeBSD.org > Subject: Re: conf/35262: Generation of boot block for headless operation no longer works > Date: Mon, 25 Feb 2002 19:40:15 +0200 > > On Mon, 25 Feb 2002 10:31:43 MST, Brett Glass wrote: > > > Is there a way to make the instructions (or ones like them) work? > > One shouldn't have to build the world to modify the boot block. > > Well, it sure looks like it's actually a build problem that needs > fixing. The dependencies above sys/boot are really a mess. However, this patch fixes the problem. I'm not sure if this really is a "correct" fix, however. But then again, this makefile is already broken. Index: Makefile =================================================================== RCS file: /export/freebsd/ncvs/src/sys/boot/i386/boot2/Makefile,v retrieving revision 1.16.2.4 diff -u -r1.16.2.4 Makefile --- Makefile 14 Aug 2001 22:55:29 -0000 1.16.2.4 +++ Makefile 26 Feb 2002 01:44:26 -0000 @@ -66,10 +66,13 @@ boot2.bin: boot2.out objcopy -S -O binary boot2.out ${.TARGET} -boot2.out: boot2.o sio.o +boot2.out: ${BTX}/lib/crt0.o boot2.o sio.o ${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \ ${BTX}/lib/crt0.o boot2.o sio.o +${BTX}/lib/crt0.o: + cd ${.CURDIR}/../btx/lib; ${MAKE} crt0.o + boot2.o: boot2.h sio.o: sio.s @@ -77,6 +80,9 @@ --defsym SIOFMT=${B2SIOFMT} \ --defsym SIOSPD=${BOOT_COMCONSOLE_SPEED} \ ${.IMPSRC} -o ${.TARGET} + +${BTX}/btx/btx: + cd ${.CURDIR}/../btx/btx; ${MAKE} btx install: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message