Changeset 17ad82c in rtems


Ignore:
Timestamp:
Feb 19, 2004, 5:40:02 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
8f1eeb91
Parents:
90357e29
Message:

2004-02-18 Ralf Corsepius <corsepiu@…>

  • configure.ac: AC_CONFIG_SRCDIR([PROBLEMS]).
  • aclocal/check-custom-bsp.m4: Sync with c/src/aclocal.
  • aclocal/project-root.m4: Remove obsolete comments.
  • aclocal/env-rtemsbsp.m4: Remove RTEMS_ROOT.
  • aclocal/rtems-top.m4: Rework.
Location:
testsuites
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/ChangeLog

    r90357e29 r17ad82c  
     12004-02-18      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * configure.ac: AC_CONFIG_SRCDIR([PROBLEMS]).
     4        * aclocal/check-custom-bsp.m4: Sync with c/src/aclocal.
     5        * aclocal/project-root.m4: Remove obsolete comments.
     6        * aclocal/env-rtemsbsp.m4: Remove RTEMS_ROOT.
     7        * aclocal/rtems-top.m4: Rework.
     8
    192004-02-14      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    210
  • testsuites/aclocal/check-custom-bsp.m4

    r90357e29 r17ad82c  
    11dnl $Id$
    22
     3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
     4  for i in ${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}/*/$1 \
     5    ${srcdir}/${RTEMS_TOPdir}/make/custom/$1;
     6  do
     7    AC_MSG_CHECKING([for $i])
     8    AS_IF([test -r $i],[
     9      $2="$i"
     10      AC_MSG_RESULT([yes])
     11      break;
     12    ],[
     13      AC_MSG_RESULT([no])
     14    ])
     15  done
     16])
     17
    318AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
    4 AC_REQUIRE([RTEMS_TOP])
    5 
    6 AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
    7 AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"],
    8   [AC_MSG_RESULT([yes])],
    9   [AC_MSG_ERROR([no])])
     19  AC_REQUIRE([RTEMS_TOP])
     20  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
     21  AS_IF([test -z "$BSP_FOUND"],[
     22    AC_MSG_ERROR([missing [$]$1.cfg])
     23  ])
    1024])
  • testsuites/aclocal/env-rtemsbsp.m4

    r90357e29 r17ad82c  
    3434AC_SUBST(GCC_SPECS)
    3535
    36 RTEMS_ROOT="\$(PROJECT_ROOT)/c/$RTEMS_BSP"
    37 AC_SUBST(RTEMS_ROOT)
    38 
    3936RTEMS_ENABLE_BARE
    4037AC_SUBST(BARE_CPU_MODEL)
  • testsuites/aclocal/project-root.m4

    r90357e29 r17ad82c  
    22dnl $Id$
    33dnl
    4 
    5 dnl
    6 dnl PROJECT_TOPdir     .. relative path to the top of the build-tree
    7 dnl PROJECT_ROOT       .. relative path to the top of the temporary
    8 dnl                       installation directory inside the build-tree
    9 dnl RTEMS_TOPdir       .. relative path of a subpackage's configure.in to the
    10 dnl                       toplevel configure.in of the source-tree
    11 dnl RTEMS_ROOT         .. path to the top of a bsp's build directory
    12 dnl                       [Applied by custom/*.cfg, depredicated otherwise]
    13 dnl
    144
    155AC_DEFUN([RTEMS_PROJECT_ROOT],
  • testsuites/aclocal/rtems-top.m4

    r90357e29 r17ad82c  
    2626
    2727## with_target_subdirs is handled implicitly by autoconf
    28 test -n "$with_target_subdir" || with_target_subdir="."
     28dots=`echo $with_target_subdir|\
     29sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
     30PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
     31AC_SUBST([PROJECT_TOPdir])
    2932
    30 if test "$with_target_subdir" = "." ; then
    31 # Native
    32 PROJECT_TOPdir="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
    33 else
    34 # Cross
    35 dots=`echo $with_target_subdir|\
    36 sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
    37 PROJECT_TOPdir="${dots}${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
    38 fi
    39 AC_SUBST(PROJECT_TOPdir)
     33RTEMS_ROOT=$with_rtems_root`echo "$1/" | sed 's,^../,,'`'$(top_builddir)'
     34AC_SUBST(RTEMS_ROOT)
    4035
    41 PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
     36PROJECT_ROOT=$with_project_root`echo "$1/" | sed 's,^../,,'`'$(top_builddir)'
    4237AC_SUBST(PROJECT_ROOT)
    4338
  • testsuites/configure.ac

    r90357e29 r17ad82c  
    55AC_PREREQ(2.59)
    66AC_INIT([rtems-c-src-tests],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
    7 AC_CONFIG_SRCDIR([samples])
     7AC_CONFIG_SRCDIR([PROBLEMS])
    88RTEMS_TOP(..)
    99
Note: See TracChangeset for help on using the changeset viewer.