From: Sam Ravnborg <sam@ravnborg.org>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Subject: [PATCH 11/11] kbuild: sanity check the specified arch
Date: Sat, 10 Nov 2007 00:20:45 +0100 [thread overview]
Message-ID: <11946504463364-git-send-email-sam@ravnborg.org> (raw)
In-Reply-To: <20071109230812.GA5176@uranus.ravnborg.org>
If the ARCH used does not exist print out the following:
Makefile:203: *** "ERROR: ARCH (i386) does not exist (for i386 and x86_64 use ARCH=x86)". Stop.
This check is highly relevant now i386 and x86_64 are gone.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Christoph Hellwig <hch@infradead.org>
---
Makefile | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index afeeef8..902082b 100644
--- a/Makefile
+++ b/Makefile
@@ -198,6 +198,11 @@ CROSS_COMPILE ?=
UTS_MACHINE := $(ARCH)
SRCARCH := $(ARCH)
+# Sanity check the specified ARCH
+ifeq ($(wildcard $(srctree)/arch/$(ARCH)/Kconfig),)
+ $(error "ERROR: ARCH ($(ARCH)) does not exist (for i386 and x86_64 use ARCH=x86)")
+endif
+
KCONFIG_CONFIG ?= .config
# SHELL used by kbuild
--
1.5.3.4.1157.g0e74-dirty
next prev parent reply other threads:[~2007-11-09 23:20 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 23:08 [PATCH 0/11 v3] enable "make ARCH=x86" Sam Ravnborg
2007-11-09 23:20 ` [PATCH 01/11] x86: unification of cfufreq/Kconfig Sam Ravnborg
2007-11-09 23:20 ` [PATCH 02/11] x86: start unification of arch/x86/Kconfig.* Sam Ravnborg
2007-11-09 23:20 ` [PATCH 03/11] x86: arch/x86/Kconfig.cpu unification Sam Ravnborg
2007-11-09 23:20 ` [PATCH 04/11] x86: add X86_32 dependency to i386 specific symbols in Kconfig.i386 Sam Ravnborg
2007-11-09 23:20 ` [PATCH 05/11] x86: add X86_64 dependency to x86_64 specific symbols in Kconfig.x86_64 Sam Ravnborg
2007-11-09 23:20 ` [PATCH 06/11] x86: copy x86_64 specific Kconfig symbols to Kconfig.i386 Sam Ravnborg
2007-11-09 23:20 ` [PATCH 07/11] x86: move all simple arch settings to Kconfig Sam Ravnborg
2007-11-09 23:20 ` [PATCH 08/11] x86: move the rest of the menu's " Sam Ravnborg
2007-11-09 23:20 ` [PATCH 09/11] x86: enable "make ARCH=x86" Sam Ravnborg
2007-11-09 23:20 ` [PATCH 10/11] x86: drop backward compatibility symlinks to i386/boot and x86_64/boot Sam Ravnborg
2007-11-09 23:20 ` Sam Ravnborg [this message]
2007-11-10 3:23 ` [PATCH 0/11 v3] enable "make ARCH=x86" Jeff Garzik
2007-11-10 3:37 ` Randy Dunlap
2007-11-10 3:50 ` Adrian Bunk
2007-11-10 4:05 ` Brian Gerst
2007-11-10 4:12 ` Jeff Garzik
2007-11-14 20:13 ` Roman Zippel
2007-11-10 7:54 ` Sam Ravnborg
2007-11-10 5:26 ` Nick Piggin
2007-11-10 8:21 ` Paul Mundt
2007-11-10 8:24 ` Jeff Garzik
2007-11-10 8:44 ` Paul Mundt
2007-11-10 20:35 ` H. Peter Anvin
2007-11-10 20:46 ` Sam Ravnborg
2007-11-10 21:24 ` Theodore Tso
2007-11-10 9:39 ` Sam Ravnborg
2007-11-10 10:32 ` david
2007-11-10 9:21 ` Adrian Bunk
2007-11-10 9:26 ` Paul Mundt
2007-11-10 8:23 ` Jeff Garzik
2007-11-10 10:13 ` Adrian Bunk
2007-11-10 15:53 ` Christoph Hellwig
2007-11-12 11:59 ` Frans Pop
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=11946504463364-git-send-email-sam@ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kernel@vger.kernel.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