mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Display only valid BSPs, ignore other .cfg files.
Show the architecture and BSP count. Closes #2491.
This commit is contained in:
19
rtems-bsps
19
rtems-bsps
@@ -5,21 +5,34 @@ base_e=$(echo ${base} | sed -e 's/\//\\\//g')
|
|||||||
|
|
||||||
last_arch=""
|
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
|
max_bsp_len=0
|
||||||
|
arch_count=0
|
||||||
|
bsp_count=0
|
||||||
|
|
||||||
for bsp in ${cfg_list};
|
#set -x
|
||||||
|
for bsp_path in ${cfg_list};
|
||||||
do
|
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}
|
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
|
if [ $len -gt $max_bsp_len ]; then
|
||||||
max_bsp_len=$len
|
max_bsp_len=$len
|
||||||
fi
|
fi
|
||||||
|
bsp_count=$(expr ${bsp_count} + 1)
|
||||||
done
|
done
|
||||||
|
|
||||||
max_bsp_len=$(expr ${max_bsp_len} + 2)
|
max_bsp_len=$(expr ${max_bsp_len} + 2)
|
||||||
|
last_arch=""
|
||||||
|
|
||||||
echo "RTEMS 4.11"
|
echo "RTEMS 4.11"
|
||||||
|
echo " Architectures: ${arch_count}"
|
||||||
|
echo " BSP Count: ${bsp_count}"
|
||||||
for bsp_path in ${cfg_list};
|
for bsp_path in ${cfg_list};
|
||||||
do
|
do
|
||||||
arch=$(echo ${bsp_path} | sed -e "s/${base_e}*\///" -e 's/\/.*//')
|
arch=$(echo ${bsp_path} | sed -e "s/${base_e}*\///" -e 's/\/.*//')
|
||||||
|
|||||||
Reference in New Issue
Block a user