config/toolchain.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 28 21:34:41 2007 +0000 (2007-07-28)
changeset 301 2be7232a73ac
parent 96 aa1a9fbd6eb8
child 321 a7ba1352aee1
permissions -rw-r--r--
Bump version to 0.2.2.
     1 menu "Toolchain options"
     2 
     3 comment "General toolchain options"
     4 
     5 config USE_SYSROOT
     6     bool
     7     prompt "Use sysroot'ed toolchain"
     8     default y
     9     help
    10       Use the 'shinny new' sysroot feature of gcc: libraries split between
    11       prefix/target/sys-root/lib and prefix/target/sys-root/usr/lib
    12       
    13       You definitely want to say 'Y' here. Yes you do. I know you do. Say 'Y'.
    14 
    15 config SHARED_LIBS
    16     bool
    17     prompt "Build shared libraries"
    18     default y
    19     help
    20       Say 'y' here, unless you don't want shared libraries.
    21       
    22       You might not want shared librries if you're building for a target that
    23       don't support it (maybe some nommu targets, for example, or bare metal).
    24 
    25 choice
    26     bool
    27     prompt "Threading implentation to use:"
    28     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    29     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    30     default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    31 
    32 config THREADS_NPTL
    33     bool
    34     prompt "nptl"
    35     depends on LIBC_SUPPORT_NPTL
    36 
    37 config THREADS_LINUXTHREADS
    38     bool
    39     prompt "linuxthreads"
    40     depends on LIBC_SUPPORT_LINUXTHREADS
    41 
    42 config THREADS_NONE
    43     bool
    44     prompt "none"
    45 
    46 endchoice
    47 
    48 config THREADS
    49     string
    50     default "nptl"          if THREADS_NPTL
    51     default "linuxthreads"  if THREADS_LINUXTHREADS
    52     default "none"          if THREADS_NONE
    53 
    54 config TARGET_MULTILIB
    55     bool
    56 #    prompt "Enable 'multilib' support (EXPERIMENTAL)"
    57     default n
    58     help
    59       Enable the so-called 'multilib' support.
    60       
    61       With the same toolchain, and on some architectures, you will be able to
    62       build big and little endian binaries, soft- and hard-float, etc...
    63       
    64       See the gcc configure manual at http://gcc.gnu.org/install/configure.html
    65       to see what multilib your target supports.
    66       
    67       It's preferable for now to build two (or more) toolchains, one for each
    68       configuration you need to support (eg. one for thumb and one for ARM,
    69       etc...). You can use the vendor string to diferentiate those toolchains.
    70 
    71 config TARGET_VENDOR
    72     string
    73     prompt "Vendor string"
    74     default "unknown"
    75     help
    76       Vendor part of the machine triplet.
    77       
    78       A triplet is of the form arch-vendor-kernel-system.
    79       You can set the second part, vendor, to whatever you see fit.
    80       Use a single word, or use underscores "_" to separate words.
    81       
    82       Keep the default (unkown) if you don't know better.
    83 
    84 config TARGET_ALIAS
    85     string
    86     prompt "Target alias"
    87     default ""
    88     help
    89       Normaly, you'd call your toolchain component (especially gcc) by
    90       prefixing the target triplet followed by a dash and the component name
    91       (eg. armeb-unknown-linux-uclibc-gcc).
    92       
    93       You can enter a shortcut here. This string will be used to create
    94       symbolic links to the toolchain tools (eg. if you enter "foo-bar" here,
    95       then gcc for your toolchain will also be available as "foo-bar-gcc" along
    96       with the original name).
    97       
    98       You shouldn't need to enter anything here, unless you plan to manually
    99       call the tools (autotools-based ./configure will use the standard name).
   100 
   101 comment "Toolchain type"
   102 
   103 choice
   104     bool
   105     prompt "Type"
   106     default CROSS
   107 
   108 config NATIVE
   109     bool
   110     prompt "Native (EXPERIMENTAL)"
   111     depends on EXPERIMENTAL
   112     help
   113       Build a native toolchain.
   114       See docs/overview.txt
   115 
   116 config CROSS
   117     bool
   118     prompt "Cross"
   119     help
   120       Build a cross-toolchain.
   121       See docs/overview.txt
   122 
   123 config CROSS_NATIVE
   124     bool
   125     prompt "Croos-native (EXPERIMENTAL)"
   126     depends on EXPERIMENTAL
   127     help
   128       Build a cross-native toolchain.
   129       See docs/overview.txt
   130 
   131 config CANADIAN
   132     bool
   133     prompt "Canadian (EXPERIMENTAL)"
   134     depends on EXPERIMENTAL
   135     help
   136       Build a canadian-toolchain.
   137       See docs/overview.txt
   138 
   139 endchoice
   140 
   141 config TOOLCHAIN_TYPE
   142     string
   143     default "native"        if NATIVE
   144     default "cross"         if CROSS
   145     default "cross-native"  if CROSS_NATIVE
   146     default "canadian"      if CANADIAN
   147 
   148 config BUILD 
   149     string
   150     prompt "Build system triplet"
   151     default ""
   152     help
   153       Canonical name of the machine building the toolchain.
   154       You should leave empty, unless you really now what you're doing.
   155 
   156 config CC_NATIVE
   157     string
   158     prompt "Native gcc"
   159     default "gcc"
   160     help
   161       The native C compiler.
   162       
   163       You can set this to an alternative compiler if you have more than one
   164       installed (eg. gcc is gcc-4.1.1 and you want to use gcc-3.4.6).
   165       
   166       You can leave this empty as well, in which case gcc will be used.
   167 
   168 config HOST
   169     string
   170     prompt "Host system triplet"
   171     default ""
   172     depends on NATIVE || CANADIAN
   173     help
   174       Canonical name of the machine running the toolchain.
   175 
   176 config HOST_CC
   177     string
   178     prompt "Cross-compiler prefix for host system"
   179     default "${CT_HOST}-"
   180     depends on NATIVE || CANADIAN
   181     help
   182       C compiler targeting the host system.
   183 
   184 config TARGET_CC
   185     string
   186     prompt "Cross-compiler prefix for target system"
   187     default "${CT_TARGET}-"
   188     depends on CANADIAN
   189     help
   190       C compiler targeting the target system.
   191 
   192 endmenu