scripts/build/companion_libs/ppl.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 05 22:04:20 2009 +0000 (2009-05-05)
changeset 1324 48c12c696778
child 1369 4a5ef2b08e81
permissions -rw-r--r--
Add support for building PPL:
- PPL will be needed to correctly build gcc-4.4+ for the
GRAPHITE loop optimisation

-------- diffstat follows --------
/trunk/scripts/build/companion_libs/ppl.sh | 66 66 0 0 ++++++++++++++++++++++++++++++++++++
/trunk/scripts/build/companion_libs/gmp.sh | 24 19 5 0 ++++++++++---
/trunk/scripts/addToolVersion.sh | 3 2 1 0 +-
/trunk/scripts/crosstool-NG.sh.in | 3 3 0 0 ++
/trunk/steps.mk | 1 1 0 0 +
/trunk/config/companion_libs/ppl.in | 33 33 0 0 ++++++++++++++++++
/trunk/config/companion_libs.in | 22 19 3 0 ++++++++++--
7 files changed, 143 insertions(+), 9 deletions(-)
     1 # This file adds the functions to build the PPL library
     2 # Copyright 2009 Yann E. MORIN
     3 # Licensed under the GPL v2. See COPYING in the root of this package
     4 
     5 do_ppl_get() { :; }
     6 do_ppl_extract() { :; }
     7 do_ppl() { :; }
     8 do_ppl_target() { :; }
     9 
    10 # Overide functions depending on configuration
    11 if [ "${CT_PPL_CLOOG}" = "y" ]; then
    12 
    13 # Download PPL
    14 do_ppl_get() {
    15     CT_GetFile "ppl-${CT_PPL_VERSION}"                                      \
    16         http://www.cs.unipr.it/ppl/Download/ftp/releases/${CT_PPL_VERSION}  \
    17         ftp://ftp.cs.unipr.it/pub/ppl/releases/${CT_PPL_VERSION}
    18 }
    19 
    20 # Extract PPL
    21 do_ppl_extract() {
    22     CT_Extract "ppl-${CT_PPL_VERSION}"
    23     CT_Patch "ppl-${CT_PPL_VERSION}"
    24 }
    25 
    26 do_ppl() {
    27     mkdir -p "${CT_BUILD_DIR}/build-ppl"
    28     cd "${CT_BUILD_DIR}/build-ppl"
    29 
    30     CT_DoStep INFO "Installing PPL"
    31 
    32     CT_DoLog EXTRA "Configuring PPL"
    33     CFLAGS="${CT_CFLAGS_FOR_HOST}"                  \
    34     CT_DoExecLog ALL                                \
    35     "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
    36         --build=${CT_BUILD}                         \
    37         --host=${CT_HOST}                           \
    38         --prefix="${CT_PREFIX_DIR}"                 \
    39         --with-libgmp-prefix="${CT_PREFIX_DIR}"     \
    40         --with-libgmpxx-prefix="${CT_PREFIX_DIR}"   \
    41         --disable-shared                            \
    42         --enable-static                             \
    43         --disable-debugging                         \
    44         --disable-assertions                        \
    45         --disable-ppl_lcdd                          \
    46         --disable-ppl_lpsol
    47 
    48     # Maybe-options:
    49     # --enable-interfaces=...
    50     # --enable-optimization=speed  or sspeed (yes, with 2 's')
    51 
    52     CT_DoLog EXTRA "Building PPL"
    53     CT_DoExecLog ALL make ${PARALLELMFLAGS}
    54 
    55     if [ "${CT_PPL_CHECK}" = "y" ]; then
    56         CT_DoLog EXTRA "Checking PPL"
    57         CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
    58     fi
    59 
    60     CT_DoLog EXTRA "Installing PPL"
    61     CT_DoExecLog ALL make install
    62 
    63     CT_EndStep
    64 }
    65 
    66 fi # CT_PPL_CLOOG