Skip to contentSkip to conversation

scripts/tags.sh: Support SUBPLAT for ARM

PATCH New Woosung Lee 1 participant 1 message Apr 19, 2013

lore
Share & tools
lore
#0 lore raw

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

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.

---
 scripts/tags.sh |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/tags.sh +1 -1
index 26a87e6..b609d1e 100755
@@ -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"

Signature · 1 line
1.7.9.5