From patchwork Fri Feb 7 04:12:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 24276 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 151CC20445 for ; Fri, 7 Feb 2014 04:16:26 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id m20sf6032375qcx.2 for ; Thu, 06 Feb 2014 20:16:26 -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=KmNJeSPcX1V7pQg4a4arULt09CoXM3vurhpy0NJWMuY=; b=P1cdgZOPLQu42NKjWkKa9WnPzGskTRUHQ+TDNoYIXUQyobzLGFDJPQXs1t6GClWLUL VoDdCMQWsKOv5s7laVe+9erRYeN2XLJJ6rfkTLf/5YJyZGXsrXgRObCMstcLv+IVW07n QyrLRQ7jxtEVjBHXUsmnfyhRjEajd2xKVP6tWkM2VX8zvD2EqjR6xepnfVo+AcoQZ/Qc BsBNbcGtyqAsBoUQOkqOVZEDx8LO8hl5+lRmIytICvDjWQ+231p/sgXqXkoduVt5fCzk kMmsqZ6uReXbE5PU8MavQeZcZDQ8RSqqdZLE3F0ZHV1NloyQ2QtK82RM6JLn/aAO82vO VX+g== X-Gm-Message-State: ALoCoQk6ECMfvJ2P+giN33M5JChDW6x0EaiIR2I3FaJKMFNd3O7AdueK3ghvHDyew0UX6jHMHF42 X-Received: by 10.236.0.232 with SMTP id 68mr4106934yhb.16.1391746586249; Thu, 06 Feb 2014 20:16:26 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.240 with SMTP id b103ls897742qge.57.gmail; Thu, 06 Feb 2014 20:16:26 -0800 (PST) X-Received: by 10.52.156.232 with SMTP id wh8mr7138831vdb.23.1391746586166; Thu, 06 Feb 2014 20:16:26 -0800 (PST) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id kn3si884480veb.130.2014.02.06.20.16.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Feb 2014 20:16:26 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.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.128.178; Received: by mail-ve0-f178.google.com with SMTP id oy12so2367702veb.9 for ; Thu, 06 Feb 2014 20:16:26 -0800 (PST) X-Received: by 10.52.248.138 with SMTP id ym10mr7225738vdc.18.1391746586069; Thu, 06 Feb 2014 20:16:26 -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 u4csp70874vcz; Thu, 6 Feb 2014 20:16:25 -0800 (PST) X-Received: by 10.66.49.74 with SMTP id s10mr5218851pan.0.1391746584770; Thu, 06 Feb 2014 20:16:24 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yh9si3377810pab.150.2014.02.06.20.16.24; Thu, 06 Feb 2014 20:16:24 -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 S1751552AbaBGEQO (ORCPT + 27 others); Thu, 6 Feb 2014 23:16:14 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:26882 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbaBGEQM (ORCPT ); Thu, 6 Feb 2014 23:16:12 -0500 Received: from 172.24.2.119 (EHLO szxeml206-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AKF36750; Fri, 07 Feb 2014 12:15:33 +0800 (CST) Received: from SZXEML420-HUB.china.huawei.com (10.82.67.159) by szxeml206-edg.china.huawei.com (172.24.2.59) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 7 Feb 2014 12:15:22 +0800 Received: from LGGEML423-HUB.china.huawei.com (10.72.61.123) by szxeml420-hub.china.huawei.com (10.82.67.159) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 7 Feb 2014 12:15:31 +0800 Received: from kernel-host.huawei (10.107.197.247) by lggeml423-hub.china.huawei.com (10.72.61.123) with Microsoft SMTP Server id 14.3.158.1; Fri, 7 Feb 2014 12:15:25 +0800 From: Wang Nan To: CC: Wang Nan , Sasha Levin , "Ingo Molnar" , Andrew Morton , "Geng Hui" Subject: [PATCH] liblockdep: Use realpath for srctree and objtree Date: Fri, 7 Feb 2014 12:12:53 +0800 Message-ID: <1391746373-20981-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.128.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: Sasha Levin Cc: Ingo Molnar Cc: Andrew Morton Cc: Geng Hui --- tools/lib/lockdep/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 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)