From: Philipp Marek <philipp@marek.priv.at>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Jeff Dike <jdike@addtoit.com>, Sam Ravnborg <sam@ravnborg.org>,
linux-kernel@vger.kernel.org
Subject: Re: UML dead with current -git?
Date: Wed, 19 Sep 2007 18:17:51 +0200 [thread overview]
Message-ID: <200709191817.51921@x5> (raw)
In-Reply-To: <20070919085032.dd5c1732.randy.dunlap@oracle.com>
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)!
next prev parent reply other threads:[~2007-09-19 16:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-18 15:14 UML dead with current -git? Philipp Marek
2007-09-18 17:13 ` Jeff Dike
2007-09-18 17:55 ` Sam Ravnborg
2007-09-19 1:35 ` Jeff Dike
2007-09-19 12:43 ` Philipp Marek
2007-09-19 15:50 ` Randy Dunlap
2007-09-19 16:17 ` Philipp Marek [this message]
2007-09-19 17:47 ` Randy Dunlap
2007-09-20 5:42 ` Ph. Marek
2007-09-20 16:35 ` Randy Dunlap
2007-09-19 18:05 ` Jeff Dike
2007-09-20 5:44 ` Ph. Marek
2007-09-20 7:01 ` Sam Ravnborg
2007-09-20 7:25 ` Philipp Marek
2007-09-20 8:26 ` Sam Ravnborg
2007-09-18 18:09 ` Philipp Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200709191817.51921@x5 \
--to=philipp@marek.priv.at \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox