Subject: Re: CVS commit: sharesrc
To: matthew green <mrg@eterna.com.au>
From: None <itojun@iijlab.net>
List: source-changes
Date: 01/08/2001 17:02:44
>>   Log Message:
>>   declare MACHINE_CPU.  MACHINE_CPU will be generated from MACHINE_ARCH,
>>   to identifiy CPU type in build tree (like mipse[lb] -> mips, sh3e[lb] -> sh3).
>>   
>>   XXX what should we do about arm and sparc?
>what do you mean?  arm?? -> arm?  sparc leave alone?  the only time i'm
>aware of where sparc & sparc64 are equivalent is in the guts of the
>toolchain (gas/ld/bfd) which we don't really need to worry about.

	in the tree, in many cases
	- foo/arch/arm is visited for MACHINE_ARCH == arm26 cases, and
	- foo/arch/arm32 is visited for MACHINE_ARCH == arm32 cases.
	so the current declaration of MACHINE_CPU reflects this.
>MACHINE_CPU=    ${MACHINE_ARCH:C/mipse[bl]/mips/:S/arm26/arm/:C/sh3e[bl]/sh3/}

	i heard about a plan to have sys/arch/arm for better code sharing
	between arm26 and arm32, so if it gets done, setting MACHINE_CPU
	to "arm" for arm26/32 may be better.

	the problem is that the build tree is not consistent enough about
	the use of arch/*, so i am unable to rewrite some of Makefile .if
	conditionals.  i'll commit some of easy ones soon, but there are
	many other places.

itojun