Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

John Kacur and committed by
Michal Marek
bc75cc6b 4431d4ce

+15
+4
Documentation/kbuild/kbuild.txt
··· 162 162 to be included in the databases, separated by blank space. E.g.: 163 163 164 164 $ make ALLSOURCE_ARCHS="x86 mips arm" tags 165 + 166 + To get all available archs you can also specify all. E.g.: 167 + 168 + $ make ALLSOURCE_ARCHS=all tags
+11
scripts/tags.sh
··· 24 24 tree=${srctree}/ 25 25 fi 26 26 27 + # Find all available archs 28 + find_all_archs() 29 + { 30 + ALLSOURCE_ARCHS="" 31 + for arch in `ls ${tree}arch`; do 32 + ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/} 33 + done 34 + } 35 + 27 36 # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH 28 37 if [ "${ALLSOURCE_ARCHS}" = "" ]; then 29 38 ALLSOURCE_ARCHS=${SRCARCH} 39 + elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then 40 + find_all_archs 30 41 fi 31 42 32 43 # find sources in arch/$ARCH