config/toolchain.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Apr 23 20:30:34 2007 +0000 (2007-04-23)
changeset 47 7e2539937b6e
parent 41 fd6ad5721f77
child 91 aa1d248fa51b
permissions -rw-r--r--
Second shot at merging from the MIPS branch:
- log level boost for warnings and errors
- option re-ordering
- help updating
     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 config TARGET_MULTILIB
    26     bool
    27 #    prompt "Enable 'multilib' support (EXPERIMENTAL)"
    28     default n
    29     help
    30       Enable the so-called 'multilib' support.
    31       
    32       With the same toolchain, and on some architectures, you will be able to
    33       build big and little endian binaries, soft- and hard-float, etc...
    34       
    35       See the gcc configure manual at http://gcc.gnu.org/install/configure.html
    36       to see what multilib your target supports.
    37       
    38       It's preferable for now to build two (or more) toolchains, one for each
    39       configuration you need to support (eg. one for thumb and one for ARM,
    40       etc...). You can use the vendor string to diferentiate those toolchains.
    41 
    42 config TARGET_VENDOR
    43     string
    44     prompt "Vendor string"
    45     default "unknown"
    46     help
    47       Vendor part of the machine triplet.
    48       
    49       A triplet is of the form arch-vendor-kernel-system.
    50       You can set the second part, vendor, to whatever you see fit.
    51       Use a single word, or use underscores "_" to separate words.
    52       
    53       Keep the default (unkown) if you don't know better.
    54 
    55 config TARGET_ALIAS
    56     string
    57     prompt "Target alias"
    58     default ""
    59     help
    60       Normaly, you'd call your toolchain component (especially gcc) by
    61       prefixing the target triplet followed by a dash and the component name
    62       (eg. armeb-unknown-linux-uclibc-gcc).
    63       
    64       You can enter a shortcut here. This string will be used to create
    65       symbolic links to the toolchain tools (eg. if you enter "foo-bar" here,
    66       then gcc for your toolchain will also be available as "foo-bar-gcc" along
    67       with the original name).
    68       
    69       You shouldn't need to enter anything here, unless you plan to manually
    70       call the tools (autotools-based ./configure will use the standard name).
    71 
    72 comment "Toolchain type"
    73 
    74 choice
    75     bool
    76     prompt "Type"
    77     default CROSS
    78 
    79 config NATIVE
    80     bool
    81     prompt "Native (EXPERIMENTAL)"
    82     depends on EXPERIMENTAL
    83     help
    84       Build a native toolchain.
    85       See docs/overview.txt
    86 
    87 config CROSS
    88     bool
    89     prompt "Cross"
    90     help
    91       Build a cross-toolchain.
    92       See docs/overview.txt
    93 
    94 config CROSS_NATIVE
    95     bool
    96     prompt "Croos-native (EXPERIMENTAL)"
    97     depends on EXPERIMENTAL
    98     help
    99       Build a cross-native toolchain.
   100       See docs/overview.txt
   101 
   102 config CANADIAN
   103     bool
   104     prompt "Canadian (EXPERIMENTAL)"
   105     depends on EXPERIMENTAL
   106     default n
   107     help
   108       Build a canadian-toolchain.
   109       See docs/overview.txt
   110 
   111 endchoice
   112 
   113 config BUILD 
   114     string
   115     prompt "Build system triplet"
   116     default ""
   117     help
   118       Canonical name of the machine building the toolchain.
   119       You should leave empty, unless you really now what you're doing.
   120 
   121 config CC_NATIVE
   122     string
   123     prompt "Native gcc"
   124     default "gcc"
   125     help
   126       The native C compiler.
   127       
   128       You can set this to an alternative compiler if you have more than one
   129       installed (eg. gcc is gcc-4.1.1 and you want to use gcc-3.4.6).
   130       
   131       You can leave this empty as well, in which case gcc will be used.
   132 
   133 config HOST
   134     string
   135     prompt "Host system triplet"
   136     default ""
   137     depends on NATIVE || CANADIAN
   138     help
   139       Canonical name of the machine running the toolchain.
   140 
   141 config HOST_CC
   142     string
   143     prompt "Cross-compiler prefix for host system"
   144     default "${CT_HOST}-"
   145     depends on NATIVE || CANADIAN
   146     help
   147       C compiler targeting the host system.
   148 
   149 config TARGET_CC
   150     string
   151     prompt "Cross-compiler prefix for target system"
   152     default "${CT_TARGET}-"
   153     depends on CANADIAN
   154     help
   155       C compiler targeting the target system.
   156 
   157 endmenu