Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] compat-wireless: build: Throw error if space in path
@ 2011-12-26 21:04 Dominique Martinet
  2012-01-16 18:47 ` Luis R. Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Dominique Martinet @ 2011-12-26 21:04 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless, linux-bluetooth, Dominique Martinet

Because of make limitations, the build will fail if there are spaces in
the path leading to the compat-wireless directory.
I tried to make it work anyway for a while and, while it probably is
possible, it would involve rewriting part of kbuild and well...
This at least throws up nicely if there is a space in the path.

---
 Makefile |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index d3a9d93..c81d680 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,13 @@ obj-$(CONFIG_COMPAT_BLUETOOTH_MODULES) += drivers/bluetooth/
 else
 
 export PWD :=	$(shell pwd)
+
+# The build will fail if there is any space in PWD.
+ifneq (,$(findstring  $() ,$(PWD)))
+$(error "The path to this compat-wireless directory has spaces in it." \
+	"Please put it somewhere where there is no space")
+endif
+
 CFLAGS += \
         -DCOMPAT_BASE_TREE="\"$(shell cat compat_base_tree)\"" \
         -DCOMPAT_BASE_TREE_VERSION="\"$(shell cat compat_base_tree_version)\"" \
-- 
1.7.5.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-18 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-26 21:04 [PATCH] compat-wireless: build: Throw error if space in path Dominique Martinet
2012-01-16 18:47 ` Luis R. Rodriguez
2012-01-17  0:08   ` [PATCH v2] " Dominique Martinet
2012-01-17  7:44     ` Johannes Berg
2012-01-18 15:18       ` Dominique Martinet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox