Commit d1db881d authored by Masahiro Yamada's avatar Masahiro Yamada

scripts/tags.sh: drop SUBARCH support for ARM

Our goal is to have more and more sub-architectures to join the
ARM multi-platform, and support them in a single configuration.

Remove the ARM SUBARCH support because it is ugly.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 43c78d88
...@@ -42,15 +42,13 @@ find_arch_sources() ...@@ -42,15 +42,13 @@ find_arch_sources()
for i in $archincludedir; do for i in $archincludedir; do
prune="$prune -wholename $i -prune -o" prune="$prune -wholename $i -prune -o"
done done
find ${tree}arch/$1 $ignore $subarchprune $prune -name "$2" \ find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print;
-not -type l -print;
} }
# find sources in arch/$1/include # find sources in arch/$1/include
find_arch_include_sources() find_arch_include_sources()
{ {
include=$(find ${tree}arch/$1/ $subarchprune \ include=$(find ${tree}arch/$1/ -name include -type d -print);
-name include -type d -print);
if [ -n "$include" ]; then if [ -n "$include" ]; then
archincludedir="$archincludedir $include" archincludedir="$archincludedir $include"
find $include $ignore -name "$2" -not -type l -print; find $include $ignore -name "$2" -not -type l -print;
...@@ -306,36 +304,6 @@ if [ "${ARCH}" = "um" ]; then ...@@ -306,36 +304,6 @@ if [ "${ARCH}" = "um" ]; then
else else
archinclude=${SUBARCH} archinclude=${SUBARCH}
fi fi
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-"${mach_suffix})
;;
*"plat-"${plat_suffix})
;;
*)
subarchprune="$subarchprune \
-wholename $i -prune -o"
;;
esac
done
fi fi
remove_structs= remove_structs=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment