From 9ada1b488d72b3c8e7708939fe3c319673a66d53 Mon Sep 17 00:00:00 2001 From: Jike Song Date: Mon, 5 Jan 2009 14:57:03 +0800 Subject: [PATCH] --- yaml --- r: 127191 b: refs/heads/master c: 4f628248a578585472e19e4cba2c604643af8c6c h: refs/heads/master i: 127189: 276692e6df005a0816e70f828e1954d3e3f77418 127187: a913d2c4dd09561c6edbf333d97781c251da800a 127183: 29022d5db70a06a1ddd3e90e6a68ac503fbc19d5 v: v3 --- [refs] | 2 +- trunk/Documentation/kbuild/kbuild.txt | 7 +++++++ trunk/scripts/tags.sh | 18 +++++++++++++----- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index c33c80dcd970..f52a9f4fc7c4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 40c8c85a47552bd792b0ad49ddcc45ec18369134 +refs/heads/master: 4f628248a578585472e19e4cba2c604643af8c6c diff --git a/trunk/Documentation/kbuild/kbuild.txt b/trunk/Documentation/kbuild/kbuild.txt index 51771847e816..923f9ddee8f6 100644 --- a/trunk/Documentation/kbuild/kbuild.txt +++ b/trunk/Documentation/kbuild/kbuild.txt @@ -124,3 +124,10 @@ KBUILD_EXTRA_SYMBOLS -------------------------------------------------- For modules use symbols from another modules. See more details in modules.txt. + +ALLSOURCE_ARCHS +-------------------------------------------------- +For tags/TAGS/cscope targets, you can specify more than one archs +to be included in the databases, separated by blankspace. e.g. + + $ make ALLSOURCE_ARCHS="x86 mips arm" tags diff --git a/trunk/scripts/tags.sh b/trunk/scripts/tags.sh index 9e3451d2c3a1..fdbe78bb5e2b 100755 --- a/trunk/scripts/tags.sh +++ b/trunk/scripts/tags.sh @@ -24,6 +24,11 @@ else tree=${srctree}/ fi +# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH +if [ "${ALLSOURCE_ARCHS}" = "" ]; then + ALLSOURCE_ARCHS=${SRCARCH} +fi + # find sources in arch/$ARCH find_arch_sources() { @@ -54,26 +59,29 @@ find_other_sources() find_sources() { find_arch_sources $1 "$2" - find_include_sources "$2" - find_other_sources "$2" } all_sources() { - find_sources $SRCARCH '*.[chS]' + for arch in $ALLSOURCE_ARCHS + do + find_sources $arch '*.[chS]' + done if [ ! -z "$archinclude" ]; then find_arch_include_sources $archinclude '*.[chS]' fi + find_include_sources '*.[chS]' + find_other_sources '*.[chS]' } all_kconfigs() { - find_sources $SRCARCH 'Kconfig*' + find_sources $ALLSOURCE_ARCHS 'Kconfig*' } all_defconfigs() { - find_sources $SRCARCH "defconfig" + find_sources $ALLSOURCE_ARCHS "defconfig" } docscope()