scripts/build/test_suite/gcc.sh
author Remy Bohmer <linux@bohmer.net>
Thu May 27 23:18:19 2010 +0200 (2010-05-27)
changeset 2060 51e4597b07fc
parent 1965 e3d532dd8b5d
child 2830 c3ff88a0c788
permissions -rw-r--r--
scripts: add option to strip all toolchain executables

To reduce filesizes of the toolchain and even improve build times
of projects to be build with this toolchain it is usefull to strip
the delivered toolchain executables. Since it is not likely that we
will debug the toolchain executables itself we do not need the
debug information inside the executables itself.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
mgl@1965
     1
# This file adds the functions to build the GCC test suite
mgl@1965
     2
# Copyright 2010 DoréDevelopment
mgl@1965
     3
# Created by Martin Lund <mgl@doredevelopment.dk>
mgl@1965
     4
# Licensed under the GPL v2. See COPYING in the root of this package
mgl@1965
     5
mgl@1965
     6
do_test_suite_gcc_get() { :; }
mgl@1965
     7
do_test_suite_gcc_extract() { :; }
mgl@1965
     8
do_test_suite_gcc_build() { :; }
mgl@1965
     9
mgl@1965
    10
# Overide functions depending on configuration
mgl@1965
    11
if [ "${CT_TEST_SUITE_GCC}" = "y" ]; then
mgl@1965
    12
mgl@1965
    13
do_test_suite_gcc_build() {
mgl@1965
    14
 
mgl@1965
    15
    CT_DoStep INFO "Installing GCC test suite"
mgl@1965
    16
yann@1966
    17
    CT_DoExecLog ALL mkdir -p "${CT_TEST_SUITE_DIR}/gcc"
yann@1966
    18
    CT_DoExecLog ALL cp -a "${CT_LIB_DIR}/contrib/gcc-test-suite/default.cfg"               \
yann@1966
    19
                           "${CT_LIB_DIR}/contrib/gcc-test-suite/Makefile"                  \
yann@1966
    20
                           "${CT_LIB_DIR}/contrib/gcc-test-suite/README"                    \
yann@1966
    21
                           "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/testsuite"               \
yann@1966
    22
                           "${CT_TEST_SUITE_DIR}/gcc"
yann@1966
    23
yann@1966
    24
    CT_DoExecLog ALL sed -i -r -e "s/@@DG_TARGET@@/${CT_TARGET}/g;"     \
yann@1966
    25
                         "${CT_TEST_SUITE_DIR}/gcc/Makefile"
yann@1966
    26
mgl@1965
    27
    CT_EndStep
mgl@1965
    28
}
mgl@1965
    29
mgl@1965
    30
fi # CT_TEST_SUITE_GCC