summaryrefslogtreecommitdiffstats
path: root/rtems-bsps
diff options
context:
space:
mode:
Diffstat (limited to 'rtems-bsps')
-rwxr-xr-xrtems-bsps35
1 files changed, 35 insertions, 0 deletions
diff --git a/rtems-bsps b/rtems-bsps
new file mode 100755
index 0000000000..210756fc75
--- /dev/null
+++ b/rtems-bsps
@@ -0,0 +1,35 @@
+#! /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} -name \*.cfg | sort)
+
+max_bsp_len=0
+spaces=" "
+
+for bsp in ${cfg_list};
+do
+ bsp=$(echo ${bsp} | sed -e "s/.*\///" -e 's/\.cfg//')
+ len=${#bsp}
+ if [ $len -gt $max_bsp_len ]; then
+ max_bsp_len=$len
+ fi
+done
+
+echo "RTEMS 4.11"
+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
+ echo " ${bsp}${spaces:${#bsp}}${path}"
+done
+
+exit 0