From patchwork Fri Dec 2 12:21:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 86288 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp228133qgi; Fri, 2 Dec 2016 04:22:06 -0800 (PST) X-Received: by 10.84.218.15 with SMTP id q15mr95826475pli.143.1480681326391; Fri, 02 Dec 2016 04:22:06 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si4899682pgh.212.2016.12.02.04.22.06; Fri, 02 Dec 2016 04:22:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758734AbcLBMWC (ORCPT + 25 others); Fri, 2 Dec 2016 07:22:02 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:35495 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757290AbcLBMWB (ORCPT ); Fri, 2 Dec 2016 07:22:01 -0500 Received: by mail-lf0-f52.google.com with SMTP id b14so193858787lfg.2 for ; Fri, 02 Dec 2016 04:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=g9ERgbZPtUb29Py3dh8htkFckvGoYO+OkyfGjI2sUCo=; b=VxL8PovupKCmx/pIjkYv8NNJpkiv1YtNYRW7WUeeDHY3eC72afNUQLsdSU5f/YKal2 pszQXSM+TUD3E7mYAKOAvTwQMt68okIcRUEEnxfBf6PNs8CXuWKbrz6/hbRF29LFkAiH w7TQsWMuYyJ0Q4vBPhRljM/5av8Cn/UNFxsHnMNKH++sT6NYo/ODlzUvfnJ9zpghWF7N Ssw0+7qPRi1Vxnf2T5AjgafrFbL8qJQX7vHDEJ2e2QS7IoEakB+jHFeOSGgVn94Ji4EJ ojzm2TN0QyU9P40L+0/M9L3zmVPoH1K4FBdjTD/r1TSUxPBGAy8uuIYvY9/jVk03ykSx 41AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=g9ERgbZPtUb29Py3dh8htkFckvGoYO+OkyfGjI2sUCo=; b=m02IJjwWdrxtI36bjn2kU4knoBs52pk735IJVK447VZbPVTyGwP/4xxoE+IHeon+nQ 1kuPiOF5zqLpoYISfCyNypdVFwOyOSWr0Tf9MXlYQf4TbRd1evUd6krtaWS++1ha5iev 6GI3f4eJwwpJCiT45s8N/XBSVbh65/jrg/b7K+xDdNHa4gjHBSEb6VRSwmwLfGMxq3+S KktHcUAY8IVB29WIYr+L/i0at0R1gBBZXuP7uJHcRg47GSlmISmrYXz+au/XLFt1C/7q DBZLm0s2Qjg/dSmlUiWJeiswJssbPVBjqXp5JC1V7TEJSmJpJ/p/KISb6Vl2pj43B19W W4MQ== X-Gm-Message-State: AKaTC02ePrwLXgOtf57+ih+Wg6sEpPojkxestePUsufCCoKcxxN2pUNU5bqByPGNftUAIw== X-Received: by 10.25.104.20 with SMTP id d20mr14346892lfc.59.1480681319618; Fri, 02 Dec 2016 04:21:59 -0800 (PST) Received: from localhost ([195.191.127.225]) by smtp.gmail.com with ESMTPSA id r204sm747668lfr.19.2016.12.02.04.21.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Dec 2016 04:21:58 -0800 (PST) From: Sam Protsenko To: Michal Marek , Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: [PATCH] scripts/tags.sh: Handle OMAP platforms properly Date: Fri, 2 Dec 2016 14:21:48 +0200 Message-Id: <20161202122148.15001-1-joe.skb7@gmail.com> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sam Protsenko When SUBARCH is "omap1" or "omap2", plat-omap/ directory must be indexed. Handle this special case properly. While at it, check if mach- directory exists at all. Signed-off-by: Sam Protsenko --- scripts/tags.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) -- 2.10.2 diff --git a/scripts/tags.sh b/scripts/tags.sh index a2ff338..df5fa77 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -304,11 +304,26 @@ if [ "${ARCH}" = "um" ]; then elif [ "${SRCARCH}" = "arm" -a "${SUBARCH}" != "" ]; then subarchdir=$(find ${tree}arch/$SRCARCH/ -name "mach-*" -type d -o \ -name "plat-*" -type d); + mach_suffix=$SUBARCH + plat_suffix=$SUBARCH + + # Special cases when $plat_suffix != $mach_suffix + case $mach_suffix in + "omap1" | "omap2") + plat_suffix="omap" + ;; + esac + + if [ ! -d ${tree}arch/$SRCARCH/mach-$mach_suffix ]; then + echo "Warning: arch/arm/mach-$mach_suffix/ not found." >&2 + echo " Fix your \$SUBARCH appropriately" >&2 + fi + for i in $subarchdir; do case "$i" in - *"mach-"${SUBARCH}) + *"mach-"${mach_suffix}) ;; - *"plat-"${SUBARCH}) + *"plat-"${plat_suffix}) ;; *) subarchprune="$subarchprune \