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)! -
| Zach Brown | [PATCH 3 of 4] Teach paths to wake a specific void * target instead of a whole tas... |
| Linus Torvalds | Re: LSM conversion to static interface |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gregory Haskins | [RFC PATCH 00/17] virtual-bus |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
