mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-23 09:15:26 +00:00
scripts: add support for building manuals
Add support for building the HTML and PDF manuals for the major components. Implement for binutils, GCC, GDB, and GLIBC. Always build all manuals and install a subset. Be explicit about the subset to reduce the clutter and to avoid getting copies of common manuals like bfd from all of the sourceware based components. Downside of being explicit is that you need to update it when a new component comes along. Build the manuals as part of the last GCC build, namely 'cc' for glibc based ones and cc_core_pass_2 for baremetal. An example of the output is at: http://people.linaro.org/~michaelh/incoming/crosstool-NG/ Signed-off-by: Michael Hope <michael.hope@linaro.org> [yann.morin.1998@anciens.enib.fr: depends on ! remove docs; gold manual install] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
committed by
Michael Hope
parent
81e06b9e15
commit
74d555b2c3
@ -20,6 +20,8 @@ do_binutils() {
|
||||
local -a extra_config
|
||||
local -a extra_make_flags
|
||||
local -a binutils_tools
|
||||
local -a manuals_for
|
||||
local -a manuals_install
|
||||
|
||||
mkdir -p "${CT_BUILD_DIR}/build-binutils"
|
||||
cd "${CT_BUILD_DIR}/build-binutils"
|
||||
@ -90,6 +92,18 @@ do_binutils() {
|
||||
CT_DoLog EXTRA "Installing binutils"
|
||||
CT_DoExecLog ALL make install
|
||||
|
||||
if [ "${CT_BUILD_MANUALS}" = "y" ]; then
|
||||
CT_DoLog EXTRA "Building and installing the binutils manuals"
|
||||
manuals_for=( gas binutils ld gprof )
|
||||
if [ "${CT_BINUTILS_LINKER_GOLD}" = "y" ]; then
|
||||
manuals_for+=( gold )
|
||||
fi
|
||||
manuals_install=( "${manuals_for[@]/#/install-pdf-}" )
|
||||
manuals_install+=( "${manuals_for[@]/#/install-html-}" )
|
||||
CT_DoExecLog ALL make ${JOBSFLAGS} pdf html
|
||||
CT_DoExecLog ALL make "${manuals_install[@]}"
|
||||
fi
|
||||
|
||||
# Install the wrapper if needed
|
||||
if [ "${CT_BINUTILS_LD_WRAPPER}" = "y" ]; then
|
||||
CT_DoLog EXTRA "Installing ld wrapper"
|
||||
|
Reference in New Issue
Block a user