diff options
author | Libreboot Contributor <contributor@libreboot.org> | 2020-04-02 20:59:23 +0200 |
---|---|---|
committer | Libreboot Contributor <contributor@libreboot.org> | 2020-04-02 20:59:43 +0200 |
commit | a2f4bef6de0e1f5770d489e861c78890f81229c1 (patch) | |
tree | bc74ce87d44cfcae1eecff62c0fbf6a97b1812fc /i18n/fr_FR/resources/scripts/helpers/download | |
parent | c6cb6cf4769cd535eee9abfd41fbf717a51d067c (diff) | |
download | librebootfr-a2f4bef6de0e1f5770d489e861c78890f81229c1.tar.gz librebootfr-a2f4bef6de0e1f5770d489e861c78890f81229c1.zip |
link to french version of gplv3 at the top of i18n/fr_FR/COPYING . Also, we remove files that we haven't translated yet, it weights a lot.
Diffstat (limited to 'i18n/fr_FR/resources/scripts/helpers/download')
7 files changed, 0 insertions, 523 deletions
diff --git a/i18n/fr_FR/resources/scripts/helpers/download/bucts b/i18n/fr_FR/resources/scripts/helpers/download/bucts deleted file mode 100755 index b57df1fd..00000000 --- a/i18n/fr_FR/resources/scripts/helpers/download/bucts +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash - -# helper script: downloads bucts and patches it -# -# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org> -# -# 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/>. -# - -# This script assumes that the working directory is the -# root of libreboot_src or libreboot git. - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -# Get bucts and checkout last revision used - -# Remove the old version that may exist -# ------------------------------------------------------------------------------ - -printf "Downloading bucts\n" - -rm -Rf "bucts/" - -# Get bucts -# ------------------------------------------------------------------------------ - -# download it using git -git clone https://notabug.org/libreboot/bucts.git - -# modifications are required -cd "bucts/" - -# Reset to the last commit that was tested -# ------------------------------------------------------------------------------ - -printf "Patching bucts to not require git for building\n" -git reset --hard dc27919d7a66a6e8685ce07c71aefa4f03ef7c07 - -# Apply patches -# ------------------------------------------------------------------------------ - -git am "../resources/bucts/patch/0001-Makefile-don-t-use-git.patch" - -# we're done -cd "../" - -printf "\n\n" diff --git a/i18n/fr_FR/resources/scripts/helpers/download/coreboot b/i18n/fr_FR/resources/scripts/helpers/download/coreboot deleted file mode 100755 index 8b8fa510..00000000 --- a/i18n/fr_FR/resources/scripts/helpers/download/coreboot +++ /dev/null @@ -1,153 +0,0 @@ -#!/usr/bin/env bash - -# helper script: downloads coreboot and patches/deblobs it -# -# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org> -# Copyright (C) 2015 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/>. -# - -# This script assumes that the working directory is the -# root of libreboot_src or libreboot git. - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -if [ -f "version" ]; then - # _src release archive is being used - version="libreboot-$(cat version)" -else - # git repo is being used - version="libreboot-$(git describe --tags HEAD)" -fi - -make_coreboot_src_directory() { - payload="${1}" - cbrevision="${2}" - vbootrevision="${3}" - firmwarepath="${4}" # libreboot_src/coreboot/ -( - cd "${firmwarepath}/" - # copy coreboot directory there - rm -Rf "${payload:?}/${cbrevision:?}/" - if [ ! -d "${payload}/" ]; then - mkdir -p "${payload}/" - fi - cp -R "coreboot/" "${payload}/${cbrevision}/" - - # We need to reset that revision of coreboot to the specified revision - cd "${payload}/${cbrevision}/" - git reset --hard ${cbrevision} - - if [ "${vbootrevision}" != "no_vboot_revision" ]; then - # reset vboot revision. in practise, we always use the same - # vboot revision on all boards that use a given coreboot revision - cd "3rdparty/vboot/" - git reset --hard ${vbootrevision} - fi -) -} - -printf "Downloading coreboot, patching coreboot and deblobbing coreboot\n" - -# This grabs current base used, and applies patches -# This is also used to run the deblob scripts. - -# Remove the old version that may exist -# ------------------------------------------------------------------------------ - -rm -Rf "coreboot/" - -mkdir "coreboot/" - -cd "coreboot/" - -# Get latest coreboot: -# ------------------------------------------------------------------------------ - -# download it using git -git clone https://review.coreboot.org/coreboot || git clone https://github.com/coreboot/coreboot.git - -# there are modifications required -cd "coreboot/" - -# Define a common version (based on the libreboot version) -# Most likely redundant, because the build system needs to update -# this every time when building a ROM image anyway -printf '%s\n' "${version}" >".coreboot-version" - -# vboot submodule is needed -# ------------------------------------------------------------------------------ - -git submodule update --init --checkout -- 3rdparty/vboot/ - -# Create branches, with patches in each branch -# Create separate coreboot source directories *for each board* -# ------------------------------------------------------------------------------ - -for payloads in ../../resources/libreboot/config/*; do - - if [ ! -d "${payloads}/" ]; then - continue - fi - - payload="${payloads##*/}" - - for boardconfig in ../../resources/libreboot/config/${payload}/*; do - - if [ ! -d "${boardconfig}/" ]; then - continue - fi - - cbrevision=$(cat "${boardconfig}/cbrevision") - vbootrevision=$(cat "${boardconfig}/vbootrevision") - - # the same vboot revision is always used for coreboot revision, - # so we don't need to wworry about checking for that here - - if [ -d "../${cbrevision}/${cbrevision}" ]; then - continue - # the directory already exists, no need to recreate it - fi - - make_coreboot_src_directory ${cbrevision} ${cbrevision} ${vbootrevision} .. - done -done - -# go back to _src/coreboot/ (containing all coreboot directories) -cd "../" -# delete the gitted one (not needed anymore) -rm -Rf "coreboot/" - -# Run coreboot-libre deblob scripts -# ------------------------------------------------------------------------------ - -printf "Deleting .git* in coreboot/ (history inside .git contains the blobs that were deleted)\n" -rm -Rf */*/.git* -rm -Rf */*/3rdparty/*/.git* - -# Delete crossgcc from non-crossgcc coreboot archives -# (the build system will create symlinks later when building the ROM images) -for payload in *; do - if [ "${payload##*/}" != "crossgcc" ]; then - rm -Rf ${payload:?}/*/util/crossgcc/ - fi -done -cd "../" - -printf "Deblobbing coreboot\n" -./resources/utilities/coreboot-libre/deblob - -printf "\n\n" diff --git a/i18n/fr_FR/resources/scripts/helpers/download/crossgcc b/i18n/fr_FR/resources/scripts/helpers/download/crossgcc deleted file mode 100755 index 8522458a..00000000 --- a/i18n/fr_FR/resources/scripts/helpers/download/crossgcc +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env bash - -# helper script: downloads crossgcc, for building coreboot -# -# Copyright (C) 2016 Leah Rowe <info@minifree.org> -# -# 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/>. -# - -# This script assumes that the working directory is the -# root of libreboot_src or libreboot git. - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -if [ -f "version" ]; then - # _src release archive is being used - version="libreboot-$(cat version)" -else - # git repo is being used - version="libreboot-$(git describe --tags HEAD)" -fi - -# coreboot revisios used for crossgcc -crossgccrevision="35562d8b6477058e6bca31b5cedd9d4897124fc7" -vbootrevision="d187cd3fc792f8bcefbee4587c83eafbd08441fc" - -rm -Rf "crossgcc/" -( - git clone https://review.coreboot.org/coreboot crossgcc || git clone https://github.com/coreboot/coreboot.git crossgcc - cd "crossgcc/" - git reset --hard ${crossgccrevision} - git submodule update --init --checkout -- 3rdparty/vboot/ - ( - cd 3rdparty/vboot/ - git reset --hard ${vbootrevision} - ) - # If -pie is enabled in GCC, then --with-pic must be used when compiling - git am ../resources/libreboot/patch/crossgcc/looking_for_pie.patch - # Update URI pointing to the version of libelf we need - git am ../resources/libreboot/patch/crossgcc/libelf.patch - #Patch to add hash checking to buildgcc - git apply ../resources/libreboot/patch/crossgcc/buildgcc_hash_patch.diff - rm -Rf .git* */*/.git* -) - - -printf "Deblobbing coreboot\n" -./resources/utilities/coreboot-libre/deblob - - diff --git a/i18n/fr_FR/resources/scripts/helpers/download/flashrom b/i18n/fr_FR/resources/scripts/helpers/download/flashrom deleted file mode 100755 index da3adad0..00000000 --- a/i18n/fr_FR/resources/scripts/helpers/download/flashrom +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -# helper script: downloads flashrom and patches it -# -# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org> -# -# 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/>. -# - -# This script assumes that the working directory is the -# root of libreboot_src or libreboot git. - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -# Get flashrom at the last previously tested revision - -# Remove the old version that may still exist: -# ------------------------------------------------------------------------------ - -printf "Downloading flashrom\n" - -rm -Rf "flashrom/" - -# Get flashrom -# ------------------------------------------------------------------------------ - -# download it using git -git clone https://github.com/stefanct/flashrom.git - -( -cd "flashrom/" - -# reset to known revision -git checkout v0.9.9 -git reset --hard - -# Apply patches -# ------------------------------------------------------------------------------ - -printf "Enabling whitelist for X200S, X200 Tablet, T400, T500, W500 and R400\n" -git am "../resources/flashrom/patch/0001-New-laptops-whitelisted-ThinkPad-R400-and-ThinkPad-T.patch" - -printf "Enabling whitelist for Libiquity Taurinus X200\n" -git am "../resources/flashrom/patch/0002-Add-whitelist-for-Taurinus-X200-laptop.patch" - -# Remove redundant definitions for the flash chips that -# supported libreboot systems use. This removes the need -# for the user to run with the "-c" argument on these systems -printf "Patching flashchips.c to remove the redundant entries\n" -git am "../resources/flashrom/patch/0003-purged-chips.patch" -) - -printf "\n\n" diff --git a/i18n/fr_FR/resources/scripts/helpers/download/grub b/i18n/fr_FR/resources/scripts/helpers/download/grub deleted file mode 100755 index 3ec8a8fb..00000000 --- a/i18n/fr_FR/resources/scripts/helpers/download/grub +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env bash - -# helper script: Downloads GRUB and patches it. -# -# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org> -# -# 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/>. -# - -# This script assumes that the working directory is the -# root of libreboot_src or libreboot git. - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -# Remove the old version that may still exist -# ------------------------------------------------------------------------------ - -printf "Downloading GRUB\n" - -rm -Rf "grub/" - -# Get latest GRUB -# ------------------------------------------------------------------------------ - -# download it using git -git clone git://git.savannah.gnu.org/grub.git || git clone http://git.savannah.gnu.org/r/grub.git - -# modifications are required -cd "grub/" - -# reset to known revision -git reset --hard e54c99aaff5e5f6f5d3b06028506c57e66d8ef77 - -# Apply patches -# ------------------------------------------------------------------------------ - -# Replace "GNU GRUB version" in GRUB screen with "FREE AS IN FREEDOM" -git am "../resources/grub/patch/0001-grub-core-normal-main.c-Display-FREE-AS-IN-FREEDOM-n.patch" - -# Enable reproducible builds -git am "../resources/grub/patch/reproducible/0001-mkstandalone-add-argument-fixed-time-to-override-mti.patch" -git am "../resources/grub/patch/reproducible/0002-mkrescue-add-argument-fixed-time-to-get-reproducible.patch" -git am "../resources/grub/patch/reproducible/0003-Makefile-use-FIXED_TIMESTAMP-for-mkstandalone-if-set.patch" - -cd "../" - -# Also download SeaBIOS, which we use with GRUB, to implement SeaGRUB -./download seabios - -printf "\n\n" diff --git a/i18n/fr_FR/resources/scripts/helpers/download/memtest86plus b/i18n/fr_FR/resources/scripts/helpers/download/memtest86plus deleted file mode 100755 index f96af2b1..00000000 --- a/i18n/fr_FR/resources/scripts/helpers/download/memtest86plus +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash - -# helper script: Downloads MemTest86+ and patches it -# -# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org> -# Copyright (C) 2015 Joseph Michael Thompson <jmt@josepht.me> -# Copyright (C) 2015 Klemens Nanni <contact@autoboot.org> -# -# 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/>. -# - -# This script assumes that the working directory is the -# root of libreboot_src or libreboot git. - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -# Get the last version of MemTest86+ used, apply patches, build it. - -# Remove the old version that may exist -# ------------------------------------------------------------------------------ - -printf "Downloading MemTest86+\n" - -rm -Rf "memtest86plus/" - -# Get latest memtest86+: -# ------------------------------------------------------------------------------ - -# download it using wget -wget http://www.memtest.org/download/5.01/memtest86+-5.01.tar.gz - -if [ "$(sha512sum memtest86+-5.01.tar.gz | cut -c1-128)" = "d872db35ef733ec8f49094251f2bf6b98cc80eb06d04044be3aecf28d534f24ba293a08b9979b112dbd07cf27368148939a33a32c7010fc9581a3a5b150c94d7" ]; then - printf "Valid checksum for memtest86plus\n" -else - rm -f "memtest86+-5.01.tar.gz" - printf "Invalid checksum for memtest86plus\n" - exit 1 -fi - -# extract it -tar -xzf "memtest86+-5.01.tar.gz" - -# delete the tar file (no longer needed) -rm -f "memtest86+-5.01.tar.gz" - -# make direcotory name consistent -mv "memtest86+-5.01/" "memtest86plus/" - -# Apply necessary patches -# ------------------------------------------------------------------------------ - -( -cd "memtest86plus/" -for patch in ../resources/memtest86plus/patch/*; do - patch < "${patch}" -done -) - -printf "\n\n" diff --git a/i18n/fr_FR/resources/scripts/helpers/download/seabios b/i18n/fr_FR/resources/scripts/helpers/download/seabios deleted file mode 100755 index 8e92618a..00000000 --- a/i18n/fr_FR/resources/scripts/helpers/download/seabios +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright (C) 2015, 2016 Leah Rowe <info@minifree.org> -# -# 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/>. -# - -# This script assumes that the working directory is the -# root of libreboot_src or libreboot git. - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -# Get SeaBIOS, revert to commit last used and apply patches. - -# Remove the old version that may still exist -# ------------------------------------------------------------------------------ - -printf "Downloading SeaBIOS\n" - -rm -rf "seabios/" - -# Get latest SeaBIOS -# ------------------------------------------------------------------------------ - -# download it using git -git clone https://git.seabios.org/seabios.git seabios || \ -git clone https://review.coreboot.org/cgit/seabios.git/ seabios - -( -# modifications are required -cd "seabios/" - -# Reset to the last commit that was tested (we use stable releases for seabios) -# ------------------------------------------------------------------------------ - -git reset --hard 19fdcca467ad3436d68ef88899b4dcd78154a9c6 -) - - |