From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753912Ab0CBP6B (ORCPT ); Tue, 2 Mar 2010 10:58:01 -0500 Received: from mail-fx0-f219.google.com ([209.85.220.219]:55951 "EHLO mail-fx0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585Ab0CBP6A (ORCPT ); Tue, 2 Mar 2010 10:58:00 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=aVNBq4A72F78OHqobdcNRCNILS8cHFJ2rpg9sCrtFKe5RxProDOxzyN6yCBAiWaoh5 LvGKmneiIVtR2Bb0BvPyuNtGaOmu7iFJqPhLQvB8GI9OlsqFBp5CpzvDvm8nxJRoxO55 pUyLLSeu/2ouatXVyJliiS8LOYoB2rWHNSuoE= From: John Kacur To: lkml Cc: Michal Marek , linux-kbuild@vger.kernel.org, Andrew Morton , John Kacur Subject: [PATCH] kbuild - tags Date: Tue, 2 Mar 2010 16:57:52 +0100 Message-Id: <1267545472-17131-1-git-send-email-jkacur@redhat.com> X-Mailer: git-send-email 1.6.6.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - 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 --- Documentation/kbuild/kbuild.txt | 4 ++++ scripts/tags.sh | 11 +++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index 6f8c1ca..a6791e3 100644 --- a/Documentation/kbuild/kbuild.txt +++ b/Documentation/kbuild/kbuild.txt @@ -162,3 +162,7 @@ For tags/TAGS/cscope targets, you can specify more than one arch to be included in the databases, separated by blank space. E.g.: $ make ALLSOURCE_ARCHS="x86 mips arm" tags + +To get all available archs you can also specify all. E.g.: + + $ make ALLSOURCE_ARCHS=all tags diff --git a/scripts/tags.sh b/scripts/tags.sh index a6a8e71..766eb8a 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 -- 1.6.6.1