mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-31 18:17:00 +00:00
7bcf18bfab
... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# This file adds the functions to build the GCC test suite
|
|
# Copyright 2010 DoréDevelopment
|
|
# Created by Martin Lund <mgl@doredevelopment.dk>
|
|
# Licensed under the GPL v2. See COPYING in the root of this package
|
|
|
|
do_test_suite_gcc_get() { :; }
|
|
do_test_suite_gcc_extract() { :; }
|
|
do_test_suite_gcc_build() { :; }
|
|
|
|
# Overide functions depending on configuration
|
|
if [ "${CT_TEST_SUITE_GCC}" = "y" ]; then
|
|
|
|
do_test_suite_gcc_build() {
|
|
|
|
CT_DoStep INFO "Installing GCC test suite"
|
|
|
|
CT_DoExecLog ALL mkdir -p "${CT_TEST_SUITE_DIR}/gcc"
|
|
CT_DoExecLog ALL cp -av "${CT_LIB_DIR}/contrib/gcc-test-suite/default.cfg" \
|
|
"${CT_LIB_DIR}/contrib/gcc-test-suite/Makefile" \
|
|
"${CT_LIB_DIR}/contrib/gcc-test-suite/README" \
|
|
"${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/gcc/testsuite" \
|
|
"${CT_TEST_SUITE_DIR}/gcc"
|
|
|
|
CT_DoExecLog ALL sed_r -i -e "s/@@DG_TARGET@@/${CT_TARGET}/g;" \
|
|
"${CT_TEST_SUITE_DIR}/gcc/Makefile"
|
|
|
|
CT_EndStep
|
|
}
|
|
|
|
fi # CT_TEST_SUITE_GCC
|