Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4793794ybg; Tue, 29 Oct 2019 12:28:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmXJrnZL2tw3zfAEx+5XLdxXVL2izB+uLgCSWpdB3HepSJyxoQtnIp5I/2pKmhpNkVwtQq X-Received: by 2002:a17:906:9c1:: with SMTP id r1mr4889266eje.217.1572377338386; Tue, 29 Oct 2019 12:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572377338; cv=none; d=google.com; s=arc-20160816; b=v3Q5ekL18+iQWkseu2dl1s2aOWxlgJDoRgSS1xQ47Yq6A49fpwS5j5VMbhjPe9GgmN MQKV53USe8nPRdCfiEHAs/7jmazeQhTdbtYFvo8EHwJr8vtsiPzDjQcG3ZUFHzuFDO7x BFeEEzBh8SxPMGoyZKmoMYnehnPagGoAlMaEkJEKz8Dq0jidQCxdCmo6iajSoF8aUtQx zFq+OBfE9xMM6vwMkK3aNE8lPVZohe7hErfK2XS+oqvApay8ulExWENAhsY8DpNmR0RD rtez8VvsxyFF2JbfMI86NppmNo3nIiu8JibAbo84n+FBktKNfYpqzdMHPVtczAJFVkQU t52g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=ycMbZtUGC8hAeSAW/0e73NsiRHYVtXuSSSSislazCQo=; b=CqnYxH1jsHW5azPcRhKXQpfQTNXEu6ze7Uzea0+8Vvo+HqaOyLleiNn9Kqx6mKjF/J zcC7BC/L8afT43kuMNPMxGexedUgLQ17Edao991wfdzjvps0+Ppa4v7enIp+CzAtk35T otNYMfal2sSPmd/xwECRXV7c7QghcXo9kdRfaYzdvm2i6YgOWO3LrtJG1KlFGTTfHFW4 VLyqi3Uy1ON70eXHERC+86u652BdKwmpdmQ03R5J3JBdg4NujAm2FSnP/VB6nGyGgDp+ JsKK4UDsKKnsuJIC/pI8x1cQBv5zrEY5+mAcT6nvuu2Gx663bTBL0JJIfz/QSCfCDL3+ +SEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=YAUcy1Z7; 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 f6si10623982edb.431.2019.10.29.12.28.34; Tue, 29 Oct 2019 12:28:58 -0700 (PDT) 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 header.i=@nifty.com header.s=dec2015msa header.b=YAUcy1Z7; 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 S2388043AbfJ2Msz (ORCPT + 99 others); Tue, 29 Oct 2019 08:48:55 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:29211 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729253AbfJ2Msw (ORCPT ); Tue, 29 Oct 2019 08:48:52 -0400 Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x9TCmfFx027174 for ; Tue, 29 Oct 2019 21:48:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x9TCmfFx027174 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1572353322; bh=ycMbZtUGC8hAeSAW/0e73NsiRHYVtXuSSSSislazCQo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YAUcy1Z7BHMXba9aS3kuTWqBizqxh2nsY6KKf8NqU/9TG693QjR5ULDjRjcvElSX5 9hT3mLy2Rw33xULiDMG3PH6KeK4EfjHmaK+0AkkCezyfRCuup6N5dny5jlhrIhTn6X bI65yK1I+qo82aZPAE593wmgQCG4+fM+2JaHN8FqINCunqwHK2+SwKHQPPmzw3pYZl iWCCTbt74GJkAoJPcE/qHpiDL+MISObsQyKctJ7kO0vFGuLwBlFk+C86fmr59KV9uk KdZ4EeqdKNng2wgNTbaTjgGkG+UPa7Iull+7lZf1bQsUFYBL1ep34iFskJNzPeafG/ Iw4Xh3aI/RF8A== X-Nifty-SrcIP: [209.85.222.52] Received: by mail-ua1-f52.google.com with SMTP id o3so1995846ual.12 for ; Tue, 29 Oct 2019 05:48:41 -0700 (PDT) X-Gm-Message-State: APjAAAVzDgSWsmOFIQldRxz0hoMpBU4JMeXgb/p8oUbxnCIYviiAn5Sw e03feQJBV8D924cb8m70pF/Ahj0xRli1E1tUd+w= X-Received: by 2002:a9f:3e81:: with SMTP id x1mr11462917uai.121.1572353320421; Tue, 29 Oct 2019 05:48:40 -0700 (PDT) MIME-Version: 1.0 References: <20191028151427.31612-1-jeyu@kernel.org> In-Reply-To: <20191028151427.31612-1-jeyu@kernel.org> From: Masahiro Yamada Date: Tue, 29 Oct 2019 21:48:03 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] scripts/nsdeps: use $MODORDER to obtain correct modules.order path To: Jessica Yu Cc: Linux Kernel Mailing List , Matthias Maennich Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 12:14 AM Jessica Yu wrote: > > The nsdeps script calls generate_deps() for every module in the > modules.order file. It prepends $objtree to obtain the full path of the > top-level modules.order file. This produces incorrect results when > calling nsdeps for an external module, as only the ns dependencies for > in-tree modules listed in $objtree/modules.order are generated rather > than the ns dependencies for the external module. To fix this, just use > the MODORDER variable provided by kbuild - it uses the correct path for > the relevant modules.order file (either in-tree or the one produced by > the external module build). > > Signed-off-by: Jessica Yu > --- > > So, not being too familiar with kbuild, I am not sure if MODORDER was the > appropriate kbuild variable to use, but I could not find anything else that > gives us the modules.order path. Masahiro, please let me know if this is > appropriate usage. Right, MODORDER allows you to get access to the right modules.order depending on what you are building although this patch alone is not useful since nsdeps does not work with external modules. > scripts/nsdeps | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/nsdeps b/scripts/nsdeps > index dda6fbac016e..54d2ab8f9e5c 100644 > --- a/scripts/nsdeps > +++ b/scripts/nsdeps > @@ -52,7 +52,7 @@ generate_deps() { > done > } > > -for f in `cat $objtree/modules.order`; do > +for f in `cat $MODORDER`; do > generate_deps $f > done > > -- > 2.16.4 > -- Best Regards Masahiro Yamada