config/toolchain.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Tue May 31 16:27:39 2011 +0200 (2011-05-31)
changeset 2484 d1a8c2ae7946
parent 2407 ce9168b4af1e
child 2487 481cd34691f0
permissions -rw-r--r--
kconfig: remove useless 'default n'

kconfig bools are disabled by default, so specifying 'default n' is useless and
noisy. This patch removes all occurrences of 'default n'.

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