This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] libc/newlib: build manual for newlib


exporting patch:
# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1323933633 -28800
# Node ID 640b429bc64c2fda03a9ac4716c3c7c222dbfdb6
# Parent  4193d6e6a17430a177fa88c287879c2c35e319f3
libc/newlib: build manual for newlib

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

diff -r 4193d6e6a174 -r 640b429bc64c scripts/build/libc/newlib.sh
--- a/scripts/build/libc/newlib.sh      Tue Dec 13 23:32:39 2011 +0100
+++ b/scripts/build/libc/newlib.sh      Thu Dec 15 15:20:33 2011 +0800
@@ -110,6 +110,24 @@
     CT_DoLog EXTRA "Installing C library"
     CT_DoExecLog ALL make install install_root="${CT_SYSROOT_DIR}"

+    if [ "${CT_BUILD_MANUALS}" = "y" ]; then
+        local -a doc_dir="${CT_BUILD_DIR}/build-libc/${CT_TARGET}"
+
+        CT_DoLog EXTRA "Building and installing the C library manual"
+        CT_DoExecLog ALL make pdf html
+
+        # NEWLIB install-{pdf.html} fail for some versions
+        CT_DoExecLog ALL mkdir -p ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libc/libc.pdf \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libm/libm.pdf \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libc/libc.html \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libm/libm.html \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+    fi
+
     CT_EndStep
 }

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]