From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1953922AbdDYUID (ORCPT ); Tue, 25 Apr 2017 16:08:03 -0400 Received: from smtp13.smtpout.orange.fr ([80.12.242.135]:29428 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1949234AbdDYUHx (ORCPT ); Tue, 25 Apr 2017 16:07:53 -0400 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Tue, 25 Apr 2017 22:07:51 +0200 X-ME-IP: 109.222.249.194 From: Robert Jarzmik To: Masahiro Yamada Cc: Michal Marek , Linux Kernel Mailing List , Linux Kbuild mailing list Subject: Re: [PATCH v2] tags: honor COMPILED_SOURCE with apart output directory References: <1481819733-3002-1-git-send-email-robert.jarzmik@free.fr> X-URL: http://belgarath.falguerolles.org/ Date: Tue, 25 Apr 2017 22:07:47 +0200 In-Reply-To: (Masahiro Yamada's message of "Tue, 25 Apr 2017 03:06:04 +0900") Message-ID: <87shkwi73g.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada writes: > Hi Robert, >> diff --git a/scripts/tags.sh b/scripts/tags.sh >> index a2ff3388e5ea..35cb64d5211c 100755 >> --- a/scripts/tags.sh >> +++ b/scripts/tags.sh >> @@ -106,7 +106,8 @@ all_compiled_sources() >> case "$i" in >> *.[cS]) >> j=${i/\.[cS]/\.o} >> - if [ -e $j ]; then >> + k="${j#$tree}" >> + if [ -e $j -o -e "$k" ]; then > > > Do we need to check both srctree and objtree? > I think checking objtree (after $tree is ripped off) is enough. If I remember correctly, as this goes back a couple of monthes when I made the tests of this patch, the srctree is checked for the case when the kernel is compiled without O=, and objtree for the case with O=. Cheers. -- Robert