Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1721097img; Wed, 27 Feb 2019 04:22:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZsqohwJTITidRCr+wgwkHNDDAa6WnMbEJzNTSeSgozyqLHhAH0YSGgkP9H5wjkKzKg20Pk X-Received: by 2002:a17:902:bf05:: with SMTP id bi5mr1874291plb.259.1551270129513; Wed, 27 Feb 2019 04:22:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551270129; cv=none; d=google.com; s=arc-20160816; b=oBQBqKhPZtlpfQ2rwSmDqCgU18F2VbLtFjlpz2cGKzw18XGuzREpfHQk/GecUhwy9l +gf3EKBqwD3xr+XUssck9XlU9dKbmD6eo/5FusJ+EDn9542AiXXntCYu9LYfXcIx+r/P ZHzCNAdH7vzw83to5nBNZtOIFn19dLTYhJLZcDUQH+qD5IH2jwJ1z7eG1/3PyNpRVYyM LUY5wzGYmRwcmlbQJt8iK83+24ks/+idmocAoLuwA25YdhtFoXnXRu0yHp0NDxI+p29O FRJWdHgMgQouTldnRNiZV9Sc0wDG9jjlw73qRjv0vG7RBWMTaLXQBFYBI3GzdkF908kF br6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:reply-to:dkim-signature; bh=5dffTWJTyvnlF7IeoH8ThY6oxUlYtblsLFWOA31KUzg=; b=df2mbCrZ/cffGFys1fnPsfhIA0gehGMNu5tYOHV/jfrpZVQJ/OOKI/5RMR5CptrMWg wRQ5+JFH6beZVR69A+inBFIa2BxLpps3aVgwKYChbYTjodont7EI9HIZi842jFY7mzGl ah21md00AOi5IqnKTQbMVhNdidico7dekqsctD/c/yHyqZUoghEubJKSnhcWnv+PNZjH N/3JMYMzLzUZUhX1ihfhwbgR3PECgEReSDwHnPzR0mjbEZnZnSLP+h65X8hDB/zxrGi4 uZ6gtUbtVrxDTUhdDId1dVnlQdOEJt+n0UPvt/GNhoA0uKsb4uEZgDXURFn9FAGtRch2 q8wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wbFSyjsx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6si11573692pgd.106.2019.02.27.04.21.54; Wed, 27 Feb 2019 04:22:09 -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; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wbFSyjsx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729716AbfB0Lsi (ORCPT + 99 others); Wed, 27 Feb 2019 06:48:38 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:41172 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbfB0Lsh (ORCPT ); Wed, 27 Feb 2019 06:48:37 -0500 Received: from [192.168.0.21] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 740B267; Wed, 27 Feb 2019 12:48:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1551268115; bh=tMT9Mr7cczIS8VA5gx+t3SIkJ5vJwdzS5SgY4NyYzdM=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=wbFSyjsxuYFns6Ley2itM4Pxb+7PqVRbMpNnmvaOoYP76N/UrAY+Z+a7KPCbuQkkm szKIIztRG6ydnKC6c7eiORa3iAT56E4TTZV+6BB5gjjGkF7RgaQ5r4DZupvtH8tmmb 8n7wQe8lWXvsl/fgITsV/bqpt3Jk/y6fZ/WXUrSU= Reply-To: kieran.bingham@ideasonboard.com Subject: Re: [PATCH 4/5] kbuild: create symlink to vmlinux-gdb.py in scripts_gdb target To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: Michal Marek , linux-kernel@vger.kernel.org References: <1550568787-18710-1-git-send-email-yamada.masahiro@socionext.com> <1550568787-18710-4-git-send-email-yamada.masahiro@socionext.com> From: Kieran Bingham Openpgp: preference=signencrypt Autocrypt: addr=kieran.bingham@ideasonboard.com; keydata= mQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5Eqo4t6qEVbuettxx55gq 8K8FieAjgjMSxngo/HST8TpFeqI5nVeq0/lqtBRQKumuIqDg+Bkr4L1V/PSB6XgQcOdhtd36 Oe9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ZLztFJKR3RD42VKVsrnNDKnoY0f4U0z7eJv2NeF8xHMuiU RCIzqxX1GVYaNkKTnb/Qja8hnYnkUzY1Lc+OtwiGmXTwYsPZjjAaDX35J/RSKAoy5wGo/YFA JxB1gWThL4kOTbsqqXj9GLcyOImkW0lJGGR3o/fV91Zh63S5TKnf2YGGGzxki+ADdxVQAm+Q sbsRB8KNNvVXBOVNwko86rQqF9drZuw= Organization: Ideas on Board Message-ID: Date: Wed, 27 Feb 2019 11:48:32 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1550568787-18710-4-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yamada-san, On 19/02/2019 09:33, Masahiro Yamada wrote: > It is weird to create gdb stuff as a side-effect of vmlinux. > > Move it to a more relevant place. > > Signed-off-by: Masahiro Yamada > --- > > Makefile | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/Makefile b/Makefile > index a5762c6..0459260 100644 > --- a/Makefile > +++ b/Makefile > @@ -1015,9 +1015,6 @@ cmd_link-vmlinux = \ > $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) > > vmlinux: scripts/link-vmlinux.sh autoksyms_recursive $(vmlinux-deps) FORCE > -ifdef CONFIG_GDB_SCRIPTS > - $(Q)ln -fsn $(abspath $(srctree)/scripts/gdb/vmlinux-gdb.py) > -endif My initial thought was, doesn't this have a dependency on the vmlinux ... but of course it doesn't. It's not symlinking to the output binary - it's creating a helper link for GDB to know how to tie in the scripts-gdb package. It doesn't require vmlinux to exist at all. So yes, I agree this is fine. > +$(call if_changed,link-vmlinux) > > targets := vmlinux > @@ -1519,6 +1516,7 @@ $(DOC_TARGETS): scripts_basic FORCE > PHONY += scripts_gdb > scripts_gdb: prepare > $(Q)$(MAKE) $(build)=scripts/gdb > + $(Q)ln -fsn $(abspath $(srctree)/scripts/gdb/vmlinux-gdb.py) and especially as we now have this convenient location for it. This looks much better. Reviewed-by: Kieran Bingham > > ifdef CONFIG_GDB_SCRIPTS > all: scripts_gdb > -- Regards -- Kieran