On Sat, Aug 25, 2007 at 07:26:46PM -0400, Mike Frysinger wrote:
> On many SuperH machines, `uname` outputs things like "sh4" rather than
> just "sh". Thus we need to normalize the uname output like so many other
> architectures.
>
> Signed-off-by: Mike Frysinger <va...@ge...>
> ---
> Makefile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index f3229a4..91861c1 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -159,7 +159,7 @@ export srctree objtree VPATH TOPDIR
> # SUBARCH is subsequently ignored.
>
> SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
> - -e s/arm.*/arm/ -e s/sa110/arm/ \
> + -e s/arm.*/arm/ -e s/sa110/arm/ -e s/sh.*/sh/ \
> -e s/s390x/s390/ -e s/parisc64/parisc/ \
> -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
>
Probably a good idea, but that'll break sh64. Should probably be
s/sh[234].*$/sh/ or so.
|