config/toolchain.in
author Bryan Hundven <bryanhundven@gmail.com>
Thu Dec 09 18:55:33 2010 +0100 (2010-12-09)
changeset 2210 c423e3d8f541
parent 2209 cdafca8bdaa8
child 2227 5158aa602e58
permissions -rw-r--r--
binutils/binutils: build statically

If the global static option is set, then build binutils statically.

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