summaryrefslogtreecommitdiff
path: root/rtems-bsps
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-12-13 23:22:53 +1100
committerChris Johns <chrisj@rtems.org>2015-12-14 17:05:24 +1100
commit717368c9c124e7f3cbf0921e1f3500e030ad4862 (patch)
treeabb0f9ddfb62e197142cc3c075e0274df8f9259f /rtems-bsps
parent357fdfc2466f53a35d9821776d56fa236349a489 (diff)
Display only valid BSPs, ignore other .cfg files.
Show the architecture and BSP count. Closes #2491.
Diffstat (limited to 'rtems-bsps')
-rwxr-xr-xrtems-bsps19
1 files changed, 16 insertions, 3 deletions
diff --git a/rtems-bsps b/rtems-bsps
index 3f353a6a2e..173c438d29 100755
--- a/rtems-bsps
+++ b/rtems-bsps
@@ -5,21 +5,34 @@ base_e=$(echo ${base} | sed -e 's/\//\\\//g')
last_arch=""
-cfg_list=$(LANG=C LC_COLLATE=C find ${base} -name \*.cfg | sort)
+cfg_list=$(LANG=C LC_COLLATE=C find ${base} -name \*.cfg -depth 5 | sort)
max_bsp_len=0
+arch_count=0
+bsp_count=0
-for bsp in ${cfg_list};
+#set -x
+for bsp_path in ${cfg_list};
do
- bsp=$(echo ${bsp} | sed -e "s/.*\///" -e 's/\.cfg//')
+ arch=$(echo ${bsp_path} | sed -e "s/${base_e}*\///" -e 's/\/.*//')
+ bsp=$(echo ${bsp_path} | sed -e "s/.*\///" -e 's/\.cfg//')
len=${#bsp}
+ if test "${last_arch}" != "${arch}"; then
+ arch_count=$(expr ${arch_count} + 1)
+ last_arch=${arch}
+ fi
if [ $len -gt $max_bsp_len ]; then
max_bsp_len=$len
fi
+ bsp_count=$(expr ${bsp_count} + 1)
done
+
max_bsp_len=$(expr ${max_bsp_len} + 2)
+last_arch=""
echo "RTEMS 4.11"
+echo " Architectures: ${arch_count}"
+echo " BSP Count: ${bsp_count}"
for bsp_path in ${cfg_list};
do
arch=$(echo ${bsp_path} | sed -e "s/${base_e}*\///" -e 's/\/.*//')