Date: Sat, 10 Oct 1998 12:47:41 +0200 (SAT) From: Robert Nordier <rnordier@nordier.com> To: jkh@time.cdrom.com (Jordan K. Hubbard) Cc: rnordier@nordier.com, peter@netplex.com.au, skynyrd@opus.cts.cwu.edu, rnordier@FreeBSD.ORG, committers@FreeBSD.ORG Subject: Re: cvs commit: src/sys/boot/i386 Makefile Message-ID: <199810101047.MAA11838@ceia.nordier.com> In-Reply-To: <15674.908014483@time.cdrom.com> from "Jordan K. Hubbard" at "Oct 10, 98 03:14:43 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Jordan K. Hubbard wrote: > > > Hmmm. Is that really the right makefile for it? > > > > Well, it works. But (assuming your question was rhetorical), what do > > you prefer? > > Actually it wasn't - I was confused about the behavior of .MAKEFLAGS > there. So, just to make sure we're all on the same page here, you'd > propose: > > RCS file: /home/ncvs/src/sys/boot/i386/Makefile,v > retrieving revision 1.4 > diff -u -r1.4 Makefile > --- Makefile 1998/10/09 23:30:16 1.4 > +++ Makefile 1998/10/10 10:10:53 > @@ -1,7 +1,7 @@ > SUBDIR= boot0 > > -.if ${OBJFORMAT} == elf > +.MAKEFLAGS: BTXLDFMT=${OBJFORMAT} OBJFORMAT=elf > + > SUBDIR+= btx libi386 loader > -.endif > > .include <bsd.subdir.mk> > > ? That was the suggestion. I think the essential problem is that this isn't "legacy boot" code. When a make world forces OBJFORMAT=aout, I assume it is, in effect, saying "Give 'em an a.out" binary, not "Use the a.out toolchain", because only the former makes sense. It therefore seems sensible to convert OBJFORMAT to BTXLDFMT (since OBJFORMAT then means *something*). We also need to force OBJFORMAT back to elf, thereafter. Though I suppose just ignoring it in each separate /sys/boot/i386/* Makefile is also a possibility. Anyway, I mainly want the problem to go away: I don't know enough about the FreeBSD build environment to argue the technical merits of any particular solution. :) -- Robert Nordier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810101047.MAA11838>