2007-04-17 22:24:42 +00:00
|
|
|
menu "Toolchain options"
|
|
|
|
|
|
|
|
comment "General toolchain options"
|
|
|
|
|
|
|
|
config USE_SYSROOT
|
|
|
|
bool
|
|
|
|
prompt "Use sysroot'ed toolchain"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Use the 'shinny new' sysroot feature of gcc: libraries split between
|
|
|
|
prefix/target/sys-root/lib and prefix/target/sys-root/usr/lib
|
|
|
|
|
|
|
|
You definitely want to say 'Y' here. Yes you do. I know you do. Say 'Y'.
|
|
|
|
|
2009-03-03 17:41:59 +00:00
|
|
|
config SYSROOT_DIR_PREFIX
|
|
|
|
string
|
|
|
|
prompt "sysroot prefix dir (READ HELP)"
|
|
|
|
depends on USE_SYSROOT
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
*
|
|
|
|
* Unless you realy know you need that, leave it empty!
|
|
|
|
*
|
|
|
|
|
|
|
|
This string will be interpreted as a directory component to be added
|
|
|
|
to the sysroot path, just before the actual sysroot directory.
|
|
|
|
|
|
|
|
In fact, the sysroot path is constructed as:
|
|
|
|
${CT_PREFIX_DIR}/${CT_TARGET}/${CT_SYSROOT_DIR_PREFIX}/sys-root
|
|
|
|
|
2007-04-17 22:24:42 +00:00
|
|
|
config SHARED_LIBS
|
|
|
|
bool
|
|
|
|
prompt "Build shared libraries"
|
2008-09-14 16:21:07 +00:00
|
|
|
depends on ! BARE_METAL
|
2007-04-17 22:24:42 +00:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Say 'y' here, unless you don't want shared libraries.
|
|
|
|
|
2008-08-21 13:12:35 +00:00
|
|
|
You might not want shared libraries if you're building for a target that
|
2007-04-17 22:24:42 +00:00
|
|
|
don't support it (maybe some nommu targets, for example, or bare metal).
|
|
|
|
|
2009-03-03 17:50:53 +00:00
|
|
|
comment "Tuple completion and aliasing"
|
|
|
|
|
2007-04-17 22:24:42 +00:00
|
|
|
config TARGET_VENDOR
|
|
|
|
string
|
2009-03-03 17:50:53 +00:00
|
|
|
prompt "Tuple's vendor string"
|
2007-04-17 22:24:42 +00:00
|
|
|
default "unknown"
|
|
|
|
help
|
2007-08-15 16:18:35 +00:00
|
|
|
Vendor part of the target tuple.
|
2007-04-17 22:24:42 +00:00
|
|
|
|
2007-08-15 16:18:35 +00:00
|
|
|
A tuple is of the form arch-vendor-kernel-system.
|
2007-04-17 22:24:42 +00:00
|
|
|
You can set the second part, vendor, to whatever you see fit.
|
|
|
|
Use a single word, or use underscores "_" to separate words.
|
2008-12-09 22:02:20 +00:00
|
|
|
Use neither dash nor space, as it breaks things.
|
2007-04-17 22:24:42 +00:00
|
|
|
|
|
|
|
Keep the default (unkown) if you don't know better.
|
|
|
|
|
2007-08-07 19:40:38 +00:00
|
|
|
config TARGET_ALIAS_SED_EXPR
|
|
|
|
string
|
2009-03-03 17:50:53 +00:00
|
|
|
prompt "Tuple's sed transform"
|
2007-08-07 19:40:38 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Normaly, you'd call your toolchain components (especially gcc) by
|
2007-08-15 16:18:35 +00:00
|
|
|
prefixing the target tuple followed by a dash and the component name
|
2007-08-07 19:40:38 +00:00
|
|
|
(eg. armeb-unknown-linux-uclibc-gcc).
|
|
|
|
|
|
|
|
You can enter here a sed expression to be applied to ${CT_TARGET} to
|
|
|
|
create an alias for your toolchain.
|
|
|
|
|
|
|
|
For example, "s/${CT_TARGET_VENDOR}/foobar/" (without the double quotes)
|
|
|
|
will create the armeb-foobar-linux-uclibc alias to the above-mentioned
|
|
|
|
toolchain.
|
|
|
|
|
|
|
|
You shouldn't need to enter anything here, unless you plan to manually
|
|
|
|
call the tools (autotools-based ./configure will use the standard name).
|
|
|
|
|
2007-04-17 22:24:42 +00:00
|
|
|
config TARGET_ALIAS
|
|
|
|
string
|
2009-03-03 17:50:53 +00:00
|
|
|
prompt "Tuple's alias"
|
2007-04-17 22:24:42 +00:00
|
|
|
default ""
|
|
|
|
help
|
2007-08-07 19:40:38 +00:00
|
|
|
Normaly, you'd call your toolchain components (especially gcc) by
|
2007-08-15 16:18:35 +00:00
|
|
|
prefixing the target tuple followed by a dash and the component name
|
2007-04-17 22:24:42 +00:00
|
|
|
(eg. armeb-unknown-linux-uclibc-gcc).
|
|
|
|
|
|
|
|
You can enter a shortcut here. This string will be used to create
|
|
|
|
symbolic links to the toolchain tools (eg. if you enter "foo-bar" here,
|
|
|
|
then gcc for your toolchain will also be available as "foo-bar-gcc" along
|
|
|
|
with the original name).
|
|
|
|
|
|
|
|
You shouldn't need to enter anything here, unless you plan to manually
|
|
|
|
call the tools (autotools-based ./configure will use the standard name).
|
|
|
|
|
|
|
|
comment "Toolchain type"
|
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Type"
|
|
|
|
default CROSS
|
|
|
|
|
|
|
|
config NATIVE
|
|
|
|
bool
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "Native (NO CODE!) (EXPERIMENTAL)"
|
2007-04-17 22:24:42 +00:00
|
|
|
depends on EXPERIMENTAL
|
|
|
|
help
|
|
|
|
Build a native toolchain.
|
|
|
|
See docs/overview.txt
|
|
|
|
|
|
|
|
config CROSS
|
|
|
|
bool
|
|
|
|
prompt "Cross"
|
|
|
|
help
|
|
|
|
Build a cross-toolchain.
|
|
|
|
See docs/overview.txt
|
|
|
|
|
|
|
|
config CROSS_NATIVE
|
|
|
|
bool
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "Cross-native (NO CODE!) (EXPERIMENTAL)"
|
2007-04-17 22:24:42 +00:00
|
|
|
depends on EXPERIMENTAL
|
|
|
|
help
|
|
|
|
Build a cross-native toolchain.
|
|
|
|
See docs/overview.txt
|
|
|
|
|
|
|
|
config CANADIAN
|
|
|
|
bool
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "Canadian (NO CODE!) (EXPERIMENTAL)"
|
2007-04-17 22:24:42 +00:00
|
|
|
depends on EXPERIMENTAL
|
|
|
|
help
|
|
|
|
Build a canadian-toolchain.
|
|
|
|
See docs/overview.txt
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2007-05-17 16:22:51 +00:00
|
|
|
config TOOLCHAIN_TYPE
|
|
|
|
string
|
|
|
|
default "native" if NATIVE
|
|
|
|
default "cross" if CROSS
|
|
|
|
default "cross-native" if CROSS_NATIVE
|
|
|
|
default "canadian" if CANADIAN
|
|
|
|
|
2008-11-13 18:22:23 +00:00
|
|
|
comment "Build system"
|
|
|
|
|
2007-04-17 22:24:42 +00:00
|
|
|
config BUILD
|
|
|
|
string
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "| Tuple (READ HELP!)"
|
2007-04-17 22:24:42 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Canonical name of the machine building the toolchain.
|
|
|
|
You should leave empty, unless you really now what you're doing.
|
|
|
|
|
2008-11-13 18:22:23 +00:00
|
|
|
config BUILD_PREFIX
|
2007-04-17 22:24:42 +00:00
|
|
|
string
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "| Tools prefix (READ HELP!)"
|
|
|
|
default ""
|
2007-04-17 22:24:42 +00:00
|
|
|
help
|
2008-11-13 18:22:23 +00:00
|
|
|
If you have your *build system* tools in a weird location, and/or
|
|
|
|
they have an unusual prefix, enter it here.
|
|
|
|
|
|
|
|
Usually, you should leave that empty!
|
|
|
|
|
|
|
|
Eg.:
|
|
|
|
If your *build* gcc is /opt/build-tools/bin/weird-gcc then you
|
|
|
|
should enter:
|
|
|
|
/opt/build-tools/bin/weird-
|
|
|
|
|
|
|
|
If your *build* gcc is /opt/build-tools/bin/weird-gcc and
|
|
|
|
/opt/build-tools/bin is in your PATH, you should enter:
|
|
|
|
weird-
|
|
|
|
|
|
|
|
If your *build* gcc is /opt/build-tools/bin/gcc then you
|
|
|
|
should enter (do not forget to add the trailing '/'):
|
|
|
|
/opt/build-tools/bin/
|
|
|
|
|
|
|
|
config BUILD_SUFFIX
|
|
|
|
string
|
|
|
|
prompt "| Tools suffix (READ HELP!)"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
If your *build system* tools have an unusual suffix, enter it
|
|
|
|
here.
|
|
|
|
|
|
|
|
Usually, you should leave that empty!
|
2007-04-17 22:24:42 +00:00
|
|
|
|
2008-11-13 18:22:23 +00:00
|
|
|
Eg.:
|
|
|
|
If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
|
|
|
|
installed as gcc-3.4, then you should enter:
|
|
|
|
-3.4
|
2007-04-17 22:24:42 +00:00
|
|
|
|
2008-11-13 18:22:23 +00:00
|
|
|
It can happen that some of the tools have a suffix, when others
|
|
|
|
don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
|
|
|
|
for that by checking the tools without the suffix in case it can
|
|
|
|
not find some of the tool.
|
|
|
|
|
|
|
|
if CANADIAN
|
|
|
|
|
|
|
|
comment "Host system"
|
2007-04-17 22:24:42 +00:00
|
|
|
|
|
|
|
config HOST
|
|
|
|
string
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "| Tuple (READ HELP!)"
|
2007-04-17 22:24:42 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Canonical name of the machine running the toolchain.
|
|
|
|
|
2008-11-13 18:22:23 +00:00
|
|
|
config HOST_PREFIX
|
2007-04-17 22:24:42 +00:00
|
|
|
string
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "| Tools prefix (READ HELP!)"
|
|
|
|
default ""
|
2007-04-17 22:24:42 +00:00
|
|
|
help
|
2008-11-13 18:22:23 +00:00
|
|
|
If you have your *host system* tools in a weird location, and/or
|
|
|
|
they have an unusual prefix, enter it here.
|
|
|
|
|
|
|
|
Usually, you should leave that empty!
|
|
|
|
|
|
|
|
Eg.:
|
|
|
|
If your *host* gcc is /opt/host-tools/bin/weird-gcc then you
|
|
|
|
should enter:
|
|
|
|
/opt/host-tools/bin/weird-
|
|
|
|
|
|
|
|
If your *host* gcc is /opt/host-tools/bin/weird-gcc and
|
|
|
|
/opt/host-tools/bin is in your PATH, you should enter:
|
|
|
|
weird-
|
|
|
|
|
|
|
|
If your *host* gcc is /opt/host-tools/bin/gcc then you
|
|
|
|
should enter (do not forget to add the trailing '/'):
|
|
|
|
/opt/host-tools/bin/
|
2007-04-17 22:24:42 +00:00
|
|
|
|
2008-11-13 18:22:23 +00:00
|
|
|
config HOST_SUFFIX
|
2007-04-17 22:24:42 +00:00
|
|
|
string
|
2008-11-13 18:22:23 +00:00
|
|
|
prompt "| Tools suffix (READ HELP!)"
|
|
|
|
default ""
|
2007-04-17 22:24:42 +00:00
|
|
|
help
|
2008-11-13 18:22:23 +00:00
|
|
|
If your *host system* tools have an unusual suffix, enter it
|
|
|
|
here.
|
|
|
|
|
|
|
|
Usually, you should leave that empty!
|
|
|
|
|
|
|
|
Eg.:
|
|
|
|
If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
|
|
|
|
installed as gcc-3.4, then you should enter:
|
|
|
|
-3.4
|
|
|
|
|
|
|
|
It can happen that some of the tools have a suffix, when others
|
|
|
|
don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
|
|
|
|
for that by checking the tools without the suffix in case it can
|
|
|
|
not find some of the tool.
|
|
|
|
|
|
|
|
endif # CANADIAN
|
|
|
|
|
|
|
|
if CROSS_NATIVE || CANADIAN
|
|
|
|
|
|
|
|
comment "Target system"
|
|
|
|
|
|
|
|
config TARGET_PREFIX
|
|
|
|
string
|
|
|
|
prompt "| Tools prefix (READ HELP!)"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
If you have your *target system* tools in a weird location, and/or
|
|
|
|
they have an unusual prefix, enter it here.
|
|
|
|
|
|
|
|
Usually, you should leave that empty!
|
|
|
|
|
|
|
|
Eg.:
|
|
|
|
If your *target* gcc is /opt/target-tools/bin/weird-gcc then you
|
|
|
|
should enter:
|
|
|
|
/opt/target-tools/bin/weird-
|
|
|
|
|
|
|
|
If your *target* gcc is /opt/target-tools/bin/weird-gcc and
|
|
|
|
/opt/target-tools/bin is in your PATH, you should enter:
|
|
|
|
weird-
|
|
|
|
|
|
|
|
If your *target* gcc is /opt/target-tools/bin/gcc then you
|
|
|
|
should enter (do not forget to add the trailing '/'):
|
|
|
|
/opt/target-tools/bin/
|
|
|
|
|
|
|
|
config TARGET_SUFFIX
|
|
|
|
string
|
|
|
|
prompt "| Tools suffix (READ HELP!)"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
If your *target system* tools have an unusual suffix, enter it
|
|
|
|
here.
|
|
|
|
|
|
|
|
Usually, you should leave that empty!
|
|
|
|
|
|
|
|
Eg.:
|
|
|
|
If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
|
|
|
|
installed as gcc-3.4, then you should enter:
|
|
|
|
-3.4
|
|
|
|
|
|
|
|
It can happen that some of the tools have a suffix, when others
|
|
|
|
don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
|
|
|
|
for that by checking the tools without the suffix in case it can
|
|
|
|
not find some of the tool.
|
|
|
|
|
|
|
|
endif # CROSS_NATIVE || CANADIAN
|
2007-04-17 22:24:42 +00:00
|
|
|
|
|
|
|
endmenu
|