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