From owner-freebsd-current Fri Dec 15 1: 9:17 2000 From owner-freebsd-current@FreeBSD.ORG Fri Dec 15 01:09:14 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 66A1937B400; Fri, 15 Dec 2000 01:09:14 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 46B9FF5B; Fri, 15 Dec 2000 01:09:13 -0800 (PST) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id BAA29374; Fri, 15 Dec 2000 01:09:12 -0800 (PST) Sender: marcel@cup.hp.com Message-ID: <3A39DFB8.2636725A@cup.hp.com> Date: Fri, 15 Dec 2000 01:09:12 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Benno Rice Cc: Bruce Evans , freebsd-current@FreeBSD.ORG Subject: Re: Patch to allow overriding of nm in lorder, genassym.sh References: <20001213224645.A16171@rafe.jeamland.net> <20001214234559.B29875@rafe.jeamland.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Benno Rice wrote: > > > genassym.sh and lorder.sh are also missing support for the -aout/-elf > > command line option, and this breaks building of kernels in a non-native > > object format. I think the correct fix is is to set OBJFORMAT before > > running shell scripts that run binary utilities, not to clutter the > > shell scripts with code to select the correct binarary utility. > > This doesn't fix my problem though. The problem I'm facing is that the > command 'nm' is hardcoded into both genassym.sh and lorder.sh, when I > need to run 'powerpc-elf-nm'. Even if we were to move that piece of config > into OBJFORMAT, it'd still require some kind of magic in the scripts. Having nm(1) hardcoded is not a problem if you can cross build. I assume our toolchain has support for the powerpc and thus will build and install nm(1) in the object tree. Yes, if cross building doesn't work yet, we're forced to revert to hackery because we don't have sufficient flexibility and all we basicly need is a prefix, right? (for example "powerpc-elf-" or "ia64-unknown-linux-") -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message