From patchwork Tue Mar 2 15:57:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 83195 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o22Fw1lN006286 for ; Tue, 2 Mar 2010 15:58:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753818Ab0CBP6A (ORCPT ); Tue, 2 Mar 2010 10:58:00 -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 Received: by fxm19 with SMTP id 19so432887fxm.21 for ; Tue, 02 Mar 2010 07:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer; bh=YdtgGhBGVgABmPvr2JJVEj+B7CSNhZGyidX/+543r/E=; b=wk7ulK8zq6B3fZzGgsM5d+7Ivqgj4AiOtAY75OTs7jkblwRjYVXGP/ZKrGve9Yc92l MZ1EPMwuiOwjQ//LE+vFcU/60WKDw+IhmpnZqw3/6N2yo1kAQomedLBoWz68mRylCLUe 6G0EdMCpnL9OO36WConoIzbC6W8ADfjMlc7gQ= 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= Received: by 10.223.63.208 with SMTP id c16mr6859102fai.29.1267545477967; Tue, 02 Mar 2010 07:57:57 -0800 (PST) Received: from localhost.localdomain (p548C7F57.dip.t-dialin.net [84.140.127.87]) by mx.google.com with ESMTPS id 16sm2971581fxm.3.2010.03.02.07.57.56 (version=SSLv3 cipher=RC4-MD5); Tue, 02 Mar 2010 07:57:56 -0800 (PST) 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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 02 Mar 2010 15:58:01 +0000 (UTC) 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