Changeset 431140a in rtems


Ignore:
Timestamp:
Dec 13, 2015, 12:22:53 PM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
51de51d
Parents:
2a9db26
Message:

Display only valid BSPs, ignore other .cfg files.

Show the architecture and BSP count.

Closes #2491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems-bsps

    r2a9db26 r431140a  
    66last_arch=""
    77
    8 cfg_list=$(LANG=C LC_COLLATE=C find ${base} -name \*.cfg | sort)
     8cfg_list=$(LANG=C LC_COLLATE=C find ${base} -name \*.cfg -depth 5 | sort)
    99
    1010max_bsp_len=0
     11arch_count=0
     12bsp_count=0
    1113
    12 for bsp in ${cfg_list};
     14#set -x
     15for bsp_path in ${cfg_list};
    1316do
    14   bsp=$(echo ${bsp} | sed -e "s/.*\///" -e 's/\.cfg//')
     17  arch=$(echo ${bsp_path} | sed -e "s/${base_e}*\///" -e 's/\/.*//')
     18  bsp=$(echo ${bsp_path} | sed -e "s/.*\///" -e 's/\.cfg//')
    1519  len=${#bsp}
     20  if test "${last_arch}" != "${arch}"; then
     21    arch_count=$(expr ${arch_count} + 1)
     22    last_arch=${arch}
     23  fi
    1624  if [ $len -gt $max_bsp_len ]; then
    1725    max_bsp_len=$len
    1826  fi
     27  bsp_count=$(expr ${bsp_count} + 1)
    1928done
     29
    2030max_bsp_len=$(expr ${max_bsp_len} + 2)
     31last_arch=""
    2132
    2233echo "RTEMS 4.11"
     34echo " Architectures: ${arch_count}"
     35echo " BSP Count: ${bsp_count}"
    2336for bsp_path in ${cfg_list};
    2437do
Note: See TracChangeset for help on using the changeset viewer.