Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2000 01:09:12 -0800
From:      Marcel Moolenaar <marcel@cup.hp.com>
To:        Benno Rice <benno@FreeBSD.ORG>
Cc:        Bruce Evans <bde@zeta.org.au>, freebsd-current@FreeBSD.ORG
Subject:   Re: Patch to allow overriding of nm in lorder, genassym.sh
Message-ID:  <3A39DFB8.2636725A@cup.hp.com>
References:  <20001213224645.A16171@rafe.jeamland.net> <Pine.BSF.4.21.0012142237280.3687-100000@besplex.bde.org> <20001214234559.B29875@rafe.jeamland.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A39DFB8.2636725A>