[PATCH 1/1] scripts/tags.sh: Support SUBPLAT for ARM

From: Woosung Lee
Date: Thu Apr 18 2013 - 20:59:21 EST


There are many subarch on ARM, and each subarch use their vendor's
platform code. Typical name of platform code use their product
series or vendor name.

This patch support SUBPLAT for platform code.

Signed-off-by: Woosung Lee <wstar.lee@xxxxxxxxxxx>
Cc: Joonsoo Kim <js1304@xxxxxxxxx>
---
scripts/tags.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index 26a87e6..b609d1e 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -276,7 +276,7 @@ if [ "${ARCH}" = "um" ]; then
else
archinclude=${SUBARCH}
fi
-elif [ "${SRCARCH}" = "arm" -a "${SUBARCH}" != "" ]; then
+elif [ "${SRCARCH}" = "arm" -a "${SUBARCH}" != "" -o "${SUBPLAT}" != "" ];
then
subarchdir=$(find ${tree}arch/$SRCARCH/ -name "mach-*" -type d -o \
-name "plat-*" -type
d);
for i in $subarchdir; do
@@ -285,6 +285,8 @@ elif [ "${SRCARCH}" = "arm" -a "${SUBARCH}" != "" ];
then
;;
*"plat-"${SUBARCH})
;;
+ *"plat-"${SUBPLAT})
+ ;;
*)
subarchprune="$subarchprune \
-wholename $i -prune -o"
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/