yann@445
|
1 |
# Options related to paths and install
|
yann@1
|
2 |
|
yann@1
|
3 |
comment "Paths"
|
yann@1
|
4 |
|
yann@85
|
5 |
config LOCAL_TARBALLS_DIR
|
yann@1
|
6 |
string
|
yann@85
|
7 |
prompt "Local tarballs directory"
|
yann@85
|
8 |
default ""
|
yann@1
|
9 |
help
|
yann@85
|
10 |
If you have previously downloaded the tarballs, enter the PATH where
|
yann@85
|
11 |
you stored them here.
|
yann@31
|
12 |
|
yann@265
|
13 |
config SAVE_TARBALLS
|
yann@265
|
14 |
bool
|
yann@265
|
15 |
prompt "Save new tarballs"
|
yann@265
|
16 |
default n
|
yann@265
|
17 |
depends on LOCAL_TARBALLS_DIR != ""
|
yann@265
|
18 |
help
|
yann@425
|
19 |
If you say 'y' here, new downloaded tarballs will be saved in the
|
yann@265
|
20 |
directory you entered above.
|
yann@265
|
21 |
|
yann@610
|
22 |
config WORK_DIR
|
yann@610
|
23 |
string
|
yann@610
|
24 |
prompt "Working directory"
|
yann@610
|
25 |
default "${CT_TOP_DIR}/targets"
|
yann@610
|
26 |
help
|
yann@610
|
27 |
Set this to the directory where all build actions will be done.
|
yann@610
|
28 |
|
yann@610
|
29 |
The default is "${CT_TOP_DIR}/targets", and leaving this option
|
yann@610
|
30 |
empty will also use the default.
|
yann@610
|
31 |
|
yann@610
|
32 |
You should not need to change that, except in one very peculiar
|
yann@610
|
33 |
setup:
|
yann@610
|
34 |
- your crosstool-NG source directory is on the network
|
yann@610
|
35 |
- you configured crosstool-NG with --local
|
yann@610
|
36 |
This kind of setup is a pain, as any action involving source file
|
yann@610
|
37 |
access would have to go through the wire. In this case, you should
|
yann@610
|
38 |
set CT_WORK_DIR to point to a path local to your machine, to avoid
|
yann@610
|
39 |
any network overhead.
|
yann@610
|
40 |
|
yann@610
|
41 |
Do *NOT* change it if you don't know better.
|
yann@610
|
42 |
|
yann@1
|
43 |
config PREFIX_DIR
|
yann@1
|
44 |
string
|
yann@1
|
45 |
prompt "Prefix directory"
|
yann@613
|
46 |
default "${HOME}/x-tools/${CT_TARGET}"
|
yann@1
|
47 |
help
|
yann@1
|
48 |
This is the path the toolchain will run from.
|
yann@1
|
49 |
|
yann@1
|
50 |
config INSTALL_DIR
|
yann@1
|
51 |
string
|
yann@1
|
52 |
# prompt "Install directory"
|
yann@1
|
53 |
default "${CT_PREFIX_DIR}"
|
yann@1
|
54 |
# help
|
yann@610
|
55 |
# This is the path the toolchain will be installed into.
|
yann@1
|
56 |
#
|
yann@1
|
57 |
# Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
|
yann@1
|
58 |
# you can't write there, you can install somewhere else and have a third
|
yann@1
|
59 |
# person do the install for you.
|
yann@1
|
60 |
# The reason you might also want to install elsewhere is if you are going
|
yann@1
|
61 |
# to package your shinny new toolchain for distribution.
|
yann@1
|
62 |
|
yann@1507
|
63 |
choice
|
yann@1507
|
64 |
prompt "Patches origin"
|
yann@1
|
65 |
bool
|
yann@1507
|
66 |
default PATCH_BUNDLED
|
yann@1507
|
67 |
|
yann@1507
|
68 |
config PATCH_BUNDLED
|
yann@1507
|
69 |
bool
|
yann@1507
|
70 |
prompt "Bundled only"
|
yann@1507
|
71 |
help
|
yann@1507
|
72 |
Only apply patches bundled with crosstool-NG.
|
yann@1507
|
73 |
|
yann@1507
|
74 |
config PATCH_LOCAL
|
yann@1507
|
75 |
bool
|
yann@1507
|
76 |
prompt "Local only"
|
yann@1507
|
77 |
select PATCH_USE_LOCAL
|
yann@1507
|
78 |
help
|
yann@1507
|
79 |
Only apply your local patches.
|
yann@1507
|
80 |
|
yann@1507
|
81 |
config PATCH_BUNDLED_LOCAL
|
yann@1507
|
82 |
bool
|
yann@1507
|
83 |
prompt "Bundled, then local"
|
yann@1507
|
84 |
select PATCH_USE_LOCAL
|
yann@1507
|
85 |
help
|
yann@1507
|
86 |
Apply the patches bundled with crosstool-NG,
|
yann@1507
|
87 |
then apply your local patches.
|
yann@1507
|
88 |
|
yann@1508
|
89 |
config PATCH_LOCAL_BUNDLED
|
yann@1508
|
90 |
bool
|
yann@1508
|
91 |
prompt "Local, then bundled"
|
yann@1508
|
92 |
select PATCH_USE_LOCAL
|
yann@1508
|
93 |
help
|
yann@1508
|
94 |
Apply your local patches, then apply the patches
|
yann@1508
|
95 |
bundled with crosstool-NG.
|
yann@1508
|
96 |
|
yann@1507
|
97 |
endchoice
|
yann@1507
|
98 |
|
yann@1507
|
99 |
config PATCH_ORDER
|
yann@1507
|
100 |
string
|
yann@1507
|
101 |
default "bundled" if PATCH_BUNDLED
|
yann@1507
|
102 |
default "local" if PATCH_LOCAL
|
yann@1507
|
103 |
default "bundled,local" if PATCH_BUNDLED_LOCAL
|
yann@1508
|
104 |
default "local,bundled" if PATCH_LOCAL_BUNDLED
|
yann@1507
|
105 |
|
yann@1507
|
106 |
config PATCH_USE_LOCAL
|
yann@1507
|
107 |
bool
|
yann@1
|
108 |
default n
|
yann@1
|
109 |
|
yann@1507
|
110 |
config LOCAL_PATCH_DIR
|
yann@1
|
111 |
string
|
yann@1507
|
112 |
prompt "| Local patch directory"
|
yann@1
|
113 |
default ""
|
yann@1507
|
114 |
depends on PATCH_USE_LOCAL
|
yann@1
|
115 |
help
|
yann@1
|
116 |
Enter the custom patch directory here.
|
yann@1507
|
117 |
|
yann@1507
|
118 |
Note that you must ensure that the directory contianing your custom
|
yann@1507
|
119 |
patches is arranged the same way the official directory is.
|
yann@1
|
120 |
|
yann@14
|
121 |
config REMOVE_DOCS
|
yann@14
|
122 |
bool
|
yann@14
|
123 |
prompt "Remove documentation"
|
yann@753
|
124 |
default y
|
yann@14
|
125 |
help
|
yann@14
|
126 |
Remove the installed documentation (man and info pages).
|
yann@14
|
127 |
Gains around 8MiB for a uClibc-based, C and C++ compiler.
|
yann@14
|
128 |
|
yann@174
|
129 |
config INSTALL_DIR_RO
|
yann@174
|
130 |
bool
|
yann@174
|
131 |
prompt "Render the toolchain read-only"
|
yann@753
|
132 |
default y
|
yann@174
|
133 |
help
|
yann@174
|
134 |
Render the directory of the toolchain (and its sub-directories)
|
yann@174
|
135 |
read-only.
|
yann@174
|
136 |
|
yann@174
|
137 |
Usefull for toolchains destined for production.
|