From patchwork Fri Feb 7 04:22:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 24277 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f200.google.com (mail-ig0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EFEB820445 for ; Fri, 7 Feb 2014 04:25:58 +0000 (UTC) Received: by mail-ig0-f200.google.com with SMTP id k19sf2424037igc.3 for ; Thu, 06 Feb 2014 20:25:58 -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=LTqXbI+Nr317o/heSE4lj8q7v4YGXKt1Fmw4w+NZkH4=; b=IEdazd992DsH6Nify+HkI/vyTcJ8DCd2ORsNQARDdN/iCSFf3+5pYMzlARqJXr4BdO pzFV4i+ZzfLCTSaul/QLntF4coSGFyxT8iMD3sBXbFpKmyzmadHCOqOvx632ZsI9fUaP sSmUoMrzzDTixDXMbinspaNArGguSX9Fdl5auLLx248RJ3TZT8SwSVAyLz2ma/FkxTVO Zz7uF+kylCnlVzKADY5VfshGkPAgLHnVkIYrB78WV5fPqk7kJOxfheOuzFKbpsBCiO3D ghJAqwfB6YD4gECpQmRDR0fbNeUDCrJlAEGb/qDDL0gctFUZygMN++Ub40VNhTJx6y60 IecA== X-Gm-Message-State: ALoCoQkd7oa42WJMXmSCiJL5N9c729Q/KjLxmtufErsf/n4hRMN0URxU5Ww1f98IouojLjZOTREm X-Received: by 10.50.154.73 with SMTP id vm9mr1405829igb.2.1391747158047; Thu, 06 Feb 2014 20:25:58 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.8 with SMTP id c8ls969872qgc.56.gmail; Thu, 06 Feb 2014 20:25:58 -0800 (PST) X-Received: by 10.220.2.199 with SMTP id 7mr8600232vck.4.1391747157962; Thu, 06 Feb 2014 20:25:57 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id tj7si896559vdc.72.2014.02.06.20.25.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Feb 2014 20:25:57 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ik5so2206221vcb.23 for ; Thu, 06 Feb 2014 20:25:57 -0800 (PST) X-Received: by 10.52.243.102 with SMTP id wx6mr7230250vdc.12.1391747157882; Thu, 06 Feb 2014 20:25:57 -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 u4csp71305vcz; Thu, 6 Feb 2014 20:25:57 -0800 (PST) X-Received: by 10.69.31.235 with SMTP id kp11mr13848255pbd.36.1391747156982; Thu, 06 Feb 2014 20:25:56 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yy4si3392913pbc.189.2014.02.06.20.25.56; Thu, 06 Feb 2014 20:25:56 -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 S1751668AbaBGEZt (ORCPT + 27 others); Thu, 6 Feb 2014 23:25:49 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:29373 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbaBGEZs (ORCPT ); Thu, 6 Feb 2014 23:25:48 -0500 Received: from 172.24.2.119 (EHLO szxeml212-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AKF37391; Fri, 07 Feb 2014 12:25:19 +0800 (CST) Received: from SZXEML448-HUB.china.huawei.com (10.82.67.191) by szxeml212-edg.china.huawei.com (172.24.2.181) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 7 Feb 2014 12:25:18 +0800 Received: from LGGEML413-HUB.china.huawei.com (10.72.61.116) by szxeml448-hub.china.huawei.com (10.82.67.191) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 7 Feb 2014 12:25:18 +0800 Received: from kernel-host.huawei (10.107.197.247) by lggeml413-hub.china.huawei.com (10.72.61.116) with Microsoft SMTP Server id 14.3.158.1; Fri, 7 Feb 2014 12:25:10 +0800 From: Wang Nan To: CC: Wang Nan , Arnaldo Carvalho de Melo , Jiri Olsa , Steven Rostedt , Namhyung Kim , Ingo Molnar , Andrew Morton , Geng Hui Subject: [PATCH] tools lib traceevent: Use realpath for srctree and objtree Date: Fri, 7 Feb 2014 12:22:33 +0800 Message-ID: <1391746953-21918-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.178 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: , If BUILD_SRC or CURDIR contains tailing '/', the file names passed to gcc will contain '//'. It will be contained .o's in debuginfo, then confuse debugedit: https://bugzilla.redhat.com/show_bug.cgi?id=304121 This patch uses realpath command to makesure potential tailing '/'s are removed. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Steven Rostedt Cc: Namhyung Kim Cc: Ingo Molnar Cc: Andrew Morton Cc: Geng Hui --- tools/lib/traceevent/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 005c9cc..5bb281c 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)