[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070919104703.4c9d432f.randy.dunlap@oracle.com>
Date: Wed, 19 Sep 2007 10:47:03 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Philipp Marek <philipp@...ek.priv.at>
Cc: Jeff Dike <jdike@...toit.com>, Sam Ravnborg <sam@...nborg.org>,
linux-kernel@...r.kernel.org
Subject: Re: UML dead with current -git?
On Wed, 19 Sep 2007 18:17:51 +0200 Philipp Marek wrote:
> Hello Randy!
>
> On Wednesday 19 September 2007 Randy Dunlap wrote:
> > Yes, I've tried to coerce the top-level Makefile into honoring/using
> > the include/asm symlink if it exists, i.e., taking ARCH from
> > readlink include/asm && sed -e 's/include-asm//', but sadly my
> > makefile foo was not good enough.
> How about that?
> readlink include/asm
> returns
> asm-um
> in my case, so I only have to strip the "asm-" part ...
>
>
> Regards,
>
> Phil
>
>
> diff --git a/Makefile b/Makefile
> index e0fdf49..c9284ba 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -163,6 +163,9 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
> -e s/s390x/s390/ -e s/parisc64/parisc/ \
> -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
>
> +# sadly perl is defined below ... so we can't use it here, can we?
> +ASMARCH := $(shell test -s include/asm && readlink include/asm | cut -f2 -d-)
> +
> # Cross compiling and selecting different set of gcc/bin-utils
> # ---------------------------------------------------------------------------
> #
> @@ -182,7 +185,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
> # Default value for CROSS_COMPILE is not to prefix executables
> # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
>
> -ARCH ?= $(SUBARCH)
> +ARCH ?= $(or $(SUBARCH), $(ASMARCH))
> CROSS_COMPILE ?=
>
> # Architecture as present in compile.h
>
>
> --
This doesn't work when there is no include/asm symlink.
It also didn't apply cleanly due to tab(s) being converted
to spaces (but of course I fixed that part).
---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists