2008-04-17 20:02:07 +00:00
|
|
|
# Options related to paths and install
|
|
|
|
|
|
|
|
comment "Paths"
|
|
|
|
|
|
|
|
config LOCAL_TARBALLS_DIR
|
|
|
|
string
|
2017-04-23 06:51:05 +00:00
|
|
|
prompt "Local tarballs directory"
|
2016-12-14 02:40:47 +00:00
|
|
|
default "${HOME}/src"
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
|
|
|
If you have previously downloaded the tarballs, enter the PATH where
|
|
|
|
you stored them here.
|
|
|
|
|
|
|
|
config SAVE_TARBALLS
|
|
|
|
bool
|
2017-04-23 06:51:05 +00:00
|
|
|
prompt "Save new tarballs"
|
|
|
|
depends on LOCAL_TARBALLS_DIR != ""
|
2016-12-14 02:40:47 +00:00
|
|
|
default y
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
|
|
|
If you say 'y' here, new downloaded tarballs will be saved in the
|
|
|
|
directory you entered above.
|
|
|
|
|
2019-02-13 09:05:13 +00:00
|
|
|
config TARBALLS_BUILDROOT_LAYOUT
|
|
|
|
bool "Prefer buildroot-style layout of the downloads"
|
|
|
|
help
|
|
|
|
Buildroot switched the layout of its downloads directory to place
|
|
|
|
files for each package into a subdirectory named after that package.
|
|
|
|
Enable this option to have crosstool-NG create similar layout.
|
|
|
|
If this option is set and the required archive is located in
|
|
|
|
the directory with a legacy, flat layout, the archive will be moved
|
|
|
|
into a subdirectory. If this is option is not set, subdirectories
|
|
|
|
will neither be checked nor used to store the downloads.
|
|
|
|
|
2008-06-24 16:19:45 +00:00
|
|
|
config WORK_DIR
|
|
|
|
string
|
2017-04-23 06:51:05 +00:00
|
|
|
prompt "Working directory"
|
2010-09-12 19:38:12 +00:00
|
|
|
default "${CT_TOP_DIR}/.build"
|
2008-06-24 16:19:45 +00:00
|
|
|
help
|
|
|
|
Set this to the directory where all build actions will be done.
|
|
|
|
|
2011-04-27 23:10:23 +00:00
|
|
|
The default is "${CT_TOP_DIR}/.build", and leaving this option
|
2008-06-24 16:19:45 +00:00
|
|
|
empty will also use the default.
|
|
|
|
|
|
|
|
You should not need to change that, except in one very peculiar
|
|
|
|
setup:
|
|
|
|
- your crosstool-NG source directory is on the network
|
|
|
|
- you configured crosstool-NG with --local
|
|
|
|
This kind of setup is a pain, as any action involving source file
|
|
|
|
access would have to go through the wire. In this case, you should
|
|
|
|
set CT_WORK_DIR to point to a path local to your machine, to avoid
|
|
|
|
any network overhead.
|
|
|
|
|
|
|
|
Do *NOT* change it if you don't know better.
|
|
|
|
|
2016-12-14 08:59:08 +00:00
|
|
|
config BUILD_TOP_DIR
|
|
|
|
string
|
2018-09-27 08:01:20 +00:00
|
|
|
default "${CT_WORK_DIR:-${CT_TOP_DIR}/.build}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
|
2016-12-14 08:59:08 +00:00
|
|
|
|
2019-10-18 22:06:31 +00:00
|
|
|
config BUILD_DIR
|
|
|
|
string
|
|
|
|
default "${CT_BUILD_TOP_DIR}/build"
|
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
config PREFIX_DIR
|
|
|
|
string
|
2017-04-23 06:51:05 +00:00
|
|
|
prompt "Prefix directory"
|
2016-12-14 08:59:08 +00:00
|
|
|
default "${CT_PREFIX:-${HOME}/x-tools}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
|
|
|
This is the path the toolchain will run from.
|
|
|
|
|
2011-01-28 21:06:49 +00:00
|
|
|
config RM_RF_PREFIX_DIR
|
|
|
|
bool
|
|
|
|
prompt "| Remove the prefix dir prior to building"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If you say 'y' here, then PREFIX_DIR (above) will be eradicated
|
|
|
|
prior to the toolchain is built.
|
|
|
|
|
2011-07-17 14:53:40 +00:00
|
|
|
This can be useful when you are trying different settings (due
|
2011-01-28 21:06:49 +00:00
|
|
|
to build failures or feature tests). In this case, to avoid using
|
|
|
|
a potentially broken previous toolchain, the install location is
|
|
|
|
removed, to start afresh.
|
|
|
|
|
2011-07-17 14:53:40 +00:00
|
|
|
On the other hand, if you are building a final toolchain, and install
|
2011-01-28 21:06:49 +00:00
|
|
|
it into a directory with pre-install, unrelated programs, it would be
|
|
|
|
damageable to remove that directory. In this case, you may want to
|
|
|
|
say 'n' here.
|
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
config REMOVE_DOCS
|
|
|
|
bool
|
|
|
|
prompt "Remove documentation"
|
2008-08-01 08:23:29 +00:00
|
|
|
default y
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
|
|
|
Remove the installed documentation (man and info pages).
|
|
|
|
Gains around 8MiB for a uClibc-based, C and C++ compiler.
|
|
|
|
|
2011-11-15 21:06:21 +00:00
|
|
|
config BUILD_MANUALS
|
|
|
|
bool
|
|
|
|
prompt "Build the manuals"
|
|
|
|
depends on ! REMOVE_DOCS
|
|
|
|
help
|
|
|
|
Build the PDF and HTML manuals for the main components such as
|
|
|
|
binutils, GCC, GDB, and the C library.
|
|
|
|
|
2018-11-07 20:23:05 +00:00
|
|
|
config INSTALL_LICENSES
|
|
|
|
bool "Install licenses"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Collect the license files for all the components that went into
|
|
|
|
producing this toolchain (including the crosstool-NG itself)
|
|
|
|
and place them in /share/licenses directory within the prefix
|
|
|
|
directory.
|
|
|
|
|
2016-12-14 09:06:10 +00:00
|
|
|
config PREFIX_DIR_RO
|
2008-04-17 20:02:07 +00:00
|
|
|
bool
|
|
|
|
prompt "Render the toolchain read-only"
|
2008-08-01 08:23:29 +00:00
|
|
|
default y
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
|
|
|
Render the directory of the toolchain (and its sub-directories)
|
|
|
|
read-only.
|
|
|
|
|
2011-07-17 14:53:40 +00:00
|
|
|
Useful for toolchains destined for production.
|
2010-05-27 21:18:19 +00:00
|
|
|
|
2015-11-10 09:59:02 +00:00
|
|
|
config STRIP_HOST_TOOLCHAIN_EXECUTABLES
|
2010-05-27 21:18:19 +00:00
|
|
|
bool
|
2015-11-10 09:59:02 +00:00
|
|
|
prompt "Strip host toolchain executables"
|
2010-05-27 21:18:19 +00:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
All build host executables contain a lot of unnecessary info.
|
2015-11-10 09:59:02 +00:00
|
|
|
By stripping host executables it slightly speeds up the compilation
|
2010-05-27 21:18:19 +00:00
|
|
|
of large projects.
|
|
|
|
NOTE: It does NOT strip the target libraries, only HOST executables
|
2015-11-10 09:59:02 +00:00
|
|
|
|
|
|
|
config STRIP_TARGET_TOOLCHAIN_EXECUTABLES
|
|
|
|
bool
|
|
|
|
prompt "Strip target toolchain executables"
|
|
|
|
help
|
|
|
|
It means using install-strip target for GCC 4.6 or later.
|
|
|
|
An install-strip make target is provided that installs stripped
|
|
|
|
executables, and may install libraries with unneeded or debugging
|
|
|
|
sections stripped.
|
2022-06-15 09:51:25 +00:00
|
|
|
|
|
|
|
config TARBALL_RESULT
|
|
|
|
bool
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
prompt "Create binary toolchain tarball"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Create tarball of the final binary toolchain.
|
|
|
|
|
|
|
|
if TARBALL_RESULT
|
|
|
|
|
|
|
|
config TARBALL_RESULT_DIR
|
|
|
|
string
|
|
|
|
depends on TARBALL_RESULT
|
|
|
|
prompt "Output directory"
|
|
|
|
default "${CT_TOP_DIR}"
|
|
|
|
help
|
|
|
|
Directory where tarball will be created.
|
|
|
|
|
|
|
|
config TARBALL_RESULT_FILENAME
|
|
|
|
string
|
|
|
|
depends on TARBALL_RESULT
|
|
|
|
prompt "Output filename"
|
|
|
|
default "toolchain${CT_TOOLCHAIN_PKGVERSION:+-${CT_TOOLCHAIN_PKGVERSION}}-${CT_HOST:+HOST-${CT_HOST}-}${CT_TARGET}"
|
|
|
|
help
|
|
|
|
Filename for toolchain tarball, without extension.
|
|
|
|
|
|
|
|
endif
|