blob: 210756fc755f9452d5da90259a6a19165437a14c (
plain) (
tree)
|
|
#! /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
|