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