On 18.1.2013 15:33, Sunil Beta Baskar wrote: > Signed-off-by: Sunil Beta <betasam@xxxxxxxxx> > --- > Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Makefile b/Makefile > index 07bc925..48bfd8e 100644 > --- a/Makefile > +++ b/Makefile > @@ -10,6 +10,8 @@ NAME = "Divemaster Edition" > # Comments in this file are targeted only to the developer, do not > # expect to learn how to build the kernel reading this file. > > +CURDIRSPC := $(echo $(CURDIR) | sed "s/ /\\\ /g" ) > +$(ifneq $(CURDIR),$(CURDIRSPC), $(error directory $(CURDIR) contains spaces.)) You do not need to call shell and sed here. Use the findstring make function and the $(space) variable from scripts/Kbuild.include. Also, while at it, could you also add a check for colon? This breaks the build in similar way. Thanks, Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html