Re: UML dead with current -git?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Randy Dunlap <randy.dunlap@...>
Cc: Jeff Dike <jdike@...>, Sam Ravnborg <sam@...>, <linux-kernel@...>
Date: Wednesday, September 19, 2007 - 12:17 pm

Hello Randy!

On Wednesday 19 September 2007 Randy Dunlap wrote:
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


-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UML dead with current -git?, Philipp Marek, (Tue Sep 18, 11:14 am)
Re: UML dead with current -git?, Jeff Dike, (Tue Sep 18, 1:13 pm)
Re: UML dead with current -git?, Philipp Marek, (Tue Sep 18, 2:09 pm)
Re: UML dead with current -git?, Sam Ravnborg, (Tue Sep 18, 1:55 pm)
Re: UML dead with current -git?, Jeff Dike, (Tue Sep 18, 9:35 pm)
Re: UML dead with current -git?, Philipp Marek, (Wed Sep 19, 8:43 am)
Re: UML dead with current -git?, Randy Dunlap, (Wed Sep 19, 11:50 am)
Re: UML dead with current -git?, Philipp Marek, (Wed Sep 19, 12:17 pm)
Re: UML dead with current -git?, Randy Dunlap, (Wed Sep 19, 1:47 pm)
Re: UML dead with current -git?, Ph. Marek, (Thu Sep 20, 1:42 am)
Re: UML dead with current -git?, Randy Dunlap, (Thu Sep 20, 12:35 pm)
Re: UML dead with current -git?, Jeff Dike, (Wed Sep 19, 2:05 pm)
Re: UML dead with current -git?, Ph. Marek, (Thu Sep 20, 1:44 am)
Re: UML dead with current -git?, Sam Ravnborg, (Thu Sep 20, 3:01 am)
Re: UML dead with current -git?, Philipp Marek, (Thu Sep 20, 3:25 am)
Re: UML dead with current -git?, Sam Ravnborg, (Thu Sep 20, 4:26 am)