summaryrefslogtreecommitdiff
path: root/resources/scripts/update
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/update')
-rwxr-xr-xresources/scripts/update/blobs/download10
-rwxr-xr-xresources/scripts/update/blobs/extract6
-rwxr-xr-xresources/scripts/update/blobs/mrc (renamed from resources/scripts/update/module/mrc)0
-rwxr-xr-xresources/scripts/update/module/bios_extract22
-rwxr-xr-xresources/scripts/update/module/biosutilities22
-rwxr-xr-xresources/scripts/update/module/flashrom24
-rwxr-xr-xresources/scripts/update/module/grub32
-rwxr-xr-xresources/scripts/update/module/me_cleaner25
-rwxr-xr-xresources/scripts/update/module/memtest86plus32
-rwxr-xr-xresources/scripts/update/module/seabios29
-rwxr-xr-xresources/scripts/update/module/uefitool22
-rwxr-xr-xresources/scripts/update/seabios/configs2
12 files changed, 9 insertions, 217 deletions
diff --git a/resources/scripts/update/blobs/download b/resources/scripts/update/blobs/download
index b4b74c1b..0a28778a 100755
--- a/resources/scripts/update/blobs/download
+++ b/resources/scripts/update/blobs/download
@@ -184,7 +184,7 @@ build_dependencies()
{
if [ ! -d me_cleaner ]; then
printf "downloading me_cleaner\n"
- ./download me_cleaner || fail "could not download me_cleaner"
+ ./fetch me_cleaner || fail "could not download me_cleaner"
fi
if [ ! -d ${cbdir} ]; then
printf "downloading coreboot\n"
@@ -193,17 +193,17 @@ build_dependencies()
fi
if [ ! -d bios_extract ]; then
printf "downloading bios_extract\n"
- ./download bios_extract \
+ ./fetch bios_extract \
|| fail "could not download bios_extract"
fi
if [ ! -d biosutilities ]; then
printf "downloading biosutilities\n"
- ./download biosutilities \
+ ./fetch biosutilities \
|| fail "could not download biosutilities"
fi
if [ ! -d uefitool ]; then
printf "download uefitool (for UEFIExtract)\n"
- ./download uefitool \
+ ./fetch uefitool \
|| fail "could not download uefitool"
fi
if [ ! -f uefitool/uefiextract ]; then
@@ -239,7 +239,7 @@ download_blobs()
download_e6400vga || _failed="${_failed} e6400vga"
;;
*MRC*)
- ./download mrc || _failed="${_failed} mrc"
+ ./update blobs mrc || _failed="${_failed} mrc"
;;
esac
done
diff --git a/resources/scripts/update/blobs/extract b/resources/scripts/update/blobs/extract
index 63d09c02..5ac8e91c 100755
--- a/resources/scripts/update/blobs/extract
+++ b/resources/scripts/update/blobs/extract
@@ -58,10 +58,10 @@ build_dependencies()
{
if [ ! -d me_cleaner ]; then
printf "downloading me_cleaner\n"
- ./download me_cleaner || fail 'could not download me_cleaner'
+ ./fetch me_cleaner || fail 'could not download me_cleaner'
else
printf "me_cleaner already downloaded. Skipping.\n"
- printf "run ./download me_cleaner to manually overwrite\n"
+ printf "run ./fetch me_cleaner to manually overwrite\n"
fi
if [ ! -d ${cbdir} ]; then
@@ -90,7 +90,7 @@ extract_blobs()
if [ "$CONFIG_HAVE_MRC" = "y" ]; then
printf 'haswell board detected, downloading mrc\n'
- ./download mrc || fail "could not download mrc"
+ ./update blobs mrc || fail "could not download mrc"
fi
_me_destination=${CONFIG_ME_BIN_PATH#../../}
diff --git a/resources/scripts/update/module/mrc b/resources/scripts/update/blobs/mrc
index 84e79f62..84e79f62 100755
--- a/resources/scripts/update/module/mrc
+++ b/resources/scripts/update/blobs/mrc
diff --git a/resources/scripts/update/module/bios_extract b/resources/scripts/update/module/bios_extract
deleted file mode 100755
index 1688aabe..00000000
--- a/resources/scripts/update/module/bios_extract
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env sh
-#
-# Copyright (C) 2023 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-./gitclone bios_extract
diff --git a/resources/scripts/update/module/biosutilities b/resources/scripts/update/module/biosutilities
deleted file mode 100755
index c6de36b1..00000000
--- a/resources/scripts/update/module/biosutilities
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env sh
-#
-# Copyright (C) 2023 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-./gitclone biosutilities
diff --git a/resources/scripts/update/module/flashrom b/resources/scripts/update/module/flashrom
deleted file mode 100755
index def33ffb..00000000
--- a/resources/scripts/update/module/flashrom
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env sh
-
-# helper script: downloads flashrom and patches it
-#
-# Copyright (C) 2014, 2015, 2020, 2021 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-./gitclone flashrom
diff --git a/resources/scripts/update/module/grub b/resources/scripts/update/module/grub
deleted file mode 100755
index ff1ce55c..00000000
--- a/resources/scripts/update/module/grub
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env sh
-
-# helper script: Downloads GRUB and patches it.
-#
-# Copyright (C) 2014,2015,2016,2020,2021,2023 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-./gitclone grub
-./gitclone gnulib || rm -Rf grub/
-if [ ! -d grub ]; then
- printf "%s: Could not download grub and gnulib\n" ${0}
- exit 1
-else
- exit 0
-fi
diff --git a/resources/scripts/update/module/me_cleaner b/resources/scripts/update/module/me_cleaner
deleted file mode 100755
index 93173257..00000000
--- a/resources/scripts/update/module/me_cleaner
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env sh
-#
-# Copyright (C) 2020 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 retroboot_src or retroboot git.
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-./gitclone me_cleaner
diff --git a/resources/scripts/update/module/memtest86plus b/resources/scripts/update/module/memtest86plus
deleted file mode 100755
index e4106f38..00000000
--- a/resources/scripts/update/module/memtest86plus
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env sh
-
-# helper script: Downloads MemTest86+ and patches it
-#
-# Copyright (C) 2014, 2015, 2020, 2021 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/>.
-#
-
-[ "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"
-./gitclone memtest86plus
diff --git a/resources/scripts/update/module/seabios b/resources/scripts/update/module/seabios
deleted file mode 100755
index 666c32ae..00000000
--- a/resources/scripts/update/module/seabios
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env sh
-#
-# Copyright (C) 2015, 2016, 2021 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/>.
-#
-
-[ "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"
-
-./gitclone seabios
diff --git a/resources/scripts/update/module/uefitool b/resources/scripts/update/module/uefitool
deleted file mode 100755
index cd376895..00000000
--- a/resources/scripts/update/module/uefitool
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env sh
-#
-# Copyright (C) 2023 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-./gitclone uefitool
diff --git a/resources/scripts/update/seabios/configs b/resources/scripts/update/seabios/configs
index c40ed2d2..8e8377bb 100755
--- a/resources/scripts/update/seabios/configs
+++ b/resources/scripts/update/seabios/configs
@@ -28,7 +28,7 @@ set -u -e
printf "Updating seabios configs\n"
if [ ! -d "seabios" ]; then
- ./download seabios
+ ./fetch seabios
fi
if [ ! -d "seabios" ]; then