summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-09-02 13:37:42 +1000
committerChris Johns <chrisj@rtems.org>2016-09-02 13:37:42 +1000
commitf2aef528817b25ac18d6584f9511b8bcf2e309ed (patch)
tree13ca6ed28ec9849b3da01b1ecc22eb5813121e74
parentfat: Fix for invalid cluster sizes (diff)
downloadrtems-f2aef528817b25ac18d6584f9511b8bcf2e309ed.tar.bz2
Back port rtems-bsps for use in the release procedure.
-rwxr-xr-xrtems-bsps48
1 files changed, 48 insertions, 0 deletions
diff --git a/rtems-bsps b/rtems-bsps
new file mode 100755
index 0000000000..cff020fbb3
--- /dev/null
+++ b/rtems-bsps
@@ -0,0 +1,48 @@
+#! /bin/sh
+
+base="c/src/lib/libbsp"
+base_e=$(echo ${base} | sed -e 's/\//\\\//g')
+
+last_arch=""
+
+cfg_list=$(LANG=C LC_COLLATE=C find ${base} -mindepth 5 -name \*.cfg | sort)
+
+max_bsp_len=0
+arch_count=0
+bsp_count=0
+
+for bsp_path in ${cfg_list};
+do
+ 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.12"
+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/\/.*//')
+ bsp=$(echo ${bsp_path} | sed -e "s/.*\///" -e 's/\.cfg//')
+ path=$(echo ${bsp_path} | sed -e "s/\/make.*//")
+ if test "${last_arch}" != "${arch}"; then
+ echo "${arch}:"
+ last_arch=${arch}
+ fi
+ spaces=$(echo ${bsp} | awk '{ printf("%*s", '${max_bsp_len}' -length(), " "); }')
+ echo " ${bsp}${spaces}${path}"
+done
+
+exit 0