diff options
Diffstat (limited to 'i18n/fr_FR/projects/crossgcc')
9 files changed, 297 insertions, 0 deletions
diff --git a/i18n/fr_FR/projects/crossgcc/configs/blobs b/i18n/fr_FR/projects/crossgcc/configs/blobs new file mode 120000 index 00000000..8574352d --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/configs/blobs @@ -0,0 +1 @@ +../../coreboot/configs/blobs
\ No newline at end of file diff --git a/i18n/fr_FR/projects/crossgcc/configs/blobs-ignore b/i18n/fr_FR/projects/crossgcc/configs/blobs-ignore new file mode 120000 index 00000000..04d6519e --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/configs/blobs-ignore @@ -0,0 +1 @@ +../../coreboot/configs/blobs-ignore
\ No newline at end of file diff --git a/i18n/fr_FR/projects/crossgcc/configs/blobs-ignore-notes.txt b/i18n/fr_FR/projects/crossgcc/configs/blobs-ignore-notes.txt new file mode 120000 index 00000000..3f05ba9b --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/configs/blobs-ignore-notes.txt @@ -0,0 +1 @@ +../../coreboot/configs/blobs-ignore-notes.txt
\ No newline at end of file diff --git a/i18n/fr_FR/projects/crossgcc/configs/install b/i18n/fr_FR/projects/crossgcc/configs/install new file mode 100644 index 00000000..8f4e2632 --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/configs/install @@ -0,0 +1 @@ +*:. diff --git a/i18n/fr_FR/projects/crossgcc/configs/revision b/i18n/fr_FR/projects/crossgcc/configs/revision new file mode 120000 index 00000000..006c3a7a --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/configs/revision @@ -0,0 +1 @@ +../../coreboot/configs/revision
\ No newline at end of file diff --git a/i18n/fr_FR/projects/crossgcc/configs/targets b/i18n/fr_FR/projects/crossgcc/configs/targets new file mode 100644 index 00000000..8c9fb8ba --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/configs/targets @@ -0,0 +1,2 @@ +arm +i386 diff --git a/i18n/fr_FR/projects/crossgcc/crossgcc b/i18n/fr_FR/projects/crossgcc/crossgcc new file mode 100755 index 00000000..1c3f33d8 --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/crossgcc @@ -0,0 +1,221 @@ +#!/usr/bin/env bash + +# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +arguments() { + project_arguments_targets "$project" "$@" +} + +usage() { + project_usage_actions "$project" "prefix" + project_usage_arguments "$project" "$@" +} + +download() { + local repository="coreboot" + + git_project_prepare "$project" "$repository" "$@" +} + +download_check() { + local repository="coreboot" + + git_project_prepare_check "$project" "$repository" "$@" +} + +extract() { + local arguments=$@ + + local repository="coreboot" + local tarball + + project_extract "$project" "$@" + + crossgcc_tarballs "$@" | while read tarball + do + local tarball_sources_path=$(crossgcc_tarball_sources_path "$tarball") + local tarball_install_path=$(crossgcc_tarball_install_path "$tarball" "$@") + local tarball_install_directory_path=$(dirname "$tarball_install_path") + + if [[ -f "$tarball_sources_path" ]] && ! [[ -f "$tarball_install_path" ]] + then + printf '%s\n' "Copying source archive $tarball for $project (with ${arguments:-no argument})" + + mkdir -p "$tarball_install_directory_path" + + file_verification_check "$tarball_sources_path" + cp "$tarball_sources_path" "$tarball_install_path" + fi + done +} + +extract_check() { + local repository="coreboot" + local tarball + + project_extract_check "$project" "$@" + + crossgcc_tarballs "$@" | while read tarball + do + local tarball_install_path=$(crossgcc_tarball_install_path "$tarball" "$@") + + test ! -f "$tarball_install_path" + done +} + +update() { + local arguments=$@ + + local repository="coreboot" + local tarball + + project_update_git $project $repository $arguments + + crossgcc_tarballs "$@" | while read tarball + do + local tarball_sources_path=$(crossgcc_tarball_sources_path "$tarball") + local tarball_install_path=$(crossgcc_tarball_install_path "$tarball" "$@") + local tarball_install_directory_path=$(dirname "$tarball_install_path") + + if [[ -f $tarball_sources_path ]] + then + printf '%s\n' "Copying source archive $tarball for $project (with ${arguments:-no argument})" + + mkdir -p "$tarball_install_directory_path" + + file_verification_check "$tarball_sources_path" + cp "$tarball_sources_path" "$tarball_install_path" + fi + done +} + +update_check() { + local repository="coreboot" + local tarball + + project_update_check_git "$project" "$repository" "$@" + + crossgcc_tarballs "$@" | while read tarball + do + local tarball_sources_path=$(crossgcc_tarball_sources_path "$tarball" "$@") + + test ! -f "$tarball_sources_path" + done +} + +prefix() { + local arch=$1 + + local build_path=$(project_build_path "$project" "$@") + + case $arch in + "arm") + printf '\n%s\n' "$build_path/bin/arm-eabi-" + ;; + "i386") + printf '\n%s\n' "$build_path/bin/i386-elf-" + ;; + esac +} + +build() { + local arch=$1 + + local repository="coreboot" + + project_sources_directory_missing_empty_error "$project" "$repository" "$@" + + local sources_path=$(project_sources_path "$project" "$repository" "$@") + local build_path=$(project_build_path "$project" "$@") + + if git_project_check "$repository" + then + git_project_checkout "$project" "$repository" "$@" + fi + + mkdir -p "$build_path" + + local bootstrap_flag + + if ! crossgcc_same_major_version_test; then + printf '\n%s' 'GCC major versions differ. Bootstrapping' 1>&2 + printf '%s\n\n' ' to avoid potential build failure' 1>&2 + + bootstrap_flag='-b' + fi + + make -C "$sources_path" $bootstrap_flag CPUS="$TASKS" DEST="$build_path" "crossgcc-$arch" +} + +build_check() { + project_build_check "$project" "$@" +} + +install() { + project_install "$project" "$@" +} + +install_check() { + project_install_check "$project" "$@" +} + +release() { + local arguments=$@ + + local repository="coreboot" + local tarball + + project_release_install_archive "$project" "$TOOLS" "$@" + + project_release_sources_git "$project" "$repository" "$@" + + crossgcc_tarballs "$@" | while read tarball + do + local tarball_install_path=$(crossgcc_tarball_install_path "$tarball" "$@") + local tarball_release_path=$(crossgcc_tarball_release_path "$tarball" "$@") + local release_path=$(project_release_path "$project" "$SOURCES" "$@") + + mkdir -p "$release_path" + + if [[ -f "$tarball_install_path" ]] && ! [[ -f "$tarball_release_path" ]] + then + printf '%s\n' "Releasing source archive $tarball for $project (with ${arguments:-no argument})" + + cp "$tarball_install_path" "$tarball_release_path" + file_verification_create "$tarball_release_path" + fi + done +} + +release_check() { + local repository="coreboot" + local tarball + + project_release_install_archive_check "$project" "$TOOLS" "$@" + + project_release_check_sources_git "$project" "$repository" "$@" + + crossgcc_tarballs "$@" | while read tarball + do + local tarball_release_path=$(crossgcc_tarball_release_path "$tarball" "$@") + + test -f "$tarball_release_path" + done +} + +clean() { + project_clean "$project" "$@" +} diff --git a/i18n/fr_FR/projects/crossgcc/crossgcc-helper b/i18n/fr_FR/projects/crossgcc/crossgcc-helper new file mode 100755 index 00000000..94e445bf --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/crossgcc-helper @@ -0,0 +1,68 @@ +#!/usr/bin/env bash + +# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +crossgcc_same_major_version_test() { + local buildgcc_path="$sources_path/util/crossgcc/buildgcc" + local sources_path="$(project_sources_path "$project" "$repository" "$@")" + + local crossgcc_version="$(sed -rne 's/^GCC_VERSION=(.*)$/\1/p' "$buildgcc_path")" + local host_gcc_version="$(gcc -dumpversion)" + + if [[ "${host_gcc_version%%.*}" -eq "${crossgcc_version%%.*}" ]]; then + + return 0 + else + return 1 + fi +} + +crossgcc_tarballs() { + local sources_path=$(project_sources_path "$project" "$repository" "$@") + local install_path="$sources_path/util/crossgcc/tarballs/" + local tarballs=$(ls "$sources_path/util/crossgcc/sum" | sed "s/.cksum$//") + + printf '%s\n' "$tarballs" +} + +crossgcc_tarball_sources_path() { + local tarball=$1 + + local tarball_sources_path="$root/$SOURCES/$tarball" + + printf '%s\n' "$tarball_sources_path" +} + +crossgcc_tarball_install_path() { + local tarball=$1 + shift + + local sources_path=$(project_sources_path "$project" "$repository" "$@") + local install_path="$sources_path/util/crossgcc/tarballs/" + local tarball_install_path="$install_path/$tarball" + + printf '%s\n' "$tarball_install_path" +} + +crossgcc_tarball_release_path() { + local tarball=$1 + shift + + local release_path=$(project_release_path "$project" "$SOURCES" "$@") + local tarball_release_path="$release_path/$tarball" + + printf '%s\n' "$tarball_release_path" +} diff --git a/i18n/fr_FR/projects/crossgcc/patches/0001-Don-t-pull-in-3rdparty-git-submodules.patch b/i18n/fr_FR/projects/crossgcc/patches/0001-Don-t-pull-in-3rdparty-git-submodules.patch new file mode 120000 index 00000000..250b848b --- /dev/null +++ b/i18n/fr_FR/projects/crossgcc/patches/0001-Don-t-pull-in-3rdparty-git-submodules.patch @@ -0,0 +1 @@ +../../coreboot/patches/0001-Don-t-pull-in-3rdparty-git-submodules.patch
\ No newline at end of file |