Subject: Re: Coexistance of multiple toolchains
To: None <tech-toolchain@netbsd.org>
From: Bucky Katz <bucky@picovex.com>
List: tech-toolchain
Date: 01/26/2007 19:00:09
Masao Uebayashi <uebayasi@brains.co.jp> writes:

> Let me rephrase; what is preferrable DESTDIR / TOOLDIR / ..., coexist
> multiple archs / versions?
>
> I know this is arbitrary, but having a standard one would be nice from
> "embedded development target" POV.
>
> Masao

We are building embedded targets and heavily optimize for each
target. I don't know if it is optimal or not, but I've settled on a
scheme that is based on the NetBSD machine architecture and the gcc
ISA that we use to optimize for that machine.  Here's a fragment from
a Makefile that illustrates this:

export MACHINE          ?= evbarm
export ISA              ?= armv5t
export DEST             = /usr/local/netbsd/$(MACHINE)/$(ISA)
export BASE             = $(shell pwd)
export MAKECONF         ?= $(BASE)/src/mk.conf
export OBJDIR           ?= $(BASE)/obj/$(MACHINE)/$(ISA)
export TOOLDIR          ?= $(DEST)/tools
export DESTDIR          ?= $(DEST)/dest
export RELEASEDIR       ?= $(DEST)/release
export XSOURCE          ?= $(BASE)/xsrc
export XARGS            =
export XDEPS            =
export BUILDARGS        ?=  -O $(OBJDIR) -T $(TOOLDIR) -D $(DESTDIR) -R $(RELEAS
EDIR) -m $(MACHINE)