From patchwork Sun Dec 23 15:29:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Beta Baskar X-Patchwork-Id: 1907181 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 46AF1DF25A for ; Sun, 23 Dec 2012 15:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751318Ab2LWP3h (ORCPT ); Sun, 23 Dec 2012 10:29:37 -0500 Received: from mail-oa0-f50.google.com ([209.85.219.50]:35168 "EHLO mail-oa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947Ab2LWP3h (ORCPT ); Sun, 23 Dec 2012 10:29:37 -0500 X-Greylist: delayed 47618 seconds by postgrey-1.27 at vger.kernel.org; Sun, 23 Dec 2012 10:29:37 EST Received: by mail-oa0-f50.google.com with SMTP id n16so6085430oag.23 for ; Sun, 23 Dec 2012 07:29:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=82oW895tRmdqb7WzpR0A+b2Do48YncgAko7UiVE3XtU=; b=b8002TT6b4yxnhOXBskJW7laX5ABZc8VmJgV5mQN6gB9MqzLgsahz1016t1oVyyfL1 6nYjtuYjvZqHEPs4TeaTTM9HgoLkMngPv30t7mO3Mg4pfowPllWsi1DVZv/wC32uCb8J ElQFxfw1i1uZe45f06nhFh/eHwiWfrFQDfXRZgFG7dPjaQbPsPaii4YY3D78Mhpco+Ij pLD/WizFaTWVslfy/Qj0z+hTr6vz+suVrrvf/uTLkWJpe/MG9Qbx9/nJIHr195ZEQgqZ qp7x3m4a7HCX6rY2cD5l69c7sAa9JgSLRE7bx2JmWHBwOXU4cWShdPx3oa4PDUkhLPlR 4BHA== Received: by 10.182.132.7 with SMTP id oq7mr727592obb.22.1356276575719; Sun, 23 Dec 2012 07:29:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.220.105 with HTTP; Sun, 23 Dec 2012 07:29:20 -0800 (PST) From: Sunil Beta Baskar Date: Sun, 23 Dec 2012 20:59:20 +0530 Message-ID: Subject: [PATCH] fix: spaces in srctree and objtree paths no longer break builds. To: linux-kbuild@vger.kernel.org Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Signed-off-by: Sunil Beta --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Makefile b/Makefile index 07bc925..c2ae267 100644 --- a/Makefile +++ b/Makefile @@ -149,8 +149,13 @@ else _all: modules endif -srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR)) +srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR)) objtree := $(CURDIR) + +# FIX! spaces in path can break build +srctree := $(shell echo $(srctree) | sed "s/ /\\\ /g" ) +objtree := $(shell echo $(objtree) | sed "s/ /\\\ /g" ) + src := $(srctree) obj := $(objtree)