Allow user to add a directory component in the sys-root path.
Rename CT_DEBUG_INSTALL_DIR to CT_DEBUGROOT_DIR (to match CT_SYSROOT_DIR).
As a side effect, fix creating lib64->lib symlinks.
/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 6 3 3 0 +++---
/trunk/scripts/build/debug/500-strace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +++---
/trunk/scripts/crosstool-NG.sh.in | 16 7 9 0 +++++++---------
/trunk/scripts/functions | 2 1 1 0 +-
/trunk/config/toolchain.in | 17 17 0 0 +++++++++++++++++
8 files changed, 34 insertions(+), 19 deletions(-)
1 menu "Toolchain options"
3 comment "General toolchain options"
7 prompt "Use sysroot'ed toolchain"
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
13 You definitely want to say 'Y' here. Yes you do. I know you do. Say 'Y'.
15 config SYSROOT_DIR_PREFIX
17 prompt "sysroot prefix dir (READ HELP)"
18 depends on USE_SYSROOT
19 depends on EXPERIMENTAL
23 * Unless you realy know you need that, leave it empty!
26 This string will be interpreted as a directory component to be added
27 to the sysroot path, just before the actual sysroot directory.
29 In fact, the sysroot path is constructed as:
30 ${CT_PREFIX_DIR}/${CT_TARGET}/${CT_SYSROOT_DIR_PREFIX}/sys-root
34 prompt "Build shared libraries"
35 depends on ! BARE_METAL
38 Say 'y' here, unless you don't want shared libraries.
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).
45 prompt "Vendor string"
48 Vendor part of the target tuple.
50 A tuple is of the form arch-vendor-kernel-system.
51 You can set the second part, vendor, to whatever you see fit.
52 Use a single word, or use underscores "_" to separate words.
53 Use neither dash nor space, as it breaks things.
55 Keep the default (unkown) if you don't know better.
57 config TARGET_ALIAS_SED_EXPR
59 prompt "Target sed transform"
62 Normaly, you'd call your toolchain components (especially gcc) by
63 prefixing the target tuple followed by a dash and the component name
64 (eg. armeb-unknown-linux-uclibc-gcc).
66 You can enter here a sed expression to be applied to ${CT_TARGET} to
67 create an alias for your toolchain.
69 For example, "s/${CT_TARGET_VENDOR}/foobar/" (without the double quotes)
70 will create the armeb-foobar-linux-uclibc alias to the above-mentioned
73 You shouldn't need to enter anything here, unless you plan to manually
74 call the tools (autotools-based ./configure will use the standard name).
81 Normaly, you'd call your toolchain components (especially gcc) by
82 prefixing the target tuple followed by a dash and the component name
83 (eg. armeb-unknown-linux-uclibc-gcc).
85 You can enter a shortcut here. This string will be used to create
86 symbolic links to the toolchain tools (eg. if you enter "foo-bar" here,
87 then gcc for your toolchain will also be available as "foo-bar-gcc" along
88 with the original name).
90 You shouldn't need to enter anything here, unless you plan to manually
91 call the tools (autotools-based ./configure will use the standard name).
93 comment "Toolchain type"
102 prompt "Native (NO CODE!) (EXPERIMENTAL)"
103 depends on EXPERIMENTAL
105 Build a native toolchain.
106 See docs/overview.txt
112 Build a cross-toolchain.
113 See docs/overview.txt
117 prompt "Cross-native (NO CODE!) (EXPERIMENTAL)"
118 depends on EXPERIMENTAL
120 Build a cross-native toolchain.
121 See docs/overview.txt
125 prompt "Canadian (NO CODE!) (EXPERIMENTAL)"
126 depends on EXPERIMENTAL
128 Build a canadian-toolchain.
129 See docs/overview.txt
133 config TOOLCHAIN_TYPE
135 default "native" if NATIVE
136 default "cross" if CROSS
137 default "cross-native" if CROSS_NATIVE
138 default "canadian" if CANADIAN
140 comment "Build system"
144 prompt "| Tuple (READ HELP!)"
147 Canonical name of the machine building the toolchain.
148 You should leave empty, unless you really now what you're doing.
152 prompt "| Tools prefix (READ HELP!)"
155 If you have your *build system* tools in a weird location, and/or
156 they have an unusual prefix, enter it here.
158 Usually, you should leave that empty!
161 If your *build* gcc is /opt/build-tools/bin/weird-gcc then you
163 /opt/build-tools/bin/weird-
165 If your *build* gcc is /opt/build-tools/bin/weird-gcc and
166 /opt/build-tools/bin is in your PATH, you should enter:
169 If your *build* gcc is /opt/build-tools/bin/gcc then you
170 should enter (do not forget to add the trailing '/'):
171 /opt/build-tools/bin/
175 prompt "| Tools suffix (READ HELP!)"
178 If your *build system* tools have an unusual suffix, enter it
181 Usually, you should leave that empty!
184 If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
185 installed as gcc-3.4, then you should enter:
188 It can happen that some of the tools have a suffix, when others
189 don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
190 for that by checking the tools without the suffix in case it can
191 not find some of the tool.
195 comment "Host system"
199 prompt "| Tuple (READ HELP!)"
202 Canonical name of the machine running the toolchain.
206 prompt "| Tools prefix (READ HELP!)"
209 If you have your *host system* tools in a weird location, and/or
210 they have an unusual prefix, enter it here.
212 Usually, you should leave that empty!
215 If your *host* gcc is /opt/host-tools/bin/weird-gcc then you
217 /opt/host-tools/bin/weird-
219 If your *host* gcc is /opt/host-tools/bin/weird-gcc and
220 /opt/host-tools/bin is in your PATH, you should enter:
223 If your *host* gcc is /opt/host-tools/bin/gcc then you
224 should enter (do not forget to add the trailing '/'):
229 prompt "| Tools suffix (READ HELP!)"
232 If your *host system* tools have an unusual suffix, enter it
235 Usually, you should leave that empty!
238 If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
239 installed as gcc-3.4, then you should enter:
242 It can happen that some of the tools have a suffix, when others
243 don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
244 for that by checking the tools without the suffix in case it can
245 not find some of the tool.
249 if CROSS_NATIVE || CANADIAN
251 comment "Target system"
255 prompt "| Tools prefix (READ HELP!)"
258 If you have your *target system* tools in a weird location, and/or
259 they have an unusual prefix, enter it here.
261 Usually, you should leave that empty!
264 If your *target* gcc is /opt/target-tools/bin/weird-gcc then you
266 /opt/target-tools/bin/weird-
268 If your *target* gcc is /opt/target-tools/bin/weird-gcc and
269 /opt/target-tools/bin is in your PATH, you should enter:
272 If your *target* gcc is /opt/target-tools/bin/gcc then you
273 should enter (do not forget to add the trailing '/'):
274 /opt/target-tools/bin/
278 prompt "| Tools suffix (READ HELP!)"
281 If your *target system* tools have an unusual suffix, enter it
284 Usually, you should leave that empty!
287 If your 'default' gcc is gcc 4.3.1, but you also have gcc-3.4.2
288 installed as gcc-3.4, then you should enter:
291 It can happen that some of the tools have a suffix, when others
292 don't, eg. you can have 'gcc-3.4' and 'ar'. crosstool-NG accounts
293 for that by checking the tools without the suffix in case it can
294 not find some of the tool.
296 endif # CROSS_NATIVE || CANADIAN