config/toolchain.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Mar 03 17:50:53 2009 +0000 (2009-03-03)
changeset 1220 63d8500c8fc1
parent 1219 2b875ed306c2
child 1253 064a8e0abc37
permissions -rw-r--r--
Some eye-candy in the toolchain sub-menu entries.

/trunk/config/toolchain.in | 8 5 3 0 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
yann@41
     1
menu "Toolchain options"
yann@41
     2
yann@41
     3
comment "General toolchain options"
yann@41
     4
yann@41
     5
config USE_SYSROOT
yann@41
     6
    bool
yann@41
     7
    prompt "Use sysroot'ed toolchain"
yann@41
     8
    default y
yann@41
     9
    help
yann@41
    10
      Use the 'shinny new' sysroot feature of gcc: libraries split between
yann@41
    11
      prefix/target/sys-root/lib and prefix/target/sys-root/usr/lib
yann@41
    12
      
yann@41
    13
      You definitely want to say 'Y' here. Yes you do. I know you do. Say 'Y'.
yann@41
    14
yann@1219
    15
config SYSROOT_DIR_PREFIX
yann@1219
    16
    string
yann@1219
    17
    prompt "sysroot prefix dir (READ HELP)"
yann@1219
    18
    depends on USE_SYSROOT
yann@1219
    19
    depends on EXPERIMENTAL
yann@1219
    20
    default ""
yann@1219
    21
    help
yann@1219
    22
      *
yann@1219
    23
      * Unless you realy know you need that, leave it empty!
yann@1219
    24
      *
yann@1219
    25
      
yann@1219
    26
      This string will be interpreted as a directory component to be added
yann@1219
    27
      to the sysroot path, just before the actual sysroot directory.
yann@1219
    28
      
yann@1219
    29
      In fact, the sysroot path is constructed as:
yann@1219
    30
        ${CT_PREFIX_DIR}/${CT_TARGET}/${CT_SYSROOT_DIR_PREFIX}/sys-root
yann@1219
    31
yann@41
    32
config SHARED_LIBS
yann@41
    33
    bool
yann@41
    34
    prompt "Build shared libraries"
yann@850
    35
    depends on ! BARE_METAL
yann@41
    36
    default y
yann@41
    37
    help
yann@41
    38
      Say 'y' here, unless you don't want shared libraries.
yann@41
    39
      
yann@803
    40
      You might not want shared libraries if you're building for a target that
yann@41
    41
      don't support it (maybe some nommu targets, for example, or bare metal).
yann@41
    42
yann@1220
    43
comment "Tuple completion and aliasing"
yann@1220
    44
yann@41
    45
config TARGET_VENDOR
yann@41
    46
    string
yann@1220
    47
    prompt "Tuple's vendor string"
yann@41
    48
    default "unknown"
yann@41
    49
    help
yann@335
    50
      Vendor part of the target tuple.
yann@41
    51
      
yann@335
    52
      A tuple is of the form arch-vendor-kernel-system.
yann@41
    53
      You can set the second part, vendor, to whatever you see fit.
yann@41
    54
      Use a single word, or use underscores "_" to separate words.
yann@1094
    55
      Use neither dash nor space, as it breaks things.
yann@41
    56
      
yann@41
    57
      Keep the default (unkown) if you don't know better.
yann@41
    58
yann@321
    59
config TARGET_ALIAS_SED_EXPR
yann@321
    60
    string
yann@1220
    61
    prompt "Tuple's sed transform"
yann@321
    62
    default ""
yann@321
    63
    help
yann@321
    64
      Normaly, you'd call your toolchain components (especially gcc) by
yann@335
    65
      prefixing the target tuple followed by a dash and the component name
yann@321
    66
      (eg. armeb-unknown-linux-uclibc-gcc).
yann@321
    67
      
yann@321
    68
      You can enter here a sed expression to be applied to ${CT_TARGET} to
yann@321
    69
      create an alias for your toolchain.
yann@321
    70
      
yann@321
    71
      For example, "s/${CT_TARGET_VENDOR}/foobar/" (without the double quotes)
yann@321
    72
      will create the armeb-foobar-linux-uclibc alias to the above-mentioned
yann@321
    73
      toolchain.
yann@321
    74
      
yann@321
    75
      You shouldn't need to enter anything here, unless you plan to manually
yann@321
    76
      call the tools (autotools-based ./configure will use the standard name).
yann@321
    77
yann@41
    78
config TARGET_ALIAS
yann@41
    79
    string
yann@1220
    80
    prompt "Tuple's alias"
yann@41
    81
    default ""
yann@41
    82
    help
yann@321
    83
      Normaly, you'd call your toolchain components (especially gcc) by
yann@335
    84
      prefixing the target tuple followed by a dash and the component name
yann@41
    85
      (eg. armeb-unknown-linux-uclibc-gcc).
yann@41
    86
      
yann@41
    87
      You can enter a shortcut here. This string will be used to create
