ObsoleteFiles and TARGET_ARCH

Nathan Whitehorn nwhitehorn at freebsd.org
Wed Jul 7 13:19:32 UTC 2010


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


More information about the freebsd-arch mailing list