Date: Mon, 25 Feb 2002 18:50:02 -0800 (PST) From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/35262: Generation of boot block for headless operation no longer works Message-ID: <200202260250.g1Q2o2m27482@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/35262; it has been noted by GNATS.
From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: Sheldon Hearn <sheldonh@starjuice.net>
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 <sheldonh@starjuice.net>
> To: Brett Glass <brett@lariat.org>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202260250.g1Q2o2m27482>
