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