[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180518093131.7g5m4mu3mtrgb7so@gmail.com>
Date: Thu, 17 May 2018 23:31:31 -1000
From: Joey Pabalinas <joeypabalinas@...il.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Joey Pabalinas <joeypabalinas@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Arend van Spriel <arend.vanspriel@...adcom.com>,
Robert Jarzmik <robert.jarzmik@...e.fr>
Subject: Re: [PATCH v3] scripts/tags.sh: don't parse `ls` for
$ALLSOURCE_ARCHS generation
On Fri, May 18, 2018 at 04:08:44PM +0900, Masahiro Yamada wrote:
> I do not like hard-coding the file(s) in arch/.
>
> Don't you have an idea to list only directories?
> 'find -type d' or 'ls -F' or something?
How do you feel about the following?
> # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
> if [ "${ALLSOURCE_ARCHS}" = "" ]; then
> ALLSOURCE_ARCHS="${SRCARCH}"
> elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then
> ALLSOURCE_ARCHS="$(cd "${tree}arch/" && find . -maxdepth 1 -type d | paste -sd' ')"
> ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS//[.\/]}"
> fi
If something like that if acceptable, I'll use that for the v4.
--
Cheers,
Joey Pabalinas
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists