Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761940AbXISQSo (ORCPT ); Wed, 19 Sep 2007 12:18:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757573AbXISQS3 (ORCPT ); Wed, 19 Sep 2007 12:18:29 -0400 Received: from sslsrv.de ([62.75.159.123]:51021 "EHLO sslsrv.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758088AbXISQS2 (ORCPT ); Wed, 19 Sep 2007 12:18:28 -0400 From: Philipp Marek To: Randy Dunlap Subject: Re: UML dead with current -git? Date: Wed, 19 Sep 2007 18:17:51 +0200 User-Agent: KMail/1.9.7 Cc: Jeff Dike , Sam Ravnborg , linux-kernel@vger.kernel.org References: <200709181714.34035@x5> <200709191443.24158@x5> <20070919085032.dd5c1732.randy.dunlap@oracle.com> In-Reply-To: <20070919085032.dd5c1732.randy.dunlap@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709191817.51921@x5> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1787 Lines: 52 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 -- Versioning your /etc, /home or even your whole installation? Try fsvs (fsvs.tigris.org)! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/