Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758012AbcDHJQg (ORCPT ); Fri, 8 Apr 2016 05:16:36 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36617 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757443AbcDHJQf (ORCPT ); Fri, 8 Apr 2016 05:16:35 -0400 From: Thierry Reding To: Jan Kiszka Cc: linux-kernel@vger.kernel.org Subject: [PATCH] scripts/gdb: Use $(abspath ...) instead of $(shell cd ... && pwd) Date: Fri, 8 Apr 2016 11:16:32 +0200 Message-Id: <1460106992-6864-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.8.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 684 Lines: 25 From: Thierry Reding Avoid forking off a shell to resolve the absolute path of the output directory when make's builtin $(abspath ...) function will do an adequate job. Signed-off-by: Thierry Reding --- scripts/gdb/linux/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb/linux/Makefile b/scripts/gdb/linux/Makefile index 6cf1ecf61057..d8b88e22e16a 100644 --- a/scripts/gdb/linux/Makefile +++ b/scripts/gdb/linux/Makefile @@ -1,6 +1,6 @@ always := gdb-scripts -SRCTREE := $(shell cd $(srctree) && /bin/pwd) +SRCTREE := $(abspath $(srctree)) $(obj)/gdb-scripts: ifneq ($(KBUILD_SRC),) -- 2.8.0