From patchwork Sun Jan 26 10:06:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 23702 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E8BCB2112C for ; Sun, 26 Jan 2014 10:10:39 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rq2sf11933160pbb.9 for ; Sun, 26 Jan 2014 02:10:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=OJ5Wl0msF7DI/7r33tXt72HgEGq7sikT6Oku1+ZvfE4=; b=ktWwke0OpUR09DvLRym0fhokTBk1t+kXRrqgo4HXXXtfVWGqNzAJubyF+pqPH7E2D2 1qoEDnrRYyDgaA1arsRU9MV1tX2crZxJawSSFExt0UFJGNwRMqtl1RUxMyCA9EBvorZX 5CDxPZDZoSbNj+lHXdE9tz5CGlSurxcoiJ823gqoLkm/rxxOFVbF7M/6b00Iv3TGdPZB h48ecZ9a4HhhLjV5AtoD6hI+70WYJJxYzj6HPHswa0ZGTLOuZNydcvFIRFgZ1dBOuUsL 1e6I9d3b5QCVLjwvoAUsT9QobtQjrFxtbiQ3jrF31pUrNYe8/PWP/R0105PXLWyZMcgR 4Hpg== X-Gm-Message-State: ALoCoQkE39m6pAR922EvOjLuCASrmK6Is0eWVGdy5nJKQsJpNWbShLi6rOKFMYJCOqijjoXVbUhV X-Received: by 10.66.163.67 with SMTP id yg3mr25914pab.45.1390731038821; Sun, 26 Jan 2014 02:10:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.175 with SMTP id j44ls1258267qgd.44.gmail; Sun, 26 Jan 2014 02:10:38 -0800 (PST) X-Received: by 10.58.37.232 with SMTP id b8mr397409vek.27.1390731038658; Sun, 26 Jan 2014 02:10:38 -0800 (PST) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id b20si3899205veu.60.2014.01.26.02.10.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 02:10:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id ie18so2741829vcb.26 for ; Sun, 26 Jan 2014 02:10:38 -0800 (PST) X-Received: by 10.52.163.231 with SMTP id yl7mr434983vdb.29.1390731038556; Sun, 26 Jan 2014 02:10:38 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp58671vcz; Sun, 26 Jan 2014 02:10:38 -0800 (PST) X-Received: by 10.66.231.6 with SMTP id tc6mr24605712pac.68.1390731037565; Sun, 26 Jan 2014 02:10:37 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id va10si7397863pbc.158.2014.01.26.02.10.36; Sun, 26 Jan 2014 02:10:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752513AbaAZKJ5 (ORCPT + 27 others); Sun, 26 Jan 2014 05:09:57 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:4555 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750987AbaAZKJ4 (ORCPT ); Sun, 26 Jan 2014 05:09:56 -0500 Received: from 172.24.2.119 (EHLO szxeml208-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BPD92946; Sun, 26 Jan 2014 18:09:29 +0800 (CST) Received: from SZXEML448-HUB.china.huawei.com (10.82.67.191) by szxeml208-edg.china.huawei.com (172.24.2.57) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sun, 26 Jan 2014 18:09:22 +0800 Received: from lggeml425-hub.china.huawei.com (10.72.61.125) by szxeml448-hub.china.huawei.com (10.82.67.191) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sun, 26 Jan 2014 18:09:12 +0800 Received: from kernel-host.huawei (10.107.197.247) by lggeml425-hub.china.huawei.com (10.72.61.125) with Microsoft SMTP Server id 14.3.158.1; Sun, 26 Jan 2014 18:09:03 +0800 From: Wang Nan To: CC: Wang Nan , Sasha Levin , Arnaldo Carvalho de Melo , Jiri Olsa , Steven Rostedt , Namhyung Kim , Geng Hui Subject: [PATCH] Use realpath for srctree and objtree Date: Sun, 26 Jan 2014 18:06:18 +0800 Message-ID: <1390730778-30366-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.4 MIME-Version: 1.0 X-Originating-IP: [10.107.197.247] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangnan0@huawei.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When BUILD_SRC contains a tailing '/', the file name used in compiling command will contain '//', and it then goes to .o's debuginfo, confuses debugedit: https://bugzilla.redhat.com/show_bug.cgi?id=304121 This patch uses realpath to makesure srctree and objtree don't have tailing '/'. Signed-off-by: Wang Nan Cc: Sasha Levin Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Steven Rostedt Cc: Namhyung Kim Cc: Geng Hui --- tools/lib/lockdep/Makefile | 4 ++-- tools/lib/traceevent/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index da8b7aa..e638dd5 100644 --- a/tools/lib/lockdep/Makefile +++ b/tools/lib/lockdep/Makefile @@ -87,8 +87,8 @@ endif # BUILD_SRC # We process the rest of the Makefile if this is the final invocation of make ifeq ($(skip-makefile),) -srctree := $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR)) -objtree := $(CURDIR) +srctree := $(realpath $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR))) +objtree := $(realpath $(CURDIR)) src := $(srctree) obj := $(objtree) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 56d52a3..dd23171 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -107,8 +107,8 @@ endif # BUILD_SRC # We process the rest of the Makefile if this is the final invocation of make ifeq ($(skip-makefile),) -srctree := $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR)) -objtree := $(CURDIR) +srctree := $(realpath $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR))) +objtree := $(realpath $(CURDIR)) src := $(srctree) obj := $(objtree)