Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jul 2010 08:19:30 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        freebsd-arch@freebsd.org
Subject:   Re: ObsoleteFiles and TARGET_ARCH
Message-ID:  <4C347EE2.6080301@freebsd.org>
In-Reply-To: <20100706.174919.29649800801850.imp@bsdimp.com>
References:  <20100706.174919.29649800801850.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 07/06/10 18:49, M. Warner Losh wrote:
> I'm wondering...
>
> Why do we use TARGET_ARCH so much inside of ObsoleteFiles?  It seems
> like it should be used only when we obsolete files on some
> architectures, but retain them on others.  Instead, it seems to be
> used to obsolete files that normally exist on a specific
> architecture.  This seems backwards.
>
> Also, we need to change this, but I don't (yet) define a
> TARGET_CPUARCH.
>
> Also, why is this TARGET_ARCH and not MACHINE_ARCH?  That suggests
> we're invoking it wrong if this is "needed" for the cross build case
> to "work".
>    

It mostly seems to be used to remove things from /usr/include/machine, 
in which case it should also probably be TARGET, not TARGET_ARCH or 
TARGET_CPUARCH.
-Nathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C347EE2.6080301>