Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1556026imm; Tue, 22 May 2018 06:01:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrUZ32xCvtgZJOj1YaTi2/fmdAes9+lPqu/cszkRuZsq1d/+X9vN4w+2/is2t2FpBrnIFjc X-Received: by 2002:a63:6f83:: with SMTP id k125-v6mr19230798pgc.63.1526994091513; Tue, 22 May 2018 06:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526994091; cv=none; d=google.com; s=arc-20160816; b=olVIMpgS9d7fwTgr3OPJ76b3rkcVUSR4X9zqGIEWBPMrLrVa0b/9Kq4YwKLZZiL/iW wsBdBO8B4HCmfj2MZD2bE47WhxT6j40RgDeaUtkBz0xuenRFNg8mQ2C9qVOIx+nKTfY6 rsB0zSpKsAnzD/gS6R81F/IE7TH8FfbRAJd7NVdEik2L0lvFGd5u8TH1CcExdcjMH+Nd QWs5Wvpk3Pe5sa2pq9BrVdnuV3qjU7lG9HzRPmXU509pEuRnAEntle06jmAsA0+GBXJj 22clgWCiT7+ZcdL+P+kXmXBUlmoMG/BwkWa/AVmwaQaUDo5+2xeiNy2m4pXjg5HDw16V KLrg== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=c4NjIgun71IcoTH/bu+gcplRrqclieV6y6YBipr5MgA=; b=byP+ePv5IDs+zXx9+a8CjGaaulUE3hPruQJlt5xzdZ8akQbyRTIozkek20PC4Q8lHa twE/Ak5NtvUh7P9ZmyRa3RKAzfsUNuArvhypQeEFvaRH/GYYzcwDz6RbHmXWxPWuq34j gDcortr0HhhLGAk4oyM9n4l+5EaZd/2hWMyCPR09SHYo4oB2iU+3R9WrK03x13keb5Ik v4jA2qOiFxU+8y0y56EzecuYXlzroFrSvdMLEmYxrbBQ1iSu/Pcy1Xe0Er2yzLsmRki7 L83r1kTB9W4FrQ1vOU4LXNM1nBA8prGP2Qmw9HvnV2gp+Mni/qjYDI5z+iEo1zLaN400 kPig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=DO2cSsUF; 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 m2-v6si11210635pgm.306.2018.05.22.06.01.14; Tue, 22 May 2018 06:01:31 -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=DO2cSsUF; 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 S1751404AbeEVM7u (ORCPT + 99 others); Tue, 22 May 2018 08:59:50 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:32276 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbeEVM7s (ORCPT ); Tue, 22 May 2018 08:59:48 -0400 Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w4MCxhOG022143 for ; Tue, 22 May 2018 21:59:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w4MCxhOG022143 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526993984; bh=c4NjIgun71IcoTH/bu+gcplRrqclieV6y6YBipr5MgA=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=DO2cSsUFFG3TihqNoCN0tu59BPBb2pbfSjALWigw5+JW3f418GOysYKhnp7WQqCZf hHliT3/RzSjwfp3Q0J73lWYRzI2dDLy2xem9QPvK1hZB47mxUvo+dXLV8INesr/GSG Hj27av6RWB75F4B/MwQUreGMw+XxzyQs2BemZa0n2QEEwRL6z91RjH7d9TN6NpM3os 2Tc++WIlPdy3odrn6Na05WVsbOVEEvpsHW0G8ue+f5Kt8dfSbQvCCfFzNsjt2UKiBc gMFekgEEtUEQ0JPXQ9Qhu3CQfVfHnODIVc0w+3uA9Po/RrUmHMH4QeSWAfw/7K65nq fgRQlG9+W4NVA== X-Nifty-SrcIP: [209.85.213.54] Received: by mail-vk0-f54.google.com with SMTP id i185-v6so10818667vkg.3 for ; Tue, 22 May 2018 05:59:44 -0700 (PDT) X-Gm-Message-State: ALKqPwetBSkRWbLW6XGFAejyBvV/IiTJ/u27rvkGGVyTdqP2w/LGQ2dt RqBI9Q5LA38+HAOaXuRO5WZz53fzmlahtEWkg5E= X-Received: by 2002:a1f:a991:: with SMTP id s139-v6mr16556165vke.54.1526993982782; Tue, 22 May 2018 05:59:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:55d8:0:0:0:0:0 with HTTP; Tue, 22 May 2018 05:59:02 -0700 (PDT) In-Reply-To: <20180522091606.uxvnrz7bbotpxnhn@gmail.com> References: <20180522091606.uxvnrz7bbotpxnhn@gmail.com> From: Masahiro Yamada Date: Tue, 22 May 2018 21:59:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5] scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation To: Joey Pabalinas Cc: Andrew Morton , Linux Kernel Mailing List , Arend van Spriel , Robert Jarzmik 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 2018-05-22 18:16 GMT+09:00 Joey Pabalinas : > The current code includes 'Kconfig' in ALLSOURCE_ARCHS, but > it should not (Kconfig is not an architecture). Replace this > with a find-generated string and directly assign it to > $ALLSOURCE_ARCHS. The find_all_archs() function is no longer > needed for a one-liner with obvious semantics, so inline the > arch generation into the surrounding conditional. > > Signed-off-by: Joey Pabalinas > Applied to linux-kbuild. Thanks! > 1 file changed, 1 insertion(+), 10 deletions(-) > > diff --git a/scripts/tags.sh b/scripts/tags.sh > index 78e546ff689c2d5f40..e587610d149271171d 100755 > --- a/scripts/tags.sh > +++ b/scripts/tags.sh > @@ -26,24 +26,15 @@ else > fi > > # ignore userspace tools > ignore="$ignore ( -path ${tree}tools ) -prune -o" > > -# Find all available archs > -find_all_archs() > -{ > - ALLSOURCE_ARCHS="" > - for arch in `ls ${tree}arch`; do > - ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/} > - done > -} > - > # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH > if [ "${ALLSOURCE_ARCHS}" = "" ]; then > ALLSOURCE_ARCHS=${SRCARCH} > elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then > - find_all_archs > + ALLSOURCE_ARCHS=$(find ${tree}arch/ -mindepth 1 -maxdepth 1 -type d -printf '%f ') > fi > > # find sources in arch/$ARCH > find_arch_sources() > { > -- > 2.17.0.rc1.35.g90bbd502d54fe92035.dirty -- Best Regards Masahiro Yamada