Changeset 94608578 in rtems for c/src/lib/libbsp/configure.in


Ignore:
Timestamp:
Jan 10, 2000, 1:56:35 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
10726095
Parents:
338f1dc
Message:

Patch rtems-rc-20000104-2.diff from Ralf Corsepius <corsepiu@…>
that converts nearly all of libbsp/sh to automake. Comments follow:

  1. Almost full automake support for the libbsp/sh/ subdirectories (exception libbsp/sh/gensh*/wrapup/*)
  2. Fixes for libbsp/bare/*
  3. Updates to libbsp/* configuration which supports old (autoconf/deep configuration) and new (automake/flat/cascaded configuration) style configuration of libbsp/<cpu>/*
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/configure.in

    r338f1dc r94608578  
    5959  RTEMS_LIBBSP_CPU_SUBDIR="bare"
    6060else
    61   RTEMS_LIBBSP_CPU_SUBDIR='$(RTEMS_CPU)'
     61  RTEMS_LIBBSP_CPU_SUBDIR=$RTEMS_CPU
    6262fi
    6363AC_SUBST(RTEMS_LIBBSP_CPU_SUBDIR)
    6464
     65if test ! -f ${srcdir}/${RTEMS_LIBBSP_CPU_SUBDIR}/configure.in
     66then
     67
    6568# find all the Makefiles for the BSPs
    66 makefiles="$makefiles $RTEMS_CPU/Makefile"
     69  makefiles="$makefiles $RTEMS_CPU/Makefile"
    6770     
    68 if test -d "$srcdir/$bspcpudir$bspdir"; then
    69   RTEMS_CHECK_MAKEFILE(${bspcpudir}$bspdir)
    70   RTEMS_CHECK_MAKEFILE(${bspcpudir}shared)
     71  if test -d "$srcdir/$bspcpudir$bspdir"; then
     72    RTEMS_CHECK_MAKEFILE(${bspcpudir}$bspdir)
     73    RTEMS_CHECK_MAKEFILE(${bspcpudir}shared)
    7174
    72   # HACK: sed out bsp-tools from makefiles
    73   t="$bspcpudir$bspdir/tools"
    74   if test -d "$srcdir/$t"; then
    75     bsptools_cfgdirs="$bsptools_cfgdirs $t"
    76     makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
     75    # HACK: sed out bsp-tools from makefiles
     76    t="$bspcpudir$bspdir/tools"
     77    if test -d "$srcdir/$t"; then
     78      bsptools_cfgdirs="$bsptools_cfgdirs $t"
     79      makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
     80    fi
     81  else
     82    AC_MSG_ERROR([unable to find libbsp subdirectory ($bspdir) for  ${RTEMS_BSP}])
    7783  fi
    7884else
    79   AC_MSG_ERROR([unable to find libbsp subdirectory ($bspdir) for  ${RTEMS_BSP}])
     85  cfg_subdirs="$RTEMS_LIBBSP_CPU_SUBDIR"
    8086fi
    8187
     
    8793  makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
    8894fi
     95
    8996AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    9097
    9198AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    9299
    93 if test "$RTEMS_BSP" = "bare"; then
    94 cfg_subdirs="bare"
    95 fi
    96100AC_CONFIG_SUBDIRS($cfg_subdirs)
    97101
Note: See TracChangeset for help on using the changeset viewer.