From: Fabian Frederick <fabf@skynet.be>
To: Robert Jarzmik <robert.jarzmik@free.fr>, Michal Marek <mmarek@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, fabf@skynet.be
Subject: [PATCH 1/1 linux-next] kbuild: add make force=1 for testing
Date: Sun, 24 Jul 2016 15:28:18 +0200 [thread overview]
Message-ID: <1469366898-1496-1-git-send-email-fabf@skynet.be> (raw)
Commit 51193b76bfff
("kbuild: forbid kernel directory to contain spaces and colons")
makes it impossible to build kernel on default SD labels like
"SD Card" for instance.
Makefile:133: *** main directory cannot contain spaces nor colons. Stop.
User could rename directories but volume name is not always writable.
This patch adds ability to do make force=1 for people
not interested in modules_install in this case but only testing.
(Note that other options could go under ifndef force)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index caa33e0..89d00a5 100644
--- a/Makefile
+++ b/Makefile
@@ -128,8 +128,10 @@ _all:
# Cancel implicit rules on top Makefile
$(CURDIR)/Makefile Makefile: ;
-ifneq ($(words $(subst :, ,$(CURDIR))), 1)
+ifndef force
+ ifneq ($(words $(subst :, ,$(CURDIR))), 1)
$(error main directory cannot contain spaces nor colons)
+ endif
endif
ifneq ($(KBUILD_OUTPUT),)
@@ -1408,6 +1410,7 @@ help:
@echo ' 2: warnings which occur quite often but may still be relevant'
@echo ' 3: more obscure warnings, can most likely be ignored'
@echo ' Multiple levels can be combined with W=12 or W=123'
+ @echo ' make force=1 [options] Avoid feasibility checks. Use at your own risk'
@echo ''
@echo 'Execute "make" or "make all" to build all targets marked with [*] '
@echo 'For further info see the ./README file'
--
2.8.1
next reply other threads:[~2016-07-24 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-24 13:28 Fabian Frederick [this message]
2016-07-26 0:05 ` Andrew Morton
2016-07-26 6:45 ` Robert Jarzmik
2016-07-26 21:47 ` Michal Marek
2016-07-27 14:37 ` Fabian Frederick
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=1469366898-1496-1-git-send-email-fabf@skynet.be \
--to=fabf@skynet.be \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.com \
--cc=robert.jarzmik@free.fr \
/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
all inboxes | Powered by JetHome®