Changeset 55837f7 in rtems
- Timestamp:
- 03/25/03 08:55:26 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8ca2e5b
- Parents:
- 0b22af6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r0b22af6 r55837f7 1 2003-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 8 2003-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 17 2003-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 25 2003-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 30 2003-02-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 31 32 * bootstrap: Add ACLOCAL, AUTOHEADER. 33 Don't check for auto*tool-versions. 34 35 2003-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 39 2003-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 45 2003-02-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 46 47 * config-ml.in: Don't build arm-rtems/*fpu* multilib variants. 48 49 2003-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 1 56 2003-02-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 57 -
README.cdn-X
r0b22af6 r55837f7 39 39 <path>/rtems/configure [options] \ 40 40 --target=sparc-rtems \ 41 --prefix=/opt/cygwin /rtems/sparc-rtems41 --prefix=/opt/cygwin 42 42 make 43 43 make install … … 57 57 --build=`<path>/rtems/config.guess` \ 58 58 --host=i386-cygwin \ 59 --prefix=/opt/cygwin /rtems59 --prefix=/opt/cygwin 60 60 make 61 61 make install 62 62 63 This will build RTEMS host-tools for i386-cygwin and install itto the given63 This will build RTEMS host-tools for i386-cygwin and install them to the given 64 64 PREFIX. 65 65 … … 71 71 to require additional work. Do not expect this to work. 72 72 73 * The configure scripts expect to find a native c-compiler called "cc". If74 your host doesn't have such a "cc" (e.g. Cygwin) or has a non-functional75 "cc" (eg. Solaris) try introducing a symlink <functional-cc> -> cc76 (E.g.: ln -s <path-to>/gcc /opt/rtems/bin/cc) and make sure this cc can be77 found on $PATH.78 79 * It will *not* work for all BSPs requiring BSP-specific host-tools80 (Unfortunately, this comprizes i386-rtems/pcx86 and all powerpc BSPs).81 82 * Incomplete support for *_FOR_TARGET, *_FOR_HOST, *_FOR_BUILD environment83 variables.84 85 73 * The <toplevel>/make/ directory hierarchy is not treated correctly. -
acinclude.m4
r0b22af6 r55837f7 24 24 ]) 25 25 26 AC_DEFUN([_RTEMS_TOOLS], 27 [ 28 m4_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 26 41 AC_DEFUN([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS], 27 42 [ 28 43 AC_CONFIG_COMMANDS_PRE([ 44 45 test -z "$host_alias" && host_alias="$host" 46 test -z "$build_alias" && build_alias="$build" 47 test -z "$target_alias" && target_alias="$target" 48 29 49 _RTEMS_BUILD_CONFIG_PREPARE 30 50 _RTEMS_HOST_CONFIG_PREPARE 31 51 _RTEMS_TARGET_CONFIG_PREPARE 32 52 53 build_SUBDIRS="${build_configdirs}" 54 build_configdirs="${build_configdirs}" 55 33 56 AS_IF([test $build = $host], 34 [ 57 [dnl 35 58 AS_IF([test $host = $target], 36 59 [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}"], 43 64 [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}" | \ 49 68 sed -e "s%\([[^ ]][[^ ]]*\)%$target_alias/\1%g"` 50 69 target_configdirs="${target_configdirs}" 51 70 ]) 52 ],[ 71 ],[dnl 53 72 AS_IF([test $host = $target], 54 73 [ 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}" | \ 58 75 sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"` 59 76 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}" | \ 79 79 sed -e "s%\([[^ ]][[^ ]]*\)%$target_alias/\1%g"` 80 80 target_configdirs="${target_configdirs}" 81 81 ]) 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 ]) 82 102 ]) 83 103 ]) 84 104 85 AC_SUBST( HOST_SUBDIRS)86 AC_SUBST( TARGET_SUBDIRS)87 AC_SUBST( BUILD_SUBDIRS)105 AC_SUBST(host_SUBDIRS) 106 AC_SUBST(target_SUBDIRS) 107 AC_SUBST(build_SUBDIRS) 88 108 ]) 89 109 … … 161 181 m4_ifdef([_RTEMS_$2_CONFIGDIRS_LIST], 162 182 [ 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)])171 183 if test "$no_recursion" != yes; then 172 184 173 if test -n "${$ 2_SUBDIRS}"; then185 if test -n "${$1_SUBDIRS}"; then 174 186 ac_sub_configure_args="[$]$1args" 175 187 … … 177 189 # in subdir configurations. 178 190 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="." 179 194 180 195 case "$$1_subdir" in … … 184 199 ;; 185 200 esac 186 187 # make sure that $1_subdir is not empty188 test -n "$$1_subdir" || $1_subdir="."189 201 190 202 ac_popdir=`pwd` … … 246 258 fi 247 259 ]) 248 ])249 250 ## PUBLIC: RTEMS_BUILD_CONFIG_SUBDIRS(build_subdir)251 # subdirs to be built for the build environment252 AC_DEFUN([RTEMS_BUILD_CONFIG_SUBDIRS],[253 m4_append([_RTEMS_BUILD_CONFIGDIRS_LIST],[ $1])254 dnl Always append to build_configdirs255 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])260 260 ]) 261 261 … … 312 312 ]) 313 313 314 ## PUBLIC: RTEMS_BUILD_CONFIG_SUBDIRS(build_subdir) 315 # subdirs to be built for the build environment 316 AC_DEFUN([RTEMS_BUILD_CONFIG_SUBDIRS],[ 317 m4_append([_RTEMS_BUILD_CONFIGDIRS_LIST],[ $1]) 318 dnl Always append to build_configdirs 319 AC_SUBST(build_configdirs,"$build_configdirs $1") 320 321 m4_divert_text([DEFAULTS], 322 [ac_subdirs_all="$ac_subdirs_all m4_normalize([$1])"]) 323 m4_expand_once([_RTEMS_COMMANDS_POST_CONFIG_SUBDIRS]) 324 ]) 325 314 326 AC_DEFUN(_RTEMS_BUILD_CONFIG_PREPARE,[ 315 327 ## # Record the configure arguments in Makefile. 316 328 m4_ifdef([_RTEMS_BUILD_CONFIGDIRS_LIST], 317 329 [ 330 m4_expand_once([_RTEMS_TOOLS([build],[BUILD])]) 318 331 m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([buildargs])]) 319 332 eval buildargs_prune $ac_configure_args … … 321 334 test -n "${target_alias}" && \ 322 335 buildargs="${buildargs} --target='${target_alias}'" 323 324 ## AC_SUBST(buildargs)325 326 336 build_subdir="." 327 337 ],[]) … … 333 343 m4_append([_RTEMS_HOST_CONFIGDIRS_LIST],[ $1])dnl 334 344 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]) 350 346 351 347 m4_divert_text([DEFAULTS], … … 357 353 m4_ifdef([_RTEMS_HOST_CONFIGDIRS_LIST], 358 354 [ 359 ## Record configure arguments in Makefile. 355 m4_expand_once([_RTEMS_TOOLS([host],[HOST])]) 360 356 m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([hostargs])]) 361 357 eval hostargs_prune $ac_configure_args 362 358 hostargs="'--host=${host_alias}' '--build=${build}' '--target=${target_alias}' ${hostargs}" 363 ## AC_SUBST(hostargs)364 365 359 host_subdir="${host_alias}" 366 360 ],[]) … … 372 366 m4_append([_RTEMS_TARGET_CONFIGDIRS_LIST],[ $1]) 373 367 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]) 389 369 390 370 m4_divert_text([DEFAULTS], … … 396 376 m4_ifdef([_RTEMS_TARGET_CONFIGDIRS_LIST], 397 377 [ 398 ## Record the configure arguments in Makefile. 378 m4_expand_once([_RTEMS_TOOLS([target],[TARGET])]) 399 379 m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([targetargs])]) 400 380 eval targetargs_prune $ac_configure_args 401 381 targetargs="'--host=${target_alias}' '--build=${build}' '--target=${target_alias}' ${targetargs}" 402 ## AC_SUBST(targetargs)403 404 382 target_subdir="${target_alias}" 405 383 ],[])
Note: See TracChangeset
for help on using the changeset viewer.