Changeset 55837f7 in rtems


Ignore:
Timestamp:
03/25/03 08:55:26 (21 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8ca2e5b
Parents:
0b22af6
Message:

Merger from rtems-4-6-branch.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r0b22af6 r55837f7  
     12003-03-13      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * acinclude.m4: Reformat build_* handling.
     4        Preset *_alias if empty.
     5        * configure.ac: Change tools/build to build-config dirs.
     6        Conditionally build tools/build as host-config dirs.
     7
     82003-03-13      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     9
     10        * acinclude.m4: Fix broken comments.
     11        Add hidden option --enable-experimental.
     12        * README.cdn-X: Update.
     13        * configure.ac: Build tools/build as host and build-host tools to
     14        accomodate those BSPs applying packhex in <BSP>.cfg.
     15        Build tools/cpu as build-host tools.
     16
     172003-03-12      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     18
     19        * tools/Makefile.am: Remove.
     20        * configure.ac: Remove tools.
     21        * acinclude.m4: Fix build_subdir handling.
     22        * Makefile.am: Remove tools from SUBDIRS.
     23        Rename HOST|BUILD|TARGET_SUBDIRS into host|build|target_SUBDIRS.
     24
     252003-03-06      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     26
     27        * configure.ac: Remove AC_CONFIG_AUX_DIR.
     28        * alocal/rtems-top.a4: Add AC_CONFIG_AUX_DIR.
     29
     302003-02-28      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     31
     32        * bootstrap: Add ACLOCAL, AUTOHEADER.
     33        Don't check for auto*tool-versions.
     34
     352003-02-28      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     36
     37        * config-ml.in: Don't build sh-rtems ml and ml/m2 multilib variants.
     38
     392003-02-28      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     40
     41        * automake/compile.am: Introduce depend-gcc.
     42        * automake/lib.am: Remove stray comment.
     43        * automake/local.am: Introduce depend-gcc.
     44
     452003-02-28      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     46
     47        * config-ml.in: Don't build arm-rtems/*fpu* multilib variants.
     48
     492003-02-18      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     50
     51        * aclocal/rtems-top.m4: Set PROJECT_ROOT unconditionally.
     52        * automake/local.am: Remove $(ARCH), clean-local.
     53        * automake/compile.am: Add $(ARCH), clean-local.
     54        Set CXXFLAGS = @RTEMS_CFLAGS@ $(XCXXFLAGS).
     55
    1562003-02-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    257
  • README.cdn-X

    r0b22af6 r55837f7  
    3939<path>/rtems/configure [options] \
    4040--target=sparc-rtems \
    41 --prefix=/opt/cygwin/rtems/sparc-rtems
     41--prefix=/opt/cygwin
    4242make
    4343make install
     
    5757--build=`<path>/rtems/config.guess` \
    5858--host=i386-cygwin \
    59 --prefix=/opt/cygwin/rtems
     59--prefix=/opt/cygwin
    6060make
    6161make install
    6262
    63 This will build RTEMS host-tools for i386-cygwin and install it to the given
     63This will build RTEMS host-tools for i386-cygwin and install them to the given
    6464PREFIX.
    6565
     
    7171to require additional work. Do not expect this to work.
    7272
    73 * The configure scripts expect to find a native c-compiler called "cc". If
    74 your host doesn't have such a "cc" (e.g. Cygwin) or has a non-functional
    75 "cc" (eg. Solaris) try introducing a symlink <functional-cc> -> cc
    76 (E.g.: ln -s <path-to>/gcc /opt/rtems/bin/cc) and make sure this cc can be
    77 found on $PATH.
    78 
    79 * It will *not* work for all BSPs requiring BSP-specific host-tools
    80 (Unfortunately, this comprizes i386-rtems/pcx86 and all powerpc BSPs).
    81 
    82 * Incomplete support for *_FOR_TARGET, *_FOR_HOST, *_FOR_BUILD environment
    83 variables.
    84 
    8573* The <toplevel>/make/ directory hierarchy is not treated correctly.
  • acinclude.m4

    r0b22af6 r55837f7  
    2424])
    2525
     26AC_DEFUN([_RTEMS_TOOLS],
     27[
     28m4_ifdef([_RTEMS_$2_CONFIGDIRS_LIST],
     29[
     30_RTEMS_ARG_VAR([CC_FOR_$2],
     31  [c-compiler to be used for $1 subdirs (default: auto-detected)])
     32_RTEMS_ARG_VAR([CFLAGS_FOR_$2],
     33  [c-flags to be used for $1 subdirs (default: provided by autoconf)])
     34_RTEMS_ARG_VAR([CXX_FOR_$2],
     35  [c++-compiler to be used for $1 subdirs (default: auto-detected)])
     36_RTEMS_ARG_VAR([CXXFLAGS_FOR_$2],
     37  [c++-flags to be used for $1 subdirs (default: provided by autoconf)])
     38])
     39])
     40
    2641AC_DEFUN([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS],
    2742[
    2843AC_CONFIG_COMMANDS_PRE([
     44
     45test -z "$host_alias" && host_alias="$host"
     46test -z "$build_alias" && build_alias="$build"
     47test -z "$target_alias" && target_alias="$target"
     48
    2949_RTEMS_BUILD_CONFIG_PREPARE
    3050_RTEMS_HOST_CONFIG_PREPARE
    3151_RTEMS_TARGET_CONFIG_PREPARE
    3252
     53build_SUBDIRS="${build_configdirs}"
     54build_configdirs="${build_configdirs}"
     55
    3356AS_IF([test $build = $host],
    34 [
     57[dnl
    3558  AS_IF([test $host = $target],
    3659  [dnl b=h, h=t, t=b
    37     BUILD_SUBDIRS="${build_configdirs}"
    38     build_configdirs="${build_configdirs}"
    39     HOST_SUBDIRS=""
    40     host_configdirs=""
    41     TARGET_SUBDIRS=""
    42     target_configdirs=""],
     60    host_SUBDIRS="${host_configdirs}"
     61    host_configdirs="${host_configdirs}"
     62    target_SUBDIRS="${target_configdirs}"
     63    target_configdirs="${target_configdirs}"],
    4364  [dnl b=h, h!=t, t!=b
    44     BUILD_SUBDIRS="${build_configdirs}"
    45     build_configdirs="${build_configdirs}"
    46     HOST_SUBDIRS=""
    47     host_configdirs=""
    48     TARGET_SUBDIRS=`echo "${target_configdirs}" | \
     65    host_SUBDIRS="${host_configdirs}"
     66    host_configdirs="${host_configdirs}"
     67    target_SUBDIRS=`echo "${target_configdirs}" | \
    4968      sed -e "s%\([[^ ]][[^ ]]*\)%$target_alias/\1%g"`
    5069    target_configdirs="${target_configdirs}"
    5170  ])
    52 ],[
     71],[dnl
    5372  AS_IF([test $host = $target],
    5473  [ dnl b!=h, h=t, b!=t
    55     BUILD_SUBDIRS="${build_configdirs}"
    56     build_configdirs="${build_configdirs}"
    57     HOST_SUBDIRS=`echo "${host_configdirs}" | \
     74    host_SUBDIRS=`echo "${host_configdirs}" | \
    5875      sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"`
    5976    host_configdirs="${host_configdirs}"
    60     TARGET_SUBDIRS=""
    61     target_configdirs=""],
    62   [
    63     AS_IF([test $build = $target],
    64     [dnl b!=h, h!=t, b=t
    65       BUILD_SUBDIRS="${build_configdirs}"
    66       build_configdirs="${build_configdirs}"
    67       HOST_SUBDIRS=`echo "${host_configdirs}" | \
    68         sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"`
    69       host_configdirs="${host_configdirs}"
    70       TARGET_SUBDIRS=""
    71       target_configdirs=""],
    72     [dnl b!=h, h!=t, b!=t
    73       BUILD_SUBDIRS="${build_configdirs}"
    74       build_configdirs="${build_configdirs}"
    75       HOST_SUBDIRS=`echo "${host_configdirs}" | \
    76         sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"`
    77       host_configdirs="${host_configdirs}"
    78       TARGET_SUBDIRS=`echo "${target_configdirs}" | \
     77    AS_IF([test x"$enable_experimental" = x"yes" ],[
     78      target_SUBDIRS=`echo "${target_configdirs}" | \
    7979        sed -e "s%\([[^ ]][[^ ]]*\)%$target_alias/\1%g"`
    8080      target_configdirs="${target_configdirs}"
    8181    ])
     82  ],[dnl
     83    AS_IF([test $build = $target],
     84    [dnl b!=h, h!=t, b=t
     85      host_SUBDIRS=`echo "${host_configdirs}" | \
     86        sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"`
     87      host_configdirs="${host_configdirs}"
     88      AS_IF([test x"$enable_experimental" = x"yes" ],[
     89        target_SUBDIRS="${target_configdirs}"
     90        target_configdirs="${target_configdirs}"
     91      ])
     92    ],[dnl b!=h, h!=t, b!=t
     93      host_SUBDIRS=`echo "${host_configdirs}" | \
     94        sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"`
     95      host_configdirs="${host_configdirs}"
     96      AS_IF([test x"$enable_experimental" = x"yes" ],[
     97        target_SUBDIRS=`echo "${target_configdirs}" | \
     98          sed -e "s%\([[^ ]][[^ ]]*\)%$target_alias/\1%g"`
     99        target_configdirs="${target_configdirs}"
     100      ])
     101    ])
    82102  ])
    83103])
    84104
    85 AC_SUBST(HOST_SUBDIRS)
    86 AC_SUBST(TARGET_SUBDIRS)
    87 AC_SUBST(BUILD_SUBDIRS)
     105AC_SUBST(host_SUBDIRS)
     106AC_SUBST(target_SUBDIRS)
     107AC_SUBST(build_SUBDIRS)
    88108])
    89109
     
    161181m4_ifdef([_RTEMS_$2_CONFIGDIRS_LIST],
    162182[
    163 _RTEMS_ARG_VAR([CC_FOR_$2],
    164   [c-compiler to be used for $1 subdirs (default: auto-detected)])
    165 _RTEMS_ARG_VAR([CFLAGS_FOR_$2],
    166   [c-flags to be used for $1 subdirs (default: provided by autoconf)])
    167 _RTEMS_ARG_VAR([CXX_FOR_$2],
    168   [c++-compiler to be used for $1 subdirs (default: auto-detected)])
    169 _RTEMS_ARG_VAR([CXXFLAGS_FOR_$2],
    170   [c++-flags to be used for $1 subdirs (default: provided by autoconf)])
    171183if test "$no_recursion" != yes; then
    172184
    173  if test -n "${$2_SUBDIRS}"; then
     185 if test -n "${$1_SUBDIRS}"; then
    174186   ac_sub_configure_args="[$]$1args"
    175187
     
    177189  # in subdir configurations.
    178190  ac_sub_configure_args="'--prefix=$prefix' $ac_sub_configure_args"
     191
     192  # make sure that $1_subdir is not empty
     193  test -n "$$1_subdir" || $1_subdir="."
    179194
    180195  case "$$1_subdir" in
     
    184199    ;;
    185200  esac
    186 
    187   # make sure that $1_subdir is not empty
    188   test -n "$$1_subdir" || $1_subdir="."
    189201
    190202  ac_popdir=`pwd`
     
    246258fi
    247259])
    248 ])
    249 
    250 ## PUBLIC: RTEMS_BUILD_CONFIG_SUBDIRS(build_subdir)
    251 # subdirs to be built for the build environment
    252 AC_DEFUN([RTEMS_BUILD_CONFIG_SUBDIRS],[
    253 m4_append([_RTEMS_BUILD_CONFIGDIRS_LIST],[ $1])
    254 dnl Always append to build_configdirs
    255 AC_SUBST(build_configdirs,"$build_configdirs $1")
    256 
    257 m4_divert_text([DEFAULTS],
    258                [ac_subdirs_all="$ac_subdirs_all m4_normalize([$1])"])
    259 m4_expand_once([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS])
    260260])
    261261
     
    312312])
    313313
     314## PUBLIC: RTEMS_BUILD_CONFIG_SUBDIRS(build_subdir)
     315# subdirs to be built for the build environment
     316AC_DEFUN([RTEMS_BUILD_CONFIG_SUBDIRS],[
     317m4_append([_RTEMS_BUILD_CONFIGDIRS_LIST],[ $1])
     318dnl Always append to build_configdirs
     319AC_SUBST(build_configdirs,"$build_configdirs $1")
     320
     321m4_divert_text([DEFAULTS],
     322               [ac_subdirs_all="$ac_subdirs_all m4_normalize([$1])"])
     323m4_expand_once([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS])
     324])
     325
    314326AC_DEFUN(_RTEMS_BUILD_CONFIG_PREPARE,[
    315327## # Record the configure arguments in Makefile.
    316328m4_ifdef([_RTEMS_BUILD_CONFIGDIRS_LIST],
    317329[
     330m4_expand_once([_RTEMS_TOOLS([build],[BUILD])])
    318331m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([buildargs])])
    319332eval buildargs_prune $ac_configure_args
     
    321334test -n "${target_alias}" && \
    322335buildargs="${buildargs} --target='${target_alias}'"
    323 
    324 ## AC_SUBST(buildargs)
    325 
    326336build_subdir="."
    327337],[])
     
    333343m4_append([_RTEMS_HOST_CONFIGDIRS_LIST],[ $1])dnl
    334344
    335 if test $build = $host;
    336 then
    337   AS_IF([test $host = $target],
    338     [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
    339     [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])]
    340   )
    341 else
    342   AS_IF([test $host = $target],
    343     [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
    344     [AS_IF([test $build = $target],
    345       [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
    346       [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])]
    347     )]
    348   )
    349 fi
     345_RTEMS_SUBST_IFNOT([host_configdirs],[$1])
    350346
    351347m4_divert_text([DEFAULTS],
     
    357353m4_ifdef([_RTEMS_HOST_CONFIGDIRS_LIST],
    358354[
    359 ## Record configure arguments in Makefile.
     355m4_expand_once([_RTEMS_TOOLS([host],[HOST])])
    360356m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([hostargs])])
    361357eval hostargs_prune $ac_configure_args
    362358hostargs="'--host=${host_alias}' '--build=${build}' '--target=${target_alias}' ${hostargs}"
    363 ## AC_SUBST(hostargs)
    364 
    365359host_subdir="${host_alias}"
    366360],[])
     
    372366m4_append([_RTEMS_TARGET_CONFIGDIRS_LIST],[ $1])
    373367
    374 if test $build = $host;
    375 then
    376   AS_IF([test $host = $target],
    377     [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
    378     [_RTEMS_SUBST_IFNOT([target_configdirs],[$1])]
    379   )
    380 else
    381   AS_IF([test $host = $target],
    382     [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
    383     [AS_IF([test $build = $target],
    384       [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
    385       [_RTEMS_SUBST_IFNOT([target_configdirs],[$1])]
    386     )]
    387   )
    388 fi
     368_RTEMS_SUBST_IFNOT([target_configdirs],[$1])
    389369
    390370m4_divert_text([DEFAULTS],
     
    396376m4_ifdef([_RTEMS_TARGET_CONFIGDIRS_LIST],
    397377[
    398 ## Record the configure arguments in Makefile.
     378m4_expand_once([_RTEMS_TOOLS([target],[TARGET])])
    399379m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([targetargs])])
    400380eval targetargs_prune $ac_configure_args
    401381targetargs="'--host=${target_alias}' '--build=${build}' '--target=${target_alias}' ${targetargs}"
    402 ## AC_SUBST(targetargs)
    403 
    404382target_subdir="${target_alias}"
    405383],[])
Note: See TracChangeset for help on using the changeset viewer.