From owner-cvs-all Sat Oct 10 02:33:52 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA13123 for cvs-all-outgoing; Sat, 10 Oct 1998 02:33:52 -0700 (PDT) (envelope-from owner-cvs-all) Received: from ceia.nordier.com (slip139-92-122-75.joh.za.ibm.net [139.92.122.75]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA13081; Sat, 10 Oct 1998 02:33:43 -0700 (PDT) (envelope-from rnordier@nordier.com) Received: (from rnordier@localhost) by ceia.nordier.com (8.8.7/8.6.12) id LAA10470; Sat, 10 Oct 1998 11:30:21 +0200 (SAT) From: Robert Nordier Message-Id: <199810100930.LAA10470@ceia.nordier.com> Subject: Re: cvs commit: src/sys/boot/i386 Makefile In-Reply-To: <199810100309.LAA13373@spinner.netplex.com.au> from Peter Wemm at "Oct 10, 98 11:09:41 am" To: peter@netplex.com.au (Peter Wemm) Date: Sat, 10 Oct 1998 11:30:19 +0200 (SAT) Cc: rnordier@nordier.com, skynyrd@opus.cts.cwu.edu, rnordier@FreeBSD.ORG, committers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Peter Wemm wrote: > Robert Nordier wrote: > > Yes. The problem is that make world is lumping the old and new > > boot code together as "legacy boot", but they require a different > > OBJFORMAT. > > By the way, it is possible to set $OBJFORMAT (the environment variable) in > a Makefile. This might be an idea for sys/boot/Makefile and > sys/i386/boot/Makefile > > Is this worth doing? For example: > [ ... ] That's a useful technique I wasn't aware of. For /sys/i386/boot, which is completely oriented to a.out, it seems the ideal solution. For /sys/boot/i386, which can output executables in both formats (where they aren't flat binary files) I suppose OBJFORMAT really means "Make the actual /boot/loader binary in this format". (I've gone with another of your suggestions, and the new boot2 supports both a.out and ELF, which means an ELF /boot/loader binary is feasible.) So for /sys/boot/i386/Makefile, I suggest we do something like: .MAKEFLAGS: BTXLDFMT=${OBJFORMAT} OBJFORMAT=elf Thanks. -- Robert Nordier