From patchwork Sat Feb 8 01:43:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 24336 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C5A522096A for ; Sat, 8 Feb 2014 01:47:26 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id fp1sf6216758pdb.2 for ; Fri, 07 Feb 2014 17:47:25 -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 :in-reply-to:references: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=TRrxF/jwFI9/vSUM3TiqGjrgE3Pp3vQtw+scsJxPzjI=; b=lHihSWvxQTwXTSz9Aydkb5tvH2zlEilWgGvtfENveG2O1IRTjvB5ck1wyjmxu2y19n wcxHdbuqWY7/arEoENIK/lgx5tVdbhcmNDwDrT1c0mPdpgEaAaq66cLo06VkGbYldlyq MnHQYWaHm5dOEi9HLUcXUfEnYcGuqD/zOY4cuuhgZL7CKF11KOdKlERmEdqIGG2Anl6B 2kEbEPoe2K9VGfF/z5CCZAZpnynqdiguld1YhUJrKMZzyt18Z1AqQV/4z+BXS/UiEO+a 7sZvPWaizLxZcaISicy0/y+3n8cQHOpD2UyAaRhtkmSBxNgZhMYxLeGPOotn4at6Q78n lRYQ== X-Gm-Message-State: ALoCoQml/FhdCrOTWP866nR9FSZvbx/fwy9kv58tdzQwmULxqsh8xcNilYcZxuubgS1s/zP+Hwil X-Received: by 10.66.141.231 with SMTP id rr7mr3933963pab.47.1391824045724; Fri, 07 Feb 2014 17:47:25 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.175 with SMTP id j44ls1260917qgd.44.gmail; Fri, 07 Feb 2014 17:47:25 -0800 (PST) X-Received: by 10.52.185.196 with SMTP id fe4mr10850583vdc.27.1391824045592; Fri, 07 Feb 2014 17:47:25 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id x7si2010938vel.38.2014.02.07.17.47.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 17:47:25 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 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.175; Received: by mail-vc0-f175.google.com with SMTP id ij19so3241249vcb.34 for ; Fri, 07 Feb 2014 17:47:25 -0800 (PST) X-Received: by 10.58.119.161 with SMTP id kv1mr12915872veb.21.1391824045503; Fri, 07 Feb 2014 17:47:25 -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 u4csp5867vcz; Fri, 7 Feb 2014 17:47:24 -0800 (PST) X-Received: by 10.66.145.199 with SMTP id sw7mr11396314pab.143.1391824044378; Fri, 07 Feb 2014 17:47:24 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sj5si6972839pab.139.2014.02.07.17.47.23; Fri, 07 Feb 2014 17:47:23 -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 S1751131AbaBHBrM (ORCPT + 27 others); Fri, 7 Feb 2014 20:47:12 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:32690 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750706AbaBHBrL (ORCPT ); Fri, 7 Feb 2014 20:47:11 -0500 Received: from 172.24.2.119 (EHLO szxeml207-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BPO06102; Sat, 08 Feb 2014 09:46:52 +0800 (CST) Received: from SZXEML411-HUB.china.huawei.com (10.82.67.138) by szxeml207-edg.china.huawei.com (172.24.2.56) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sat, 8 Feb 2014 09:46:48 +0800 Received: from lggeml421-hub.china.huawei.com (10.72.61.117) by szxeml411-hub.china.huawei.com (10.82.67.138) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sat, 8 Feb 2014 09:46:51 +0800 Received: from kernel-host.huawei (10.107.197.247) by lggeml421-hub.china.huawei.com (10.72.61.117) with Microsoft SMTP Server id 14.3.158.1; Sat, 8 Feb 2014 09:46:41 +0800 From: Wang Nan To: CC: Sasha Levin , Wang Nan , "Ingo Molnar" , Andrew Morton , "Geng Hui" Subject: [PATCH resend 1/2] liblockdep: Use realpath for srctree and objtree Date: Sat, 8 Feb 2014 09:43:40 +0800 Message-ID: <1391823820-11154-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1390730778-30366-1-git-send-email-wangnan0@huawei.com> References: <1390730778-30366-1-git-send-email-wangnan0@huawei.com> 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.175 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 Acked-by: 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)