samples/sh4-unknown-linux-gnu/crosstool.config
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Mar 26 18:47:34 2009 +0000 (2009-03-26)
changeset 1268 5594b05bc2d8
parent 1233 f5c55a3e72af
child 1283 f5e7ce8f5793
permissions -rw-r--r--
Add support for building toolchains with gcc-4.4 snapshots.
Initial patch by Dmitry PLOTNIKOV: http://sourceware.org/ml/crossgcc/2009-03/msg00053.html
It [the toolchain] uses current ct-ng (nightly snapshot 20090324, latest
release 1.3.2 work also), glibc 2.9 (from CVS), binutils 2.19 and latest
snapshot of GCC 4.4.0 (as of March 20, 2009).

We have successfully built linux kernel 2.6.29 and a lot of other stuff
with this toolchain.

Here's the patch that adds GCC 4.4.0 to the ct-ng menu and enables it to
download a 4.4.0 snapshot from ftp.

Patch was adpated by me, mostly to better fit the configuration layout.

/trunk/scripts/build/cc/gcc.sh | 34 22 12 0 ++++++++++++++++++++++------------
/trunk/config/cc/gcc.in | 35 30 5 0 ++++++++++++++++++++++++++++++-----
2 files changed, 52 insertions(+), 17 deletions(-)
     1 #
     2 # Automatically generated make config: don't edit
     3 # crosstool-NG version: svn_trunk@1407
     4 # Fri Mar  6 19:58:32 2009
     5 #
     6 
     7 #
     8 # Paths and misc options
     9 #
    10 
    11 #
    12 # crosstool-NG behavior
    13 #
    14 # CT_OBSOLETE is not set
    15 CT_EXPERIMENTAL=y
    16 # CT_DEBUG_CT is not set
    17 
    18 #
    19 # Paths
    20 #
    21 CT_LOCAL_TARBALLS_DIR="${HOME}/src"
    22 CT_SAVE_TARBALLS=y
    23 CT_WORK_DIR="${CT_TOP_DIR}/targets"
    24 CT_PREFIX_DIR="${HOME}/x-tools/${CT_TARGET}"
    25 CT_INSTALL_DIR="${CT_PREFIX_DIR}"
    26 # CT_CUSTOM_PATCH is not set
    27 CT_REMOVE_DOCS=y
    28 CT_INSTALL_DIR_RO=y
    29 
    30 #
    31 # Downloading
    32 #
    33 # CT_FORBID_DOWNLOAD is not set
    34 # CT_FORCE_DOWNLOAD is not set
    35 # CT_USE_PROXY is not set
    36 CT_PROXY_TYPE="none"
    37 CT_USE_MIRROR=y
    38 # CT_PREFER_MIRROR is not set
    39 CT_MIRROR_HTTP=y
    40 # CT_MIRROR_FTP is not set
    41 CT_MIRROR_SCHEME="http"
    42 CT_MIRROR_HOSTNAME="ymorin.is-a-geek.org"
    43 CT_MIRROR_BASE="/mirrors"
    44 # CT_MIRROR_LS_R is not set
    45 CT_CONNECT_TIMEOUT=10
    46 # CT_ONLY_DOWNLOAD is not set
    47 
    48 #
    49 # Extracting
    50 #
    51 # CT_FORCE_EXTRACT is not set
    52 CT_OVERIDE_CONFIG_GUESS_SUB=y
    53 # CT_ONLY_EXTRACT is not set
    54 
    55 #
    56 # Build behavior
    57 #
    58 CT_PARALLEL_JOBS=1
    59 CT_LOAD=0
    60 CT_NICE=0
    61 CT_USE_PIPES=y
    62 # CT_CONFIG_SHELL_ASH is not set
    63 
    64 #
    65 # Logging
    66 #
    67 # CT_LOG_ERROR is not set
    68 # CT_LOG_WARN is not set
    69 # CT_LOG_INFO is not set
    70 CT_LOG_EXTRA=y
    71 # CT_LOG_DEBUG is not set
    72 # CT_LOG_ALL is not set
    73 CT_LOG_LEVEL_MAX="EXTRA"
    74 # CT_LOG_SEE_TOOLS_WARN is not set
    75 CT_LOG_PROGRESS_BAR=y
    76 CT_LOG_TO_FILE=y
    77 CT_LOG_FILE_COMPRESS=y
    78 
    79 #
    80 # Target options
    81 #
    82 CT_ARCH="sh"
    83 # CT_ARCH_64 is not set
    84 # CT_ARCH_SUPPORT_ARCH is not set
    85 # CT_ARCH_SUPPORT_ABI is not set
    86 # CT_ARCH_SUPPORT_CPU is not set
    87 # CT_ARCH_SUPPORT_TUNE is not set
    88 # CT_ARCH_SUPPORT_FPU is not set
    89 CT_ARCH_SUPPORTS_BOTH_ENDIAN=y
    90 # CT_ARCH_DEFAULT_BE is not set
    91 CT_ARCH_DEFAULT_LE=y
    92 # CT_ARCH_BE is not set
    93 CT_ARCH_LE=y
    94 CT_ARCH_FLOAT_HW=y
    95 # CT_ARCH_FLOAT_SW is not set
    96 CT_TARGET_CFLAGS=""
    97 CT_TARGET_LDFLAGS=""
    98 
    99 #
   100 # General target options
   101 #
   102 # CT_ARCH_alpha is not set
   103 # CT_ARCH_arm is not set
   104 # CT_ARCH_ia64 is not set
   105 # CT_ARCH_mips is not set
   106 # CT_ARCH_powerpc is not set
   107 # CT_ARCH_powerpc64 is not set
   108 CT_ARCH_sh=y
   109 # CT_ARCH_x86 is not set
   110 # CT_ARCH_x86_64 is not set
   111 # CT_ARCH_SH_SH3 is not set
   112 CT_ARCH_SH_SH4=y
   113 # CT_ARCH_SH_SH4A is not set
   114 CT_ARCH_SH_VARIANT="sh4"
   115 
   116 #
   117 # Target optimisations
   118 #
   119 
   120 #
   121 # Toolchain options
   122 #
   123 
   124 #
   125 # General toolchain options
   126 #
   127 CT_USE_SYSROOT=y
   128 CT_SYSROOT_DIR_PREFIX=""
   129 CT_SHARED_LIBS=y
   130 
   131 #
   132 # Tuple completion and aliasing
   133 #
   134 CT_TARGET_VENDOR=""
   135 CT_TARGET_ALIAS_SED_EXPR=""
   136 CT_TARGET_ALIAS=""
   137 
   138 #
   139 # Toolchain type
   140 #
   141 # CT_NATIVE is not set
   142 CT_CROSS=y
   143 # CT_CROSS_NATIVE is not set
   144 # CT_CANADIAN is not set
   145 CT_TOOLCHAIN_TYPE="cross"
   146 
   147 #
   148 # Build system
   149 #
   150 CT_BUILD=""
   151 CT_BUILD_PREFIX=""
   152 CT_BUILD_SUFFIX=""
   153 
   154 #
   155 # Operating System
   156 #
   157 # CT_BARE_METAL is not set
   158 CT_KERNEL="linux"
   159 CT_KERNEL_VERSION="2.6.26.8"
   160 # CT_KERNEL_bare_metal is not set
   161 CT_KERNEL_linux=y
   162 CT_KERNEL_LINUX_INSTALL=y
   163 CT_KERNEL_LINUX_INSTALL_CHECK=y
   164 # CT_KERNEL_V_2_6_18_8 is not set
   165 # CT_KERNEL_V_2_6_19_7 is not set
   166 # CT_KERNEL_V_2_6_20_21 is not set
   167 # CT_KERNEL_V_2_6_21_7 is not set
   168 # CT_KERNEL_V_2_6_22_19 is not set
   169 # CT_KERNEL_V_2_6_23_17 is not set
   170 # CT_KERNEL_V_2_6_24_7 is not set
   171 # CT_KERNEL_V_2_6_25_20 is not set
   172 # CT_KERNEL_V_2_6_26 is not set
   173 # CT_KERNEL_V_2_6_26_1 is not set
   174 # CT_KERNEL_V_2_6_26_2 is not set
   175 # CT_KERNEL_V_2_6_26_3 is not set
   176 # CT_KERNEL_V_2_6_26_4 is not set
   177 # CT_KERNEL_V_2_6_26_5 is not set
   178 # CT_KERNEL_V_2_6_26_6 is not set
   179 # CT_KERNEL_V_2_6_26_7 is not set
   180 CT_KERNEL_V_2_6_26_8=y
   181 # CT_KERNEL_V_2_6_27 is not set
   182 # CT_KERNEL_V_2_6_27_1 is not set
   183 # CT_KERNEL_V_2_6_27_2 is not set
   184 # CT_KERNEL_V_2_6_27_3 is not set
   185 # CT_KERNEL_V_2_6_27_4 is not set
   186 # CT_KERNEL_V_2_6_27_5 is not set
   187 # CT_KERNEL_V_2_6_27_6 is not set
   188 # CT_KERNEL_V_2_6_27_7 is not set
   189 # CT_KERNEL_V_2_6_27_8 is not set
   190 # CT_KERNEL_V_2_6_27_9 is not set
   191 # CT_KERNEL_V_2_6_27_10 is not set
   192 # CT_KERNEL_V_2_6_27_11 is not set
   193 # CT_KERNEL_V_2_6_27_12 is not set
   194 # CT_KERNEL_V_2_6_27_13 is not set
   195 # CT_KERNEL_V_2_6_27_14 is not set
   196 # CT_KERNEL_V_2_6_27_15 is not set
   197 # CT_KERNEL_V_2_6_27_16 is not set
   198 # CT_KERNEL_V_2_6_27_17 is not set
   199 # CT_KERNEL_V_2_6_27_18 is not set
   200 # CT_KERNEL_V_2_6_27_19 is not set
   201 # CT_KERNEL_V_2_6_28 is not set
   202 # CT_KERNEL_V_2_6_28_1 is not set
   203 # CT_KERNEL_V_2_6_28_2 is not set
   204 # CT_KERNEL_V_2_6_28_3 is not set
   205 # CT_KERNEL_V_2_6_28_4 is not set
   206 # CT_KERNEL_V_2_6_28_5 is not set
   207 # CT_KERNEL_V_2_6_28_6 is not set
   208 # CT_KERNEL_V_2_6_28_7 is not set
   209 CT_KERNEL_LINUX_VERBOSITY_0=y
   210 # CT_KERNEL_LINUX_VERBOSITY_1 is not set
   211 # CT_KERNEL_LINUX_VERBOSITY_2 is not set
   212 CT_KERNEL_LINUX_VERBOSE_LEVEL=0
   213 # CT_KERNEL_LINUX_USE_CUSTOM_HEADERS is not set
   214 
   215 #
   216 # GMP and MPFR
   217 #
   218 CT_GMP_MPFR=y
   219 # CT_GMP_MPFR_TARGET is not set
   220 CT_GMP_V_4_2_2=y
   221 # CT_GMP_V_4_2_4 is not set
   222 CT_GMP_VERSION="4.2.2"
   223 CT_GMP_CHECK=y
   224 CT_MPFR_V_2_3_1=y
   225 # CT_MPFR_V_2_3_2 is not set
   226 # CT_MPFR_V_2_4_0 is not set
   227 CT_MPFR_VERSION="2.3.1"
   228 CT_MPFR_CHECK=y
   229 
   230 #
   231 # binutils
   232 #
   233 CT_BINUTILS_VERSION="2.19"
   234 # CT_BINUTILS_V_2_14 is not set
   235 # CT_BINUTILS_V_2_15 is not set
   236 # CT_BINUTILS_V_2_16_1 is not set
   237 # CT_BINUTILS_V_2_17 is not set
   238 # CT_BINUTILS_V_2_18 is not set
   239 # CT_BINUTILS_V_2_18_50_0_4 is not set
   240 # CT_BINUTILS_V_2_18_50_0_6 is not set
   241 # CT_BINUTILS_V_2_18_50_0_7 is not set
   242 # CT_BINUTILS_V_2_18_50_0_8 is not set
   243 # CT_BINUTILS_V_2_18_50_0_9 is not set
   244 # CT_BINUTILS_V_2_18_90 is not set
   245 # CT_BINUTILS_V_2_18_91 is not set
   246 # CT_BINUTILS_V_2_18_92 is not set
   247 # CT_BINUTILS_V_2_18_93 is not set
   248 CT_BINUTILS_V_2_19=y
   249 # CT_BINUTILS_V_2_19_1 is not set
   250 # CT_BINUTILS_V_2_19_50_0_1 is not set
   251 # CT_BINUTILS_V_2_19_51_0_1 is not set
   252 # CT_BINUTILS_V_2_19_51_0_2 is not set
   253 CT_BINUTILS_EXTRA_CONFIG=""
   254 # CT_BINUTILS_FOR_TARGET is not set
   255 
   256 #
   257 # C compiler
   258 #
   259 CT_CC="gcc"
   260 CT_CC_VERSION="4.3.2"
   261 CT_CC_gcc=y
   262 # CT_CC_V_3_2_3 is not set
   263 # CT_CC_V_3_3_6 is not set
   264 # CT_CC_V_3_4_6 is not set
   265 # CT_CC_V_4_0_0 is not set
   266 # CT_CC_V_4_0_1 is not set
   267 # CT_CC_V_4_0_2 is not set
   268 # CT_CC_V_4_0_3 is not set
   269 # CT_CC_V_4_0_4 is not set
   270 # CT_CC_V_4_1_0 is not set
   271 # CT_CC_V_4_1_1 is not set
   272 # CT_CC_V_4_1_2 is not set
   273 # CT_CC_V_4_2_0 is not set
   274 # CT_CC_V_4_2_1 is not set
   275 # CT_CC_V_4_2_2 is not set
   276 # CT_CC_V_4_2_3 is not set
   277 # CT_CC_V_4_2_4 is not set
   278 # CT_CC_V_4_3_0 is not set
   279 # CT_CC_V_4_3_1 is not set
   280 CT_CC_V_4_3_2=y
   281 # CT_CC_V_4_3_3 is not set
   282 CT_CC_GCC_4_3_or_later=y
   283 CT_CC_CXA_ATEXIT=y
   284 CT_CC_SJLJ_EXCEPTIONS_CONFIGURE=y
   285 # CT_CC_SJLJ_EXCEPTIONS_USE is not set
   286 # CT_CC_SJLJ_EXCEPTIONS_DONT_USE is not set
   287 CT_CC_CORE_EXTRA_CONFIG=""
   288 CT_CC_EXTRA_CONFIG=""
   289 CT_CC_PKGVERSION="crosstool-NG-${CT_VERSION}"
   290 CT_CC_BUGURL=""
   291 CT_CC_SUPPORT_CXX=y
   292 CT_CC_SUPPORT_FORTRAN=y
   293 CT_CC_SUPPORT_JAVA=y
   294 CT_CC_SUPPORT_ADA=y
   295 CT_CC_SUPPORT_OBJC=y
   296 CT_CC_SUPPORT_OBJCXX=y
   297 
   298 #
   299 # Additional supported languages:
   300 #
   301 CT_CC_LANG_CXX=y
   302 # CT_CC_LANG_FORTRAN is not set
   303 # CT_CC_LANG_JAVA is not set
   304 # CT_CC_LANG_ADA is not set
   305 # CT_CC_LANG_OBJC is not set
   306 # CT_CC_LANG_OBJCXX is not set
   307 CT_CC_LANG_OTHERS=""
   308 CT_LIBC="glibc"
   309 
   310 #
   311 # C-library
   312 #
   313 CT_LIBC_VERSION="2.7"
   314 # CT_LIBC_eglibc is not set
   315 CT_LIBC_glibc=y
   316 # CT_LIBC_uClibc is not set
   317 # CT_LIBC_V_2_3_6 is not set
   318 # CT_LIBC_V_2_5 is not set
   319 # CT_LIBC_V_2_5_1 is not set
   320 # CT_LIBC_V_2_6 is not set
   321 # CT_LIBC_V_2_6_1 is not set
   322 CT_LIBC_V_2_7=y
   323 # CT_LIBC_V_2_8 is not set
   324 # CT_LIBC_V_2_9 is not set
   325 # CT_LIBC_V_LATEST is not set
   326 # CT_LIBC_V_date is not set
   327 # CT_LIBC_GLIBC_2_8_or_later is not set
   328 
   329 #
   330 # glibc/eglibc common options
   331 #
   332 CT_LIBC_GLIBC_EXTRA_CONFIG=""
   333 CT_LIBC_GLIBC_CONFIGPARMS="no-z-defs=yes"
   334 CT_LIBC_GLIBC_EXTRA_CFLAGS=""
   335 CT_LIBC_EXTRA_CC_ARGS=""
   336 # CT_LIBC_GLIBC_USE_PORTS is not set
   337 CT_LIBC_ADDONS_LIST=""
   338 # CT_LIBC_GLIBC_KERNEL_VERSION_NONE is not set
   339 CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS=y
   340 # CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN is not set
   341 CT_LIBC_GLIBC_MIN_KERNEL="2.6.26.8"
   342 
   343 #
   344 # Common C library options
   345 #
   346 CT_LIBC_SUPPORT_NPTL=y
   347 CT_LIBC_SUPPORT_LINUXTHREADS=y
   348 CT_THREADS="nptl"
   349 CT_THREADS_NPTL=y
   350 # CT_THREADS_LINUXTHREADS is not set
   351 # CT_THREADS_NONE is not set
   352 
   353 #
   354 # Tools facilities
   355 #
   356 # CT_TOOL_libelf is not set
   357 # CT_TOOL_sstrip is not set
   358 
   359 #
   360 # Debug facilities
   361 #
   362 # CT_DEBUG_dmalloc is not set
   363 # CT_DEBUG_duma is not set
   364 # CT_DEBUG_gdb is not set
   365 # CT_DEBUG_ltrace is not set
   366 # CT_DEBUG_strace is not set