aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/libc/glibc-eglibc.sh-common
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-11-16 10:06:21 +1300
committerMichael Hope <michael.hope@linaro.org>2011-11-16 10:06:21 +1300
commit74d555b2c37f796e5912858ab16968587c691b22 (patch)
treeecad8e1b5b3a0a7b1f0ada7c1bdb836e3ad95713 /scripts/build/libc/glibc-eglibc.sh-common
parent81e06b9e15c588c27ed4c31787781eed95250722 (diff)
downloadcrosstool-ng-74d555b2c37f796e5912858ab16968587c691b22.tar.gz
crosstool-ng-74d555b2c37f796e5912858ab16968587c691b22.tar.bz2
crosstool-ng-74d555b2c37f796e5912858ab16968587c691b22.zip
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>
Diffstat (limited to 'scripts/build/libc/glibc-eglibc.sh-common')
-rw-r--r--scripts/build/libc/glibc-eglibc.sh-common12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common
index 8929f5c2..b1281870 100644
--- a/scripts/build/libc/glibc-eglibc.sh-common
+++ b/scripts/build/libc/glibc-eglibc.sh-common
@@ -303,6 +303,18 @@ do_libc_backend() {
install_root="${CT_SYSROOT_DIR}" \
install
+ if [ "${CT_BUILD_MANUALS}" = "y" ]; then
+ CT_DoLog EXTRA "Building and installing the C library manual"
+ # Omit JOBSFLAGS as GLIBC has problems building the
+ # manuals in parallel
+ CT_DoExecLog ALL make pdf html
+ # EGLIBC doesn't have a install-{pdf.html} and leaves the manuals
+ # in the source directory
+ CT_DoExecLog ALL mkdir -p ${CT_PREFIX_DIR}/share/doc
+ CT_DoExecLog ALL cp -av ${src_dir}/manual/*.pdf ${src_dir}/manual/libc \
+ ${CT_PREFIX_DIR}/share/doc
+ fi
+
if [ "${CT_LIBC_LOCALES}" = "y" ]; then
do_libc_locales
fi