Changeset 7ff743d in rtems


Ignore:
Timestamp:
04/10/18 00:32:25 (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
5, master
Children:
aa567bc1
Parents:
9e8df1fe
git-author:
Chris Johns <chrisj@…> (04/10/18 00:32:25)
git-committer:
Chris Johns <chrisj@…> (04/11/18 01:52:29)
Message:

Generate an error if a BSP in the --enable-rtemsbsp list is not valid

Also generate an error if the architecure does not match the --target
architecture given to configure's command line.

Close #2641.

Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal/enable-rtemsbsp.m4

    r9e8df1fe r7ff743d  
    1111  yes ) enable_rtemsbsp="" ;;
    1212  no ) enable_rtemsbsp="no" ;;
    13   *) enable_rtemsbsp="$enable_rtemsbsp" ;;
     13  *) enable_rtemsbsp="$enable_rtemsbsp"
     14     srctop=${srcdir}
     15     while test x${srctop} != x/
     16     do
     17       if test -d ${srctop}/cpukit -a -d ${srctop}/c/src/lib/libbsp; then
     18         break
     19       fi
     20       srctop=$(dirname ${srctop})
     21     done
     22     if test x${srctop} = x/; then
     23       AC_MSG_ERROR([Cannot find the top of source tree, please report to devel@rtems.org])
     24     fi
     25     target_arch=$(echo ${target_alias} | sed -e "s/\-.*//g")
     26     libbsp=${srctop}/c/src/lib/libbsp
     27     libbsp_e=$(echo ${libbsp} | sed -e 's/\//\\\//g')
     28     cfg_list=$(LANG=C LC_COLLATE=C find ${libbsp} -mindepth 5 -name \*.cfg)
     29     for bsp in ${enable_rtemsbsp};
     30     do
     31       found=no
     32       for bsp_path in ${cfg_list};
     33       do
     34         cfg_bsp=$(echo ${bsp_path} | sed -e "s/.*\///" -e 's/\.cfg//')
     35         if test x$bsp = x$cfg_bsp; then
     36           cfg_arch=$(echo ${bsp_path} | sed -e "s/${libbsp_e}*\///" -e 's/\/.*//')
     37           if test x${target_arch} != x${cfg_arch}; then
     38             AC_MSG_ERROR([BSP '$bsp' architecture does not match the --target architecture, run 'rtems-bsp' (in the top of the source tree) for a valid BSP list])
     39           fi
     40           found=yes
     41           break
     42         fi
     43       done
     44       if test $found = no; then
     45         AC_MSG_ERROR([BSP '$bsp' not found, run 'rtems-bsp' (in the top of the source tree) for a valid BSP list])
     46       fi
     47     done
     48     ;;
    1449esac],[enable_rtemsbsp=""])
    1550])
Note: See TracChangeset for help on using the changeset viewer.