diff options
| author | Joey Pabalinas <joeypabalinas@gmail.com> | 2018-05-22 05:16:06 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-05-22 10:00:24 -0400 |
| commit | 656c107770e37759d0e888a1c38cd28792ca214b (patch) | |
| tree | 0e7263ec0b8e451534470f87b1eb84d9340fc4fb /scripts | |
| parent | 21195f8e9a473035dc692a40a145f4f083fe5c1f (diff) | |
scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation
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 <joeypabalinas@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/tags.sh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index 78e546ff689c..e587610d1492 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
| @@ -28,20 +28,11 @@ fi | |||
| 28 | # ignore userspace tools | 28 | # ignore userspace tools |
| 29 | ignore="$ignore ( -path ${tree}tools ) -prune -o" | 29 | ignore="$ignore ( -path ${tree}tools ) -prune -o" |
| 30 | 30 | ||
| 31 | # Find all available archs | ||
| 32 | find_all_archs() | ||
| 33 | { | ||
| 34 | ALLSOURCE_ARCHS="" | ||
| 35 | for arch in `ls ${tree}arch`; do | ||
| 36 | ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/} | ||
| 37 | done | ||
| 38 | } | ||
| 39 | |||
| 40 | # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH | 31 | # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH |
| 41 | if [ "${ALLSOURCE_ARCHS}" = "" ]; then | 32 | if [ "${ALLSOURCE_ARCHS}" = "" ]; then |
| 42 | ALLSOURCE_ARCHS=${SRCARCH} | 33 | ALLSOURCE_ARCHS=${SRCARCH} |
| 43 | elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then | 34 | elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then |
| 44 | find_all_archs | 35 | ALLSOURCE_ARCHS=$(find ${tree}arch/ -mindepth 1 -maxdepth 1 -type d -printf '%f ') |
| 45 | fi | 36 | fi |
| 46 | 37 | ||
| 47 | # find sources in arch/$ARCH | 38 | # find sources in arch/$ARCH |
