summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2010-03-02 16:57:52 +0100
committerMichal Marek <mmarek@suse.cz>2010-03-03 10:47:09 +0100
commitbc75cc6b5636eed5f6a481cba808e906f71cfd94 (patch)
tree4c218a403c4bdf1ce8a108ea6044ab25ad66f275 /scripts
parent4431d4ce996de2cd2c45583209ba0dbbc9bf2795 (diff)
downloadblackbird-op-linux-bc75cc6b5636eed5f6a481cba808e906f71cfd94.tar.gz
blackbird-op-linux-bc75cc6b5636eed5f6a481cba808e906f71cfd94.zip
tags: Add the ability to make tags for all archs using "all"
make ALLSOURCE_ARCHS=all tags - Document this in kbuild.txt Without this change you have to type each arch separately. Signed-off-by: John Kacur <jkacur@redhat.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tags.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh
index caa867dba16d..868b4c8fc25f 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -24,9 +24,20 @@ else
tree=${srctree}/
fi
+# 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
fi
# find sources in arch/$ARCH
OpenPOWER on IntegriCloud