Changeset 9bb5b9d in rtems for c/src/configure.ac


Ignore:
Timestamp:
11/05/04 08:30:18 (18 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bffdb82
Parents:
07a984b
Message:

2004-11-05 Ralf Corsepius <ralf_corsepius@…>

  • configure.ac: Remove check for libbsp/${RTEMS_CPU}. Add dependency tracking for *.cfgs.
  • Makefile.am: Add dependency tracking for *.cfg.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/configure.ac

    r07a984b r9bb5b9d  
    2020RTEMS_ENABLE_MULTIPROCESSING
    2121RTEMS_ENV_RTEMSBSP
    22 
    23 # Is this a supported CPU?
    24 AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
    25 # FIXME: Temporary hack
    26 if test -d "$srcdir/lib/libbsp/$RTEMS_CPU"; then
    27   AC_MSG_RESULT(yes)
    28 else
    29   AC_MSG_ERROR(no)
    30 fi
    3122
    3223AC_ARG_ENABLE(rpcgen,
     
    5445
    5546AS_MKDIR_P([make/custom])
     47AM_SET_DEPDIR
     48test -d ${DEPDIR} || mkdir ${DEPDIR}
     49
     50rm -f ${DEPDIR}/cfg.P
     51echo "# Do not edit - automatically generated by" > ${DEPDIR}/cfg.P
     52echo "# $0" >> ${DEPDIR}/cfg.P
    5653
    5754# Collect and copy the BSP's make/custom/*.cfg files from the toplevel make
    5855# directory into the build tree's <bsp>/make/custom subdirectories
    59 cfg_dir="${RTEMS_TOPdir}/make"
    60 CUSTOM_CFG_FILES=""
     56CUSTOM_CFG_FILES=
    6157f="${RTEMS_BSP}.cfg"
    6258while test -n "$f"; do
    63   if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
    64     cp ${srcdir}/${cfg_dir}/custom/$f make/custom/$f
     59  cfg_file=
     60  _RTEMS_CHECK_CUSTOM_BSP([$f],cfg_file)
     61  if test -n "${cfg_file}"; then
     62    cp ${cfg_file} make/custom/$f
     63    echo "make/custom/$f: ${cfg_file}" >> ${DEPDIR}/cfg.P
     64    echo "      cp ${cfg_file} make/custom/$f" >> ${DEPDIR}/cfg.P
    6565    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES make/custom/$f"
    66     f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
     66    f=`grep "^include.*make/custom" ${cfg_file} \
    6767    | sed \
    6868      -e 's%^.*custom\/%%' \
Note: See TracChangeset for help on using the changeset viewer.