yann@41
    88
      symbolic links to the toolchain tools (eg. if you enter "foo-bar" here,
yann@41
    89
      then gcc for your toolchain will also be available as "foo-bar-gcc" along
yann@41
    90
      with the original name).
yann@41
    91
      
yann@41
    92
      You shouldn't need to enter anything here, unless you plan to manually
yann@41
    93
      call the tools (autotools-based ./configure will use the standard name).
yann@41
    94
yann@41
    95
comment "Toolchain type"
yann@41
    96
yann@41
    97
choice
yann@41
    98
    bool
yann@41
    99
    prompt "Type"
yann@41
   100
    default CROSS
yann@41
   101
yann@41
   102
config NATIVE
yann@41
   103
    bool
yann@1041
   104
    prompt "Native       (NO CODE!) (EXPERIMENTAL)"
yann@41
   105
    depends on EXPERIMENTAL
yann@41
   106
    help
yann@41
   107
      Build a native toolchain.
yann@41
   108
      See docs/overview.txt
yann@41
   109
yann@41
   110
config CROSS
yann@41
   111
    bool
yann@41
   112
    prompt "Cross"
yann@41
   113
    help
yann@41
   114
      Build a cross-toolchain.
yann@41
   115
      See docs/overview.txt
yann@41
   116
yann@41
   117
config CROSS_NATIVE
yann@41
   118
    bool
yann@1041
   119
    prompt "Cross-native (NO CODE!) (EXPERIMENTAL)"
yann@41
   120
    depends on EXPERIMENTAL
yann@41
   121
    help
yann@41
   122
      Build a cross-native toolchain.
yann@41
   123
      See docs/overview.txt
yann@41
   124
yann@41
   125
config CANADIAN
yann@41
   126
    bool
yann@1041
   127
    prompt "Canadian     (NO CODE!) (EXPERIMENTAL)"
yann@41
   128
    depends on EXPERIMENTAL
yann@41
   129
    help
yann@41
   130
      Build a canadian-toolchain.
yann@41
   131
      See docs/overview.txt
yann@41
   132
yann@41
   133
endchoice
yann@41
   134
yann@96
   135
config TOOLCHAIN_TYPE
yann@96
   136
    string
yann@96
   137
    default "native"        if NATIVE
yann@96
   138
    default "cross"         if CROSS
yann@96
   139
    default "cross-native"  if CROSS_NATIVE
yann@96
   140
    default "canadian"      if CANADIAN
yann@96
   141
yann@1041
   142
comment "Build system"
yann@1041
   143
yann@41
   144
config BUILD 
yann@41
   145
    string
yann@1041
   146
    prompt "|  Tuple        (READ HELP!)"
yann@41
   147
    default ""
yann@41
   148
    help
yann@41
   149
      Canonical name of the machine building the toolchain.
yann@41
   150
      You should leave empty, unless you really now what you're doing.
yann@41
   151
yann@1041
   152
config BUILD_PREFIX
yann@41
   153
    string
yann@1041
   154
    prompt "|  Tools prefix (READ HELP!)"
yann@1041
   155
    default ""
yann@41
   156
    help
yann@1041
   157
      If you have your *build system* tools in a weird location, and/or
yann@1041
   158
      they have an unusual prefix, enter it here.
yann@41
   159
      
yann@1041
   160
      Usually, you should leave that empty!
yann@41
   161
      
yann@1041
   162
      Eg.:
yann@1041
   163
        If your *build* gcc is /opt/build-tools/bin/weird-gcc then you
yann@1041
   164
        should enter:
yann@1041
   165
            /opt/build-tools/bin/weird-
yann@1041
   166
        
yann@1041
   167
        If your *build* gcc is /opt/build-tools/bin/weird-gcc and
yann@1041
   168
        /opt/build-tools/bin is in your PATH, you should enter:
yann@1041
   169
            weird-
yann@1041
   170
        
yann@1041
   171
        If your *build* gcc is /opt/build-tools/bin/gcc then you
yann@1041
   172
        should enter (do not forget to add the trailing '/'):
yann@1041
   173
            /opt/build-tools/bin/
yann@1041
   174
yann@1041
   175
config BUILD_SUFFIX
yann@1041
   176
    string
yann@1041
   177
    prompt "|  Tools suffix (READ HELP!)"
yann@1041
   178
    default ""
yann@1041
   179
    help
yann@1041
   180
      If your *build system* tools have an unusual suffix, enter it
yann@1041
   181
      here.
yann@1041
   182
      
yann@1041
   183
      Usually, you should leave that empty!
yann@1041
   184
      
yann@1041
   185
      Eg.:
yann@1041
   186
        If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
yann@1041
   187
        installed as gcc-3.4, then you should enter:
yann@1041
   188
            -3.4
yann@1041
   189
      
yann@1041
   190
      It can happen that some of the tools have a suffix, when others
yann@1041
   191
      don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
yann@1041
   192
      for that by checking the tools without the suffix in case it can
yann@1041
   193
      not find some of the tool.
yann@1041
   194
yann@1041
   195
if CANADIAN
yann@1041
   196
yann@1041
   197
comment "Host system"
yann@41
   198
yann@41
   199
config HOST
yann@41
   200
    string
yann@1041
   201
    prompt "|  Tuple        (READ HELP!)"
yann@41
   202
    default ""
yann@41
   203
    help
yann@41
   204
      Canonical name of the machine running the toolchain.
yann@41
   205
yann@1041
   206
config HOST_PREFIX
yann@41
   207
    string
yann@1041
   208
    prompt "|  Tools prefix (READ HELP!)"
yann@1041
   209
    default ""
yann@41
   210
    help
yann@1041
   211
      If you have your *host system* tools in a weird location, and/or
yann@1041
   212
      they have an unusual prefix, enter it here.
yann@1041
   213
      
yann@1041
   214
      Usually, you should leave that empty!
yann@1041
   215
      
yann@1041
   216
      Eg.:
yann@1041
   217
        If your *host* gcc is /opt/host-tools/bin/weird-gcc then you
yann@1041
   218
        should enter:
yann@1041
   219
            /opt/host-tools/bin/weird-
yann@1041
   220
        
yann@1041
   221
        If your *host* gcc is /opt/host-tools/bin/weird-gcc and
yann@1041
   222
        /opt/host-tools/bin is in your PATH, you should enter:
yann@1041
   223
            weird-
yann@1041
   224
        
yann@1041
   225
        If your *host* gcc is /opt/host-tools/bin/gcc then you
yann@1041
   226
        should enter (do not forget to add the trailing '/'):
yann@1041
   227
            /opt/host-tools/bin/
yann@41
   228
yann@1041
   229
config HOST_SUFFIX
yann@41
   230
    string
yann@1041
   231
    prompt "|  Tools suffix (READ HELP!)"
yann@1041
   232
    default ""
yann@41
   233
    help
yann@1041
   234
      If your *host system* tools have an unusual suffix, enter it
yann@1041
   235
      here.
yann@1041
   236
      
yann@1041
   237
      Usually, you should leave that empty!
yann@1041
   238
      
yann@1041
   239
      Eg.:
yann@1041
   240
        If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
yann@1041
   241
        installed as gcc-3.4, then you should enter:
yann@1041
   242
            -3.4
yann@1041
   243
      
yann@1041
   244
      It can happen that some of the tools have a suffix, when others
yann@1041
   245
      don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
yann@1041
   246
      for that by checking the tools without the suffix in case it can
yann@1041
   247
      not find some of the tool.
yann@1041
   248
yann@1041
   249
endif # CANADIAN
yann@1041
   250
yann@1041
   251
if CROSS_NATIVE || CANADIAN
yann@1041
   252
yann@1041
   253
comment "Target system"
yann@1041
   254
yann@1041
   255
config TARGET_PREFIX
yann@1041
   256
    string
yann@1041
   257
    prompt "|  Tools prefix (READ HELP!)"
yann@1041
   258
    default ""
yann@1041
   259
    help
yann@1041
   260
      If you have your *target system* tools in a weird location, and/or
yann@1041
   261
      they have an unusual prefix, enter it here.
yann@1041
   262
      
yann@1041
   263
      Usually, you should leave that empty!
yann@1041
   264
      
yann@1041
   265
      Eg.:
yann@1041
   266
        If your *target* gcc is /opt/target-tools/bin/weird-gcc then you
yann@1041
   267
        should enter:
yann@1041
   268
            /opt/target-tools/bin/weird-
yann@1041
   269
        
yann@1041
   270
        If your *target* gcc is /opt/target-tools/bin/weird-gcc and
yann@1041
   271
        /opt/target-tools/bin is in your PATH, you should enter:
yann@1041
   272
            weird-
yann@1041
   273
        
yann@1041
   274
        If your *target* gcc is /opt/target-tools/bin/gcc then you
yann@1041
   275
        should enter (do not forget to add the trailing '/'):
yann@1041
   276
            /opt/target-tools/bin/
yann@1041
   277
yann@1041
   278
config TARGET_SUFFIX
yann@1041
   279
    string
yann@1041
   280
    prompt "|  Tools suffix (READ HELP!)"
yann@1041
   281
    default ""
yann@1041
   282
    help
yann@1041
   283
      If your *target system* tools have an unusual suffix, enter it
yann@1041
   284
      here.
yann@1041
   285
      
yann@1041
   286
      Usually, you should leave that empty!
yann@1041
   287
      
yann@1041
   288
      Eg.:
yann@1041
   289
        If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
yann@1041
   290
        installed as gcc-3.4, then you should enter:
yann@1041
   291
            -3.4
yann@1041
   292
      
yann@1041
   293
      It can happen that some of the tools have a suffix, when others
yann@1041
   294
      don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
yann@1041
   295
      for that by checking the tools without the suffix in case it can
yann@1041
   296
      not find some of the tool.
yann@1041
   297
yann@1041
   298
endif # CROSS_NATIVE || CANADIAN
yann@41
   299
yann@41
   300
endmenu