aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/helpers/build/clean/bucts38
-rwxr-xr-xresources/scripts/helpers/build/clean/coreboot48
-rwxr-xr-xresources/scripts/helpers/build/clean/crossgcc28
-rwxr-xr-xresources/scripts/helpers/build/clean/depthcharge38
-rwxr-xr-xresources/scripts/helpers/build/clean/flashrom35
-rwxr-xr-xresources/scripts/helpers/build/clean/grub35
-rwxr-xr-xresources/scripts/helpers/build/clean/i945pwm34
-rwxr-xr-xresources/scripts/helpers/build/clean/ich9deblob34
-rwxr-xr-xresources/scripts/helpers/build/clean/memtest86plus33
-rwxr-xr-xresources/scripts/helpers/build/clean/rom_images31
-rwxr-xr-xresources/scripts/helpers/build/clean/seabios37
-rwxr-xr-xresources/scripts/helpers/build/config/dcmodify72
-rwxr-xr-xresources/scripts/helpers/build/config/dcreplace63
-rwxr-xr-xresources/scripts/helpers/build/config/dcupdate72
-rwxr-xr-xresources/scripts/helpers/build/config/grubmodify72
-rwxr-xr-xresources/scripts/helpers/build/config/grubreplace63
-rwxr-xr-xresources/scripts/helpers/build/config/grubupdate72
-rwxr-xr-xresources/scripts/helpers/build/config/seabiosmodify45
-rwxr-xr-xresources/scripts/helpers/build/config/seabiosrommodify72
-rwxr-xr-xresources/scripts/helpers/build/config/seabiosromreplace63
-rwxr-xr-xresources/scripts/helpers/build/config/seabiosromupdate72
-rwxr-xr-xresources/scripts/helpers/build/config/seabiosupdate43
-rwxr-xr-xresources/scripts/helpers/build/dependencies/debian99
-rwxr-xr-xresources/scripts/helpers/build/dependencies/parabola110
-rwxr-xr-xresources/scripts/helpers/build/module/bucts67
-rwxr-xr-xresources/scripts/helpers/build/module/coreboot207
-rwxr-xr-xresources/scripts/helpers/build/module/crossgcc45
-rwxr-xr-xresources/scripts/helpers/build/module/flashrom93
-rwxr-xr-xresources/scripts/helpers/build/module/grub57
-rwxr-xr-xresources/scripts/helpers/build/module/i945pwm42
-rwxr-xr-xresources/scripts/helpers/build/module/ich9deblob44
-rwxr-xr-xresources/scripts/helpers/build/module/memtest86plus33
-rwxr-xr-xresources/scripts/helpers/build/module/seabios61
-rwxr-xr-xresources/scripts/helpers/build/release/roms105
-rwxr-xr-xresources/scripts/helpers/build/release/sha512sums53
-rwxr-xr-xresources/scripts/helpers/build/release/src133
-rwxr-xr-xresources/scripts/helpers/build/release/tobuild109
-rwxr-xr-xresources/scripts/helpers/build/release/util250
-rwxr-xr-xresources/scripts/helpers/build/roms/withdepthcharge207
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub125
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub_helper202
-rwxr-xr-xresources/scripts/helpers/build/roms/withseabios55
-rwxr-xr-xresources/scripts/helpers/build/roms/withseabios_helper139
-rwxr-xr-xresources/scripts/helpers/download/bucts59
-rwxr-xr-xresources/scripts/helpers/download/coreboot153
-rwxr-xr-xresources/scripts/helpers/download/crossgcc58
-rwxr-xr-xresources/scripts/helpers/download/depthcharge75
-rwxr-xr-xresources/scripts/helpers/download/flashrom69
-rwxr-xr-xresources/scripts/helpers/download/grub71
-rwxr-xr-xresources/scripts/helpers/download/memtest86plus71
-rwxr-xr-xresources/scripts/helpers/download/seabios50
-rw-r--r--resources/scripts/misc/check-trailing-newline33
-rw-r--r--resources/scripts/misc/libreboot_usb_bugfix50
-rwxr-xr-xresources/scripts/misc/powertop.debian50
54 files changed, 0 insertions, 4075 deletions
diff --git a/resources/scripts/helpers/build/clean/bucts b/resources/scripts/helpers/build/clean/bucts
deleted file mode 100755
index f7f7edd5..00000000
--- a/resources/scripts/helpers/build/clean/bucts
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in bucts
-#
-# 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 current working directory is the root
-# of libreboot_src or libreboot git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# clean bucts
-# --------------------------------------------------------
-
-printf "Cleaning the previous build of bucts\n"
-
-cd "bucts/"
-make clean
-
-printf "\n\n"
-
-# done. go back to main directory.
-cd "../"
diff --git a/resources/scripts/helpers/build/clean/coreboot b/resources/scripts/helpers/build/clean/coreboot
deleted file mode 100755
index f72e2f1f..00000000
--- a/resources/scripts/helpers/build/clean/coreboot
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in coreboot
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 current working directory is the root
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# clean coreboot utilities (dependencies for 'build'):
-
-printf "Cleaning the previous build of coreboot and its utilities\n"
-
-# clean coreboot and crossgcc (source archives preserved)
-for payload in coreboot/*; do
- for board in "${payload}/"*; do
-
- # Clean coreboot, of course
- make -C "${board}/" distclean
-
- # Clean its utilities as well
- for util in {cbfs,ifd,nvram}tool cbmem; do
- make -C "${board}/util/${util}/" clean
- done
- make -C "${board}/payloads/libpayload/" distclean
-
- rm -f "${board}/util/crossgcc"
- done
-done
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/clean/crossgcc b/resources/scripts/helpers/build/clean/crossgcc
deleted file mode 100755
index 78a89349..00000000
--- a/resources/scripts/helpers/build/clean/crossgcc
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in coreboot
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 current working directory is the root
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-make -C "crossgcc/" crossgcc-clean
-
diff --git a/resources/scripts/helpers/build/clean/depthcharge b/resources/scripts/helpers/build/clean/depthcharge
deleted file mode 100755
index 9751d924..00000000
--- a/resources/scripts/helpers/build/clean/depthcharge
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in depthcharge
-#
-# 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 current working directory is the root
-# of libreboot_src or libreboot git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# clean depthcharge
-# --------------------------------------------------------
-
-cd "depthcharge/"
-
-printf "Cleaning the previous build of depthcharge\n"
-make distclean
-
-# done. go back to main directoy
-cd "../"
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/clean/flashrom b/resources/scripts/helpers/build/clean/flashrom
deleted file mode 100755
index 241917f0..00000000
--- a/resources/scripts/helpers/build/clean/flashrom
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in flashrom
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 current working directory is the root
-# of git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-printf "Cleaning the previous build of flashrom\n"
-
-# clean flashrom
-make -C flashrom clean
-rm -f "flashrom/flashrom_lenovobios_sst"
-rm -f "flashrom/flashrom_lenovobios_macronix"
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/clean/grub b/resources/scripts/helpers/build/clean/grub
deleted file mode 100755
index 2b2f6a5d..00000000
--- a/resources/scripts/helpers/build/clean/grub
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in GRUB
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 current working directory is the root
-# of git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-printf "Cleaning the previous build of GRUB\n"
-# clean GURB
-[ -d grub/Makefile ] && make -C grub distclean
-
-# Also clean SeaBIOS
-./build clean seabios
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/clean/i945pwm b/resources/scripts/helpers/build/clean/i945pwm
deleted file mode 100755
index 91bf6f78..00000000
--- a/resources/scripts/helpers/build/clean/i945pwm
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in i945pwm
-#
-# 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 current working directory is the root
-# of libreboot_src or libreboot git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# clean i945-pwm utility
-# --------------------------------------------------------------------
-
-printf "Cleaning the previous build of i945-pwm\n"
-cd "resources/utilities/i945-pwm/"
-make clean
-cd "../../../"
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/clean/ich9deblob b/resources/scripts/helpers/build/clean/ich9deblob
deleted file mode 100755
index d9019fc3..00000000
--- a/resources/scripts/helpers/build/clean/ich9deblob
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in ich9deblob
-#
-# 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 current working directory is the root
-# of libreboot_src or libreboot git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# clean ich9deblob utility
-# --------------------------------------------------------------------
-
-printf "Cleaning the previous build of ich9deblob\n"
-cd "resources/utilities/ich9deblob/"
-make clean
-cd "../../../"
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/clean/memtest86plus b/resources/scripts/helpers/build/clean/memtest86plus
deleted file mode 100755
index db40be32..00000000
--- a/resources/scripts/helpers/build/clean/memtest86plus
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in memtest86+
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 current working directory is the root
-# of git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-printf "Cleaning the previous build of MemTest86+\n"
-
-# clean MemTest86+
-make -C memtest86plus clean
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/clean/rom_images b/resources/scripts/helpers/build/clean/rom_images
deleted file mode 100755
index abf352d0..00000000
--- a/resources/scripts/helpers/build/clean/rom_images
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-# helper script: delete the ROM images
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 current working directory is the root
-# of git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# Delete the ROM images
-rm -Rf "bin/"
-
-printf "Deleted the bin/ directory containing the ROM images.\n\n"
diff --git a/resources/scripts/helpers/build/clean/seabios b/resources/scripts/helpers/build/clean/seabios
deleted file mode 100755
index 09203ab8..00000000
--- a/resources/scripts/helpers/build/clean/seabios
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-# helper script: clean the dependencies that were built in seabios
-#
-# Copyright (C) 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 current working directory is the root
-# of libreboot_src or libreboot git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# clean bucts
-# --------------------------------------------------------
-
-printf "Cleaning the previous build of seabios\n"
-
-(
-cd "seabios/"
-rm -f "out/bios.bin.vga.elf"
-make distclean
-)
-
diff --git a/resources/scripts/helpers/build/config/dcmodify b/resources/scripts/helpers/build/config/dcmodify
deleted file mode 100755
index 81e8756e..00000000
--- a/resources/scripts/helpers/build/config/dcmodify
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make menuconfig" on config(s) to modify them
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="depthcharge"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Modifying config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- if [ ! -d "../../../${configpath}/${board}/" ]; then
- printf "build/config/dcmodify WARNING: config '%s' does not exist. Skipping.\n" "${board}"
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
- return
- fi
-
- mv "../../../${configpath}/${board}/config" ".config"
- make menuconfig
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/dcreplace b/resources/scripts/helpers/build/config/dcreplace
deleted file mode 100755
index d3265ae2..00000000
--- a/resources/scripts/helpers/build/config/dcreplace
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make menuconfig" on config(s) to replace them
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="depthcharge"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Replacing or creating new config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- make menuconfig
-
- [ ! -d "../../../${configpath}/${board}/" ] && mkdir -p "../../../${configpath}/${board}/"
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/dcupdate b/resources/scripts/helpers/build/config/dcupdate
deleted file mode 100755
index 8d45c9de..00000000
--- a/resources/scripts/helpers/build/config/dcupdate
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make oldconfig" on all coreboot config files
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="depthcharge"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Updating config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- if [ ! -d "../../../${configpath}/${board}/" ]; then
- printf "build/config/dcupdate WARNING: config '%s' does not exist. Skipping.\n" "${board}"
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
- return
- fi
-
- mv "../../../${configpath}/${board}/config" ".config"
- make oldconfig
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/grubmodify b/resources/scripts/helpers/build/config/grubmodify
deleted file mode 100755
index f6075034..00000000
--- a/resources/scripts/helpers/build/config/grubmodify
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make menuconfig" on config(s) to modify them
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="grub"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Modifying config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- if [ ! -d "../../../${configpath}/${board}/" ]; then
- printf "build/config/grubmodify WARNING: config '%s' does not exist. Skipping.\n" "${board}"
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
- return
- fi
-
- mv "../../../${configpath}/${board}/config" ".config"
- make menuconfig
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/grubreplace b/resources/scripts/helpers/build/config/grubreplace
deleted file mode 100755
index ba8d55b8..00000000
--- a/resources/scripts/helpers/build/config/grubreplace
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make menuconfig" on config(s) to replace them
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="grub"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Replacing or creating new config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- make menuconfig
-
- [ ! -d "../../../${configpath}/${board}/" ] && mkdir -p "../../../${configpath}/${board}/"
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/grubupdate b/resources/scripts/helpers/build/config/grubupdate
deleted file mode 100755
index e9d9719c..00000000
--- a/resources/scripts/helpers/build/config/grubupdate
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make oldconfig" on all coreboot config files
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="grub"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Updating config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- if [ ! -d "../../../${configpath}/${board}/" ]; then
- printf "build/config/grubupdate WARNING: config '%s' does not exist. Skipping.\n" "${board}"
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
- return
- fi
-
- mv "../../../${configpath}/${board}/config" ".config"
- make oldconfig
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/seabiosmodify b/resources/scripts/helpers/build/config/seabiosmodify
deleted file mode 100755
index 15f9ca48..00000000
--- a/resources/scripts/helpers/build/config/seabiosmodify
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: update the seabios config
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-(
-cd "seabios/"
-
-for cfgtype in config config_vga; do
-
- printf "doing config %s\n" "${cfgtype}"
- sleep 2
-
- if [ -f "../resources/seabios/config/${cfgtype}" ]; then
- cp "../resources/seabios/config/${cfgtype}" ".config"
- fi
-
- make menuconfig
-
- mv ".config" "../resources/seabios/config/${cfgtype}"
-
-done
-)
diff --git a/resources/scripts/helpers/build/config/seabiosrommodify b/resources/scripts/helpers/build/config/seabiosrommodify
deleted file mode 100755
index df58928e..00000000
--- a/resources/scripts/helpers/build/config/seabiosrommodify
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make menuconfig" on config(s) to modify them
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="seabios"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Modifying config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- if [ ! -d "../../../${configpath}/${board}/" ]; then
- printf "build/config/seabiosmodify WARNING: config '%s' does not exist. Skipping.\n" "${board}"
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
- return
- fi
-
- mv "../../../${configpath}/${board}/config" ".config"
- make menuconfig
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/seabiosromreplace b/resources/scripts/helpers/build/config/seabiosromreplace
deleted file mode 100755
index 75453553..00000000
--- a/resources/scripts/helpers/build/config/seabiosromreplace
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make menuconfig" on config(s) to replace them
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="seabios"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Replacing or creating new config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- make menuconfig
-
- [ ! -d "../../../${configpath}/${board}/" ] && mkdir -p "../../../${configpath}/${board}/"
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/seabiosromupdate b/resources/scripts/helpers/build/config/seabiosromupdate
deleted file mode 100755
index 1dc4673e..00000000
--- a/resources/scripts/helpers/build/config/seabiosromupdate
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: run "make oldconfig" on all coreboot config files
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-payload="seabios"
-configpath="resources/libreboot/config/${payload}"
-
-hackconfig () {
- board="${1}"
- cbrevision="$(cat ${configpath}/${board}/cbrevision)"
- vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
-(
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout ${payload}_${board}
- (
- cd "3rdparty/vboot/"
- git checkout ${payload}_${board}
- )
-
- printf "Updating config for %s (%s payload)\n" "${board}" "${payload}"
- sleep 2
-
- if [ ! -d "../../../${configpath}/${board}/" ]; then
- printf "build/config/seabiosupdate WARNING: config '%s' does not exist. Skipping.\n" "${board}"
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
- return
- fi
-
- mv "../../../${configpath}/${board}/config" ".config"
- make oldconfig
- mv ".config" "../../../${configpath}/${board}/config"
-
- git checkout master
- (
- cd "3rdparty/vboot/"
- git checkout master
- )
-)
-}
-
-if [ $# -lt 1 ]; then
- for config in ${configpath}/*; do hackconfig "${config##*/}"; done
-else
- for config in "${@}"; do hackconfig "${config}"; done
-fi
diff --git a/resources/scripts/helpers/build/config/seabiosupdate b/resources/scripts/helpers/build/config/seabiosupdate
deleted file mode 100755
index 17b0204b..00000000
--- a/resources/scripts/helpers/build/config/seabiosupdate
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: update the seabios config
-#
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-(
-cd seabios/
-
-for cfgtype in config config_vga; do
-
- printf "doing config %s\n" "${cfgtype}"
- sleep 2
-
- if [ -f ../resources/seabios/config/${cfgtype} ]; then
- cp ../resources/seabios/config/${cfgtype} .config
- make oldconfig
- mv .config ../resources/seabios/config/${cfgtype}
- fi
-
-done
-)
diff --git a/resources/scripts/helpers/build/dependencies/debian b/resources/scripts/helpers/build/dependencies/debian
deleted file mode 100755
index e5af8bab..00000000
--- a/resources/scripts/helpers/build/dependencies/debian
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/bin/bash
-
-# script: installs build dependencies for Debian
-#
-# 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-if [ $EUID -ne 0 ]; then
- printf "This script must be run as root\n"
- exit 1
-fi
-
-# Duplications are intentional. Please do not re-factor.
-#
-# This is so that they can moved to separate scripts.
-#
-
-apt-get -y install wget
-
-# For downloading source code
-# ------------------------------------------------------------
-
-apt-get -y install git
-
-# For building the documentation
-# ------------------------------------------------------------
-
-apt-get -y install pandoc texi2html texinfo texlive
-
-# For building source code:
-# ------------------------------------------------------------
-
-apt-get -y install build-essential
-
-# for cross-compiling ARM binaries
-apt-get -y install gcc-arm-linux-gnueabi || printf "debian stretch ftw\n"
-
-[ "$(uname -i)" = x86_64 ] || [ "$(uname -m)" = x86_64 ]
-arch=${?}
-
-# For cross-compiling i686 target on x86_64 host.
-if [ "${arch}" -eq 0 ]; then
- apt-get -y install gcc-multilib libc6-i386 libc6-dev-i386
- apt-get -y install lib32stdc++6 g++-multilib dh-autoreconf
- # recommended, but not sure what for:
- apt-get -y install lib32tinfo-dev texi2html
-fi
-
-# Memtest86+ build dependencies
-# ------------------------------------------------------------
-
-apt-get -y install build-essential
-
-# i945-pwm build dependencies
-# ------------------------------------------------------------
-
-apt-get -y install build-essential
-
-# Coreboot build dependencies (also requires build-essential and git)
-# ------------------------------------------------------------
-
-apt-get -y install libncurses5-dev doxygen iasl gdb flex bison build-essential git libssl-dev
-
-# For cross-compiling i686 target on x86_64 host.
-[ "${arch}" -eq 0 ] && apt-get -y install lib32ncurses5-dev
-
-# GRUB build dependencies (also requires build-essential, bison and flex)
-# ------------------------------------------------------------
-
-apt-get -y install ttf-unifont libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev libfont-freetype-perl automake autotools-dev build-essential bison flex libfuse-dev liblzma-dev gawk libdevmapper-dev libtool libfreetype6-dev
-
-# BucTS build dependencies (external script)
-# ------------------------------------------------------------
-
-apt-get -y install build-essential
-
-# Flashrom build dependencies (also requires build-essential)
-# ------------------------------------------------------------
-
-apt-get -y install libpci-dev pciutils zlib1g-dev libftdi-dev build-essential libusb-1.0-0-dev libusb-1.0
-
-# For cross-compiling i686 target on x86_64 host.
-[ "${arch}" -eq 0 ] && apt-get -y install lib32z1-dev
diff --git a/resources/scripts/helpers/build/dependencies/parabola b/resources/scripts/helpers/build/dependencies/parabola
deleted file mode 100755
index 5180c8cc..00000000
--- a/resources/scripts/helpers/build/dependencies/parabola
+++ /dev/null
@@ -1,110 +0,0 @@
-#!/bin/bash
-
-# helper script: installs build dependencies for Parabola
-
-# this script is based on the script for Debian
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# Copyright (C) 2015 Klemens Nanni <klemens@posteo.de>
-#
-# 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
-
-if [ $EUID -ne 0 ]; then
- printf "This script must be run as root\n"
- exit 1
-fi
-
-# Duplications are intentional. Please do not re-factor.
-#
-# This is so that they can moved to separate scripts.
-#
-
-pacman -S --needed wget
-
-# For downloading source code
-# ------------------------------------------------------------
-
-printf "Source Code: In order to download the it, git is needed\n"
-pacman -S --needed git
-
-# For building the documentation
-# ------------------------------------------------------------
-
-pacman -S --needed pandoc texi2html
-
-# For building source code:
-# ------------------------------------------------------------
-
-printf "Building Source Code: development packages\n"
-pacman -S --needed base-devel libstdc++5
-
-pacman -S arm-none-eabi-gcc
-
-pacman -S --needed libpciaccess
-
-[ "$(uname -i)" = x86_64 ] || [ "$(uname -m)" = x86_64 ]
-arch=${?}
-
-# For cross-compiling i686 target on x86_64 host.
-if [ "${arch}" -eq 0 ]; then
- printf "Cross-Compiling: You are running on 64-bit architecture, however 32-bit libraries are needed\n"
- pacman -Sl multilib &>/dev/null || (printf "You must enable the multilib repository in /etc/pacman.conf first\n"; exit 1)
- pacman -S --needed gcc-multilib gcc-libs-multilib lib32-libltdl lib32-libpciaccess lib32-libstdc++5 lib32-glibc lib32-fakeroot
-fi
-
-# Memtest86+ build dependencies
-# ------------------------------------------------------------
-
-# pacman -S --needed base-devel
-
-# i945-pwm build dependencies
-# ------------------------------------------------------------
-
-# pacman -S base-devel
-
-# Coreboot build dependencies (also requires build-essential and git)
-# ------------------------------------------------------------
-
-printf "Coreboot: Ncurses for menuconfig and a few other tools\n"
-pacman -S ncurses doxygen iasl gdb flex bison
-# pacman -S git base-devel
-
-# For cross-compiling i686 target on x86_64 host.
-if [ "${arch}" -eq 0 ]; then
- printf "Cross-Compiling: You are running on 64-bit architecture, however 32-bit libraries are needed\n"
- pacman -S --needed lib32-ncurses
-fi
-
-# GRUB2 build dependencies (also requires build-essential, bison and flex)
-# pacman -S --needed base-devel bison flex
-
-printf "GRUB: Fonts, (crypto) filesystem support, automake, etc.\n"
-pacman -S --needed autogen m4 autoconf help2man freetype2 automake fuse fuse-exfat xz gawk device-mapper libtool python
-pacman -S --needed bdf-unifont # trying this, otherwise there was an error. I'll try AUR if this won't work.
-
-# BucTS build dependencies (external script)
-# ------------------------------------------------------------
-
-# pacman -S --needed base-devel
-
-# Flashrom build dependencies (also requires build-essential)
-# ------------------------------------------------------------
-
-printf "Flashrom: Your external programmer will be most probably using PCI bus, FTDI chips need additional libraries\n"
-pacman -S --needed pciutils zlib libftdi libftdi-compat
-# pacman -S --needed base-devel
diff --git a/resources/scripts/helpers/build/module/bucts b/resources/scripts/helpers/build/module/bucts
deleted file mode 100755
index 152c3e30..00000000
--- a/resources/scripts/helpers/build/module/bucts
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/bash
-
-# helper script: builds bucts source code
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-if [ -z ${NPROC+x} ]; then
- cores="$(nproc)"
-else
- case ${NPROC} in
- ''|*[!0-9]*)
- printf "value '%s' for NPROC is invalid. non-numeric. Exiting.\n" "${NPROC}"
- exit 1
- ;;
- esac
- cores="${NPROC}"
-fi
-
-# Build BUC.TS utility (needed for flashing ROM images on X60/T60 while Lenovo BIOS is running)
-# --------------------------------------------------------------------
-
-printf "Building bucts\n"
-
-cd "bucts/"
-
-buildtype="unknown"
-if (( $# != 1 )); then
- buildtype="dynamic"
-else
- buildtype="static"
-fi
-
-if [ "${buildtype}" = "static" ]; then
- patch "Makefile" < "../resources/bucts/patch/staticlink.diff"
-fi
-
-make clean
-make -j${cores}
-
-if [ "${buildtype}" = "static" ]; then
- patch "Makefile" -R < "../resources/bucts/patch/staticlink.diff"
-fi
-
-# done. go back to main directory
-cd "../"
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot
deleted file mode 100755
index f934f003..00000000
--- a/resources/scripts/helpers/build/module/coreboot
+++ /dev/null
@@ -1,207 +0,0 @@
-#!/bin/bash
-
-# helper script: builds the dependencies that coreboot needs before building a ROM image
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-HOMEDIR=$(pwd)
-
-# Build utilities needed in coreboot directory
-# --------------------------------------------------------------------
-
-printf "Building the utilities in coreboot\n"
-
-# build coreboot utilities (in each revision) and
-# create symlinks to the crossgcc archive
-for payload in $HOMEDIR/coreboot/*; do
- for board in "${payload}/"*; do
-
- # cbfstool, cbmem, nvramtool
- for util in {cbfs,nvram}tool cbmem; do
- if [ "${util}" = "cbfstool" ]; then
- sed -i '/.*fmd_scanner.o.*-Wno-unused-function$/ s/$/ -Wno-sign-compare/' "${board}"/util/cbfstool/Makefile.inc
- fi
- make -BC "${board}/util/${util}"
- done
- # create symlink to crossgcc
- (
-
- ln -fs $HOMEDIR/crossgcc/util/crossgcc/ ${board}/util/crossgcc
- )
-
- done
-done
-
-for payloads in $HOMEDIR/resources/libreboot/config/*; do
-
- if [ ! -d "${payloads}/" ]; then
- continue
- fi
-
- payload="${payloads##*/}"
-
- for boardconfig in $HOMEDIR/resources/libreboot/config/${payload}/*; do
-
- if [ ! -d "${boardconfig}/" ]; then
- continue
- fi
-
- boardname="${boardconfig##*/}"
- cbrevision=$(cat "${boardconfig}/cbrevision")
- vbootrevision=$(cat "${boardconfig}/vbootrevision")
-
- reused_coreboot_patches="$HOMEDIR/resources/libreboot/patch/coreboot/${cbrevision}/${payload}/${boardname}/reused.list"
- reused_vboot_patches="$HOMEDIR/resources/libreboot/patch/vboot/${vbootrevision}/${payload}/${boardname}/reused.list"
- for reused_patches in "${reused_coreboot_patches}" "${reused_vboot_patches}"; do
- if [ -f "${reused_patches}" ]; then
- for patch in $(cat "${reused_patches}"); do
- if [ ! -f "./${patch}" ]; then
- printf "%s listed in %s does not exist\n" "${patch}" "${reused_patches}"
- exit 1
- fi
- done
- fi
- done
-
- done
-done
-
-# sanity check (check for invalid paths in the reused.list patch lists before proceeding)
-# in ascending filename order, apply patches from a directory
-apply_patches_from_directory() {
- patch_directory="${1}" # directory containing the patch files
-
- if [ -d "${patch_directory}" ]; then
- for patch in ${patch_directory}/*.patch; do
-
- if [ "${patch##*/}" = "*.patch" ]; then # oh so ugly
- continue # ugly ugly ugly ugly ugly
- fi # most hideous thing you've ever seen
-
- git am "${patch}" || continue
- done
- fi
-}
-# files listed in the file (if found) are absolute paths, relative to the root of the libreboot src directory
-# the file lists patches patches that should be applied
-apply_patches_from_file() {
- patch_list="${1}" # file listing the paths to all the patches
- libreboot_src_root="${2}" # path to the root of the libreboot_src directory
-
- if [ -f "${patch_list}" ]; then
- for patchname in $(cat "${patch_list}"); do
- git am "${libreboot_src_root}/${patchname}" || continue
- done
- fi
-}
-
-create_branch() {
- branchname="${1}"
- git branch ${branchname}
- git checkout ${branchname}
- git checkout master
-}
-
-# use git-init on everything
-# this is so that we can then apply patche
-# for these revisions of vboot and coreboot
-for i in $HOMEDIR/coreboot/*; do
- if [ ! -d "${i}/" ]; then
- continue
- fi
- for revision in ${i}/*; do
- if [ ! -d "${revision}/" ]; then
- continue
- fi
- (
- cd "${revision}/"
- rm -rf .git
- git init
- git add -A .
- git commit -m "coreboot revision ${revision##*/}"
- cd "3rdparty/vboot/"
- rm -rf .git
- git init
- git add -A .
- git commit -m "coreboot revision ${revision##*/}"
- )
- done
-done
-
-for payloads in $HOMEDIR/resources/libreboot/config/*; do
-
- if [ ! -d "${payloads}/" ]; then
- continue
- fi
-
- payload="${payloads##*/}"
-
- for boardconfig in $HOMEDIR/resources/libreboot/config/${payload}/*; do
-
- if [ ! -d "${boardconfig}/" ]; then
- continue
- fi
-
- boardname="${boardconfig##*/}"
- cbrevision=$(cat "${boardconfig}/cbrevision")
- vbootrevision=$(cat "${boardconfig}/vbootrevision")
- branchname="${payload}_${boardname}"
-
- # the same vboot revision is always used for coreboot revision,
- # so we don't need to wworry about checking for that here
-
- # patch that version
- (
-
- cd "$HOMEDIR/coreboot/${cbrevision}/${cbrevision}/"
- create_branch ${branchname}
-
- git checkout ${branchname}
-
- # apply patches (coreboot, common to all systems using this revision)
- apply_patches_from_directory "$HOMEDIR/resources/libreboot/patch/common/coreboot/${cbrevision}"
- # apply patches re-used from other boards, before applying main patches (common patches for similar boards)
- apply_patches_from_file "$HOMEDIR/resources/libreboot/patch/coreboot/${cbrevision}/${payload}/${boardname}/reused.list" ../../..
- # apply patches (coreboot, machine-specific for this revision)
- apply_patches_from_directory "$HOMEDIR/resources/libreboot/patch/coreboot/${cbrevision}/${payload}/${boardname}"
-
- git checkout master
-
- cd "3rdparty/vboot/"
- # reset to known revision (vboot)
- create_branch ${branchname}
-
- git checkout ${branchname}
-
- # apply patches (vboot, common to all systems using this revision)
- apply_patches_from_directory "$HOMEDIR/resources/libreboot/patch/common/vboot/${vbootrevision}"
- # apply patches re-used from other boards, before applying main patches (common patches for similar boards)
- apply_patches_from_file "$HOMEDIR/resources/libreboot/patch/vboot/${vbootrevision}/${payload}/${boardname}/reused.list" ../../../../..
- # apply patches (vboot, machine-specific for this revision)
- apply_patches_from_directory "$HOMEDIR/resources/libreboot/patch/vboot/${vbootrevision}/${payload}/${boardname}"
-
- git checkout master
-
- )
- done
-done
diff --git a/resources/scripts/helpers/build/module/crossgcc b/resources/scripts/helpers/build/module/crossgcc
deleted file mode 100755
index a88427fe..00000000
--- a/resources/scripts/helpers/build/module/crossgcc
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-# helper script: builds crossgcc, needed by coreboot's build system
-#
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-if [ -z ${NPROC+x} ]; then
- cores="$(nproc)"
-else
- case ${NPROC} in
- ''|*[!0-9]*)
- printf "value '%s' for NPROC is invalid. non-numeric. Exiting.\n" "${NPROC}"
- exit 1
- ;;
- esac
- cores="${NPROC}"
-fi
-
-(
-cd "crossgcc/"
-for architecture in i386 arm; do
- make crossgcc-${architecture} CPUS=${cores}
-done
-)
-
diff --git a/resources/scripts/helpers/build/module/flashrom b/resources/scripts/helpers/build/module/flashrom
deleted file mode 100755
index 7ed79fcd..00000000
--- a/resources/scripts/helpers/build/module/flashrom
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/bash
-
-# helper script: builds flashrom source code
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-if [ -z ${NPROC+x} ]; then
- cores="$(nproc)"
-else
- case ${NPROC} in
- ''|*[!0-9]*)
- printf "value '%s' for NPROC is invalid. non-numeric. Exiting.\n" "${NPROC}"
- exit 1
- ;;
- esac
- cores="${NPROC}"
-fi
-
-# Build "flashrom" (utility for flashing/dumping ROMs)
-# --------------------------------------------------------------------
-
-printf "Building flashrom\n"
-
-cd "flashrom/"
-
-make clean
-if (( $# != 1 )); then
- make -j${cores}
-else
- if [ "${1}" = "static" ]; then
- make SHARED=0 CC='gcc -static' -j${cores} CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no
- else
- make -j${cores} CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no
- fi
-fi
-
-mv "flashrom" "flashrom_normal"
-
-# build patched binaries for MX25L1605D and SST25VF016B flash chips
-# - these patches are needed for initial installation on an X60 or T60
-# - these patches are for people who have lenovo bios running
-for patchname in "lenovobios_macronix" "lenovobios_sst"
-do
- # first remove the existing build
- rm -f "flashrom_${patchname}"
-
- # backup the unpatched flashchips.c (it will be patched)
- cp "flashchips.c" "flashchips.c_"
- # patch flashchips.c
- patch "flashchips.c" < "../resources/flashrom/patch/${patchname}.diff"
-
- make clean
- if (( $# != 1 )); then
- make -j${cores} CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no
- else
- if [ "${1}" = "static" ]; then
- make SHARED=0 CC='gcc -static' -j${cores} CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no
- else
- make -j${cores} CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no
- fi
- fi
-
- # Rename the binary based on the patch name
- mv "flashrom" "flashrom_${patchname}"
-
- # restore unpatched flashchips.c
- rm -f "flashchips.c"
- mv "flashchips.c_" "flashchips.c"
-done
-
-mv "flashrom_normal" "flashrom"
-
-cd "../"
diff --git a/resources/scripts/helpers/build/module/grub b/resources/scripts/helpers/build/module/grub
deleted file mode 100755
index c663777c..00000000
--- a/resources/scripts/helpers/build/module/grub
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-# helper script: builds GRUB2 source code
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# Copyright (C) 2015, 2016 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-if [ -z ${NPROC+x} ]; then
- cores="$(nproc)"
-else
- case ${NPROC} in
- ''|*[!0-9]*)
- printf "value '%s' for NPROC is invalid. non-numeric. Exiting.\n" "${NPROC}"
- exit 1
- ;;
- esac
- cores="${NPROC}"
-fi
-
-# Build GRUB2 as coreboot payload
-
-printf "Building GRUB\n"
-
-# use a subshell to not end up in grub/ in case of build issues
-(
-cd grub/
-
-# clean up first
-[ -d Makefile ] && make distclean
-
-# build
-./autogen.sh
-./configure --with-platform=coreboot
-make -j${cores}
-)
-
-# Also build SeaBIOS, which we use with GRUB to make SeaGRUB
-./build module seabios
diff --git a/resources/scripts/helpers/build/module/i945pwm b/resources/scripts/helpers/build/module/i945pwm
deleted file mode 100755
index 730d8e69..00000000
--- a/resources/scripts/helpers/build/module/i945pwm
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-# helper script: builds i945-pwm source code
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# Build i945-pwm utility
-# --------------------------------------------------------------------
-
-printf "Building i945-pwm\n"
-
-cd "resources/utilities/i945-pwm/"
-
-make clean
-# build it
-make
-
-# done. go back to main directory
-cd "../../../"
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/module/ich9deblob b/resources/scripts/helpers/build/module/ich9deblob
deleted file mode 100755
index 255e22bc..00000000
--- a/resources/scripts/helpers/build/module/ich9deblob
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-# helper script: builds ich9deblob source code
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# Build ich9deblob utility
-# --------------------------------------------------------------------
-
-printf "Building ich9deblob\n"
-
-cd "resources/utilities/ich9deblob/"
-
-# clean it first
-make clean
-
-# build ich9deblob
-make
-
-# done. go back to main directory
-cd "../../../"
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/module/memtest86plus b/resources/scripts/helpers/build/module/memtest86plus
deleted file mode 100755
index db664457..00000000
--- a/resources/scripts/helpers/build/module/memtest86plus
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# helper script: builds memtest86+ source code
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# Build MemTest86+ payload
-# --------------------------------------------------------------------
-
-printf "Building MemTest86+\n"
-
-make -BC memtest86plus
diff --git a/resources/scripts/helpers/build/module/seabios b/resources/scripts/helpers/build/module/seabios
deleted file mode 100755
index 2dd436c2..00000000
--- a/resources/scripts/helpers/build/module/seabios
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-
-# helper script: builds SeaBIOS source code
-#
-# Copyright (C) 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 git
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-# Build SeaBIOS
-# ---------------------------------------------------------------------
-
-printf "Building SeaBIOS\n"
-
-cd seabios/
-
-cp ../resources/seabios/config/config .config
-
-# clean it first
-[[ -f Makefile ]] && make clean
-
-# build SeaBIOS
-make
-
-mv "out/bios.bin.elf" ../
-
-printf "\n\n"
-
-rm -f .config
-
-make distclean
-
-cp ../resources/seabios/config/config_vga .config
-
-make
-rm -f .config
-
-mv out/bios.bin.elf out/bios.bin.vga.elf
-mv ../bios.bin.elf out/
-
-# done. go back to main directory
-cd ../
-
-# ------------------- DONE ----------------------
diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms
deleted file mode 100755
index a731d1d6..00000000
--- a/resources/scripts/helpers/build/release/roms
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: generate the ROM image release archives
-#
-# Copyright (C) 2015 Leah Rowe <info@minifree.org>
-# Copyright (C) 2015 Patrick "P. J." McDermott <pj@pehjota.net>
-#
-# 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
-
-if [ ! -d bin/ ]; then
- printf "build/release/roms: no bin/ directory exists. (you haven't built any images)\n"
- exit 1
-fi
-
-if [ -f "version" ]; then
- # _src release archive is being used
- version="$(cat version)"
- versiondate="$(cat versiondate)"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)"
- versiondate="$(git show -s --format=%ct)"
-fi
-versiondir="release/${version}"
-romdir="${versiondir}/rom"
-distname="libreboot_${version}"
-
-printf 'Building ROM image release archives for...\n'
-
-cd "bin/"
-
-for payload in *; do
-
- [ ! -d "../${romdir}/${payload}/" ] && mkdir -p "../${romdir}/${payload}/"
-
- cd "${payload}/"
-
- for board in *; do
-
- archivename="${distname}_${payload}_${board}"
-
- printf '...%s' "${payload}/${board}"
-
- # Delete the old archive
- rm -f "../../${romdir}/${payload}/${distname}_${board}.tar.xz"
-
- cp -R "${board}/" "${archivename}/"
-
- # this has to be done before generating
- # the "version" file
- if [ ! -f "version" ]; then
- # generate ChangeLog and NEWS files
- rm -f "ChangeLog" "NEWS"
- git log > "${archivename}/ChangeLog"
- cp "${archivename}/ChangeLog" "${archivename}/NEWS"
- else
- # building from release archive
- cp "ChangeLog" "${archivename}/"
- cp "NEWS" "${archivename}/"
- fi
-
- if [ -f "../../RELEASE" ]; then
- rm -f "${archivename}/ChangeLog"
- rm -f "${archivename}/NEWS"
- cp "../../RELEASE" "${archivename}/ChangeLog"
- cp "../../RELEASE" "${archivename}/NEWS"
- fi
-
- # Put the version string in the archive.
- printf '%s\n' "${version}" >"${archivename}/version"
- # Put the version date string in the archive
- printf '%s\n' "${versiondate}" >"${archivename}/versiondate"
-
- # Create the compressed archive.
- tar -c "${archivename}/" | xz -9e >"../../${romdir}/${payload}/${archivename}.tar.xz"
-
- rm -Rf "${archivename:?}/"
-
- printf ' OK\n'
-
- done
-
- cd "../"
-
-done
-
-cd "../"
-
-printf 'ROM image release archives are stored in %s/\n' "${romdir}"
diff --git a/resources/scripts/helpers/build/release/sha512sums b/resources/scripts/helpers/build/release/sha512sums
deleted file mode 100755
index 1b4621f9..00000000
--- a/resources/scripts/helpers/build/release/sha512sums
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: create sha512sum file for the current snapshot
-#
-# Copyright (C) 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-if [ -f "version" ]; then
- # _src release archive is being used
- version="$(cat version)"
- versiondate="$(cat versiondate)"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)"
- versiondate="$(git show -s --format=%ct)"
-fi
-versiondir="release/${version}"
-sha512filename="SHA512SUMS"
-sha512filepath="${versiondir}/${sha512filename}"
-
-if [ ! -d "${versiondir}/" ]; then
-
- printf "build/release/sha512sums: directory %s/ does not exist. You haven't generated any archives yet.\n" "${versiondir}"
- exit 1
-
-fi
-
-# delete the old file
-rm -f "${sha512filepath}"
-
-# create sha512sum file
-printf "Creating list of SHA512 sums in %s...\n" "${sha512filepath}"
-(cd "${versiondir}/" && for file in $(find -type f); do sha512sum "${file}" >> "${sha512filename}"; done)
-printf "...done.\n"
-
-printf "\n"
diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src
deleted file mode 100755
index d224fb51..00000000
--- a/resources/scripts/helpers/build/release/src
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: generate the source release archive
-#
-# Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
-# Copyright (C) 2015 Patrick "P. J." McDermott <pj@pehjota.net>
-#
-# 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
-
-printf 'Building the source release archive\n'
-
-if [ -f "version" ]; then
- # _src release archive is being used
- version="$(cat version)"
- versiondate="$(cat versiondate)"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)"
- versiondate="$(git show -s --format=%ct)"
-fi
-versiondir="release/${version}"
-distname="libreboot_${version}_src"
-distdir="${versiondir}/${distname}"
-
-printf 'Deleting old source release archives\n'
-rm -f "${distdir}.tar.xz"
-rm -Rf "${distdir:?}/"
-
-mkdir -p "${distdir}/"
-
-printf 'Copying sources to %s/\n' "${distdir}"
-for resource in *; do
- if [ "${resource}" = "release" ]; then
- continue
- fi
- cp -R "${resource}" "${distdir}/"
-done
-
-# this has to be done before generating
-# the "version" file
-if [ ! -f "version" ]; then
- # generate ChangeLog and NEWS files
- rm -f "ChangeLog" "NEWS"
- git log > "${distdir}/ChangeLog"
- cp "${distdir}/ChangeLog" "${distdir}/NEWS"
-else
- # building from release archive
- cp "ChangeLog" "${distdir}/"
- cp "NEWS" "${distdir}/"
-fi
-
-if [ -f "RELEASE" ]; then
- rm -f "${distdir}/ChangeLog"
- rm -f "${distdir}/NEWS"
- cp "RELEASE" "${distdir}/ChangeLog"
- cp "RELEASE" "${distdir}/NEWS"
-fi
-
-# include version information
-printf '%s\n' "${version}" >"${distdir}/version"
-# include version date information
-printf '%s\n' "${versiondate}" >"${distdir}/versiondate"
-
-printf 'Cleaning files in %s/\n' "${distdir}"
-
-# Clean old builds.
-(cd "${distdir}/" && ./build clean all)
-printf '\n'
-
-# Delete Git repositories and properties and Subversion administrative
-# directories and properties.
-rm -Rf "${distdir}/bucts/".git*
-rm -Rf "${distdir}/flashrom/".git*
-rm -Rf "${distdir}/grub/".git*
-rm -Rf "${distdir}/depthcharge/".git*
-rm -Rf "${distdir}/seabios/".git*
-
-rm -f "${distdir}"/*.vim
-
-# Delete useless files.
-rm -Rf "${distdir}/TODO/"
-rm -f "${distdir}/push"
-
-# Delete the deblob scripts.
-# Since the source archive doesn't distribute the download scripts and already
-# comes with a deblobbed coreboot, the deblobbing scripts aren't needed at all.
-rm -Rf "${distdir}/resources/utilities/coreboot-libre/"
-
-# Download scripts not needed, because the modules already exist
-# in the src release archive
-rm -f "${distdir}/download"
-rm -Rf "${distdir}/resources/scripts/helpers/download/"
-
-# Other patches aren't needed in the release, either
-rm -Rf "${distdir}/resources/depthcharge/patch/"
-rm -Rf "${distdir}/resources/grub/patch/"
-rm -Rf "${distdir}/resources/memtest86plus/patch/"
-
-# ich9deblob: There are certain files in there that the user most likely does
-# not want to share.
-rm -f "${distdir}/resources/utilities/ich9deblob/"*.bin
-rm -f "${distdir}/resources/utilities/ich9deblob/"*.rom
-rm -f "${distdir}/resources/utilities/ich9deblob/mk"*.[ch]
-rm -f "${distdir}/mk"*.[ch]
-rm -f "${distdir}/"*.bin
-rm -f "${distdir}/"*.rom
-
-# Remove any GRUB payload ELF executables that may exist
-rm -f "${distdir}/resources/utilities/grub-assemble/grub_txtmode.elf"
-rm -f "${distdir}/resources/utilities/grub-assemble/grub_vesafb.elf"
-
-printf 'Creating %s.tar.xz\n' "${distdir}"
-(cd "${versiondir}/" && tar -c "${distname}/" | xz -9e >"${distname}.tar.xz")
-
-rm -Rf "${distdir:?}/"
-
-printf 'Source release archive is stored in %s/\n' "${versiondir}"
diff --git a/resources/scripts/helpers/build/release/tobuild b/resources/scripts/helpers/build/release/tobuild
deleted file mode 100755
index 5b7890e2..00000000
--- a/resources/scripts/helpers/build/release/tobuild
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/bin/bash
-
-# helper: prepare a small source archive for those utils
-# that don't easily cross-compile. Then the tarball can be extracted
-# on those systems with the target architecture, and compiled.
-#
-# 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-if [ -f "version" ]; then
- # _src release archive is being used
- version="$(cat version)"
- versiondate="$(cat versiondate)"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)"
- versiondate="$(git show -s --format=%ct)"
-fi
-versiondir="release/${version}"
-distname="libreboot_${version}_tobuild"
-distdir="${versiondir}/${distname}"
-
-printf "Creating source archive for flashrom and bucts\n"
-
-# delete the old data
-rm -Rf "${distdir:?}/"
-rm -f "${distdir}.tar.xz"
-
-# this is where they will go
-mkdir -p "${distdir}/"
-
-# flashrom
-cp -R "flashrom/" "${distdir}/"
-rm -f "${distdir}/flashrom/flashrom_lenovobios_sst"
-rm -f "${distdir}/flashrom/flashrom_lenovobios_macronix"
-(cd "${distdir}/flashrom/" && make clean)
-mkdir -p "${distdir}/resources/flashrom/"
-cp -R "resources/flashrom/patch/" "${distdir}/resources/flashrom/"
-
-# bucts
-cp -R "bucts/" "${distdir}/"
-(cd "${distdir}/bucts/" && make clean)
-mkdir -p "${distdir}/resources/bucts/"
-cp -R "resources/bucts/patch/" "${distdir}/resources/bucts/"
-
-# the build script will be needed
-cp build "${distdir}/"
-# needed build scripts (helpers)
-mkdir -p "${distdir}/resources/scripts/helpers/build/"
-mkdir -p "${distdir}/resources/scripts/helpers/build/module/"
-mkdir -p "${distdir}/resources/scripts/helpers/build/clean/"
-cp "resources/scripts/helpers/build/clean/bucts" "${distdir}/resources/scripts/helpers/build/clean/"
-cp "resources/scripts/helpers/build/clean/flashrom" "${distdir}/resources/scripts/helpers/build/clean/"
-cp "resources/scripts/helpers/build/module/bucts" "${distdir}/resources/scripts/helpers/build/module/"
-cp "resources/scripts/helpers/build/module/flashrom" "${distdir}/resources/scripts/helpers/build/module/"
-cp "resources/scripts/misc/powertop.debian" "${distdir}/"
-
-# this has to be done before generating
-# the "version" file
-if [ ! -f "version" ]; then
- # generate ChangeLog and NEWS files
- rm -f "ChangeLog" "NEWS"
- git log > "${distdir}/ChangeLog"
- cp "${distdir}/ChangeLog" "${distdir}/NEWS"
-else
- # building from release archive
- cp "ChangeLog" "${distdir}/"
- cp "NEWS" "${distdir}/"
-fi
-
-if [ -f "RELEASE" ]; then
- rm -f "${distdir}/ChangeLog"
- rm -f "${distdir}/NEWS"
- cp "RELEASE" "${distdir}/ChangeLog"
- cp "RELEASE" "${distdir}/NEWS"
-fi
-
-# include version information
-printf '%s\n' "${version}" >"${distdir}/version"
-# include version date information
-printf '%s\n' "${versiondate}" >"${distdir}/versiondate"
-
-# that is all. now tar it up
-(cd "${versiondir}/" && tar -c "${distname}/" | xz -9e >"${distname}.tar.xz")
-
-# and delete the directory
-rm -Rf "${distdir:?}/"
-
-printf "\n"
-printf "Tar archive created: %s\n" "${distdir}.tar.xz"
-printf "NOTE: don't forget to add ARM binaries for flashrom.\n"
-printf "NOTE: don't forget to add i386 binaries for flashrom/bucts.\n"
-printf "The archive %s.tar.xz has been created with everything needed to build these utilities.\n\n" "${distname}"
diff --git a/resources/scripts/helpers/build/release/util b/resources/scripts/helpers/build/release/util
deleted file mode 100755
index a6d3fa62..00000000
--- a/resources/scripts/helpers/build/release/util
+++ /dev/null
@@ -1,250 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: generate the release archives
-#
-# 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 current working directory when running
-# it is the root directory of the libreboot git repository clone.
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-arch="unknown"
-if [ "$(uname -i)" = "i686" ] || [ "$(uname -m)" = "i686" ]
- then
- arch="i686"
- echo "Running on i686. ok."
- sleep 2
-elif [ "$(uname -i)" = "x86_64" ] || [ "$(uname -m)" = "x86_64" ]
- then
- arch="x86_64"
- echo "Running on x86_64. ok."
- sleep 2
-else
- echo "This script must be run on an i686 or x86_64 host. x86_64 is recommended."
- exit 1
-fi
-
-if [ -f "version" ]; then
- # _src release archive is being used
- version="$(cat version)"
- versiondate="$(cat versiondate)"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)"
- versiondate="$(git show -s --format=%ct)"
-fi
-versiondir="release/${version}"
-distname="libreboot_${version}_util"
-distdir="${versiondir}/${distname}"
-
-printf "Creating utility archive (static executables)\n"
-
-# delete the old data
-rm -Rf "${distdir:?}/"
-rm -f "${distdir}.tar.xz"
-
-# this is where they will go
-mkdir -p "${distdir}/"
-
-# this has to be done before generating
-# the "version" file
-if [ ! -f "version" ]; then
- # generate ChangeLog and NEWS files
- rm -f "ChangeLog" "NEWS"
- git log > "${distdir}/ChangeLog"
- cp "${distdir}/ChangeLog" "${distdir}/NEWS"
-else
- # building from release archive
- cp "ChangeLog" "${distdir}/"
- cp "NEWS" "${distdir}/"
-fi
-
-if [ -f "RELEASE" ]; then
- rm -f "${distdir}/ChangeLog"
- rm -f "${distdir}/NEWS"
- cp "RELEASE" "${distdir}/ChangeLog"
- cp "RELEASE" "${distdir}/NEWS"
-fi
-
-# include version information
-printf '%s\n' "${version}" >"${distdir}/version"
-# include version date information
-printf '%s\n' "${versiondate}" >"${distdir}/versiondate"
-
-# --------------
-# BUC.TS related
-# --------------
-# X60/T60: BUC.TS utility is needed to flash libreboot while Lenovo BIOS is running
-# Include it statically compiled
-cp -R "bucts" "bucts_/"
-# make it statically compile
-./build module bucts static
-mkdir -p "${distdir}/bucts/${arch}/"
-mv "bucts/bucts" "${distdir}/bucts/${arch}/"
-rm -Rf "bucts/"
-mv "bucts_/" "bucts/"
-
-# ----------------
-# Flashrom related
-# ----------------
-# Flashrom is used to install libreboot on supported targets
-# Include it statically compiled
-cp -R "flashrom/" "flashrom_/"
-# make it statically compile
-./build module flashrom static
-mkdir -p "${distdir}/flashrom/${arch}/"
-mv "flashrom/flashrom" "${distdir}/flashrom/${arch}/"
-mv "flashrom/flashrom_lenovobios_sst" "${distdir}/flashrom/${arch}/"
-mv "flashrom/flashrom_lenovobios_macronix" "${distdir}/flashrom/${arch}/"
-rm -Rf "flashrom/"
-mv "flashrom_/" "flashrom/"
-
- # ----------------
-# cbfstool related
-# ----------------
-# build cbfstool, compiled (statically linked) and include the binary
-
-mkdir -p "${distdir}/cbfstool/${arch}/"
-
-cd "crossgcc/util/"
-cp -R "cbfstool" "cbfstool_/"
-cd "cbfstool/"
-sed -i '/.*fmd_scanner.o.*-Wno-unused-function$/ s/$/ -Wno-sign-compare/' Makefile.inc # build fix for latest flex version
-make clean
-make SHARED=0 CC='gcc -static'
-
-mv "cbfstool" "../../../${distdir}/cbfstool/${arch}/"
-
-if [ "${arch}" = "x86_64" ]
- then
- # Now build 32-bit binaries
- make clean
- make SHARED=0 CC='gcc -static -m32'
- mkdir "../../../${distdir}/cbfstool/i686"
- mv "cbfstool" "../../../${distdir}/cbfstool/i686/"
-fi
-
-# cross-compile for ARM
-make clean
-make SHARED=0 CC='arm-linux-gnueabi-gcc -static'
-mkdir "../../../${distdir}/cbfstool/armv7l/"
-mv "cbfstool" "../../../${distdir}/cbfstool/armv7l/"
-
-cd ../
-rm -Rf "cbfstool/"
-mv "cbfstool_/" "cbfstool/"
-cd ../../
-
-
-# ----------------
-# ich9deblob related
-# ----------------
-# build ich9deblob, compiled (statically linked) and include the binary
-
-mkdir -p "${distdir}/ich9deblob/${arch}"
-
-cd "resources/utilities/"
-cp -R "ich9deblob" "ich9deblob_/"
-cd "ich9deblob/"
-make clean
-make SHARED=0 CC='gcc -static'
-
-mv "ich9deblob" "../../../${distdir}/ich9deblob/${arch}/"
-mv "ich9gen" "../../../${distdir}/ich9deblob/${arch}/"
-mv "demefactory" "../../../${distdir}/ich9deblob/${arch}/"
-
-if [ "${arch}" = "x86_64" ]
- then
- # Now build 32-bit binaries
- make clean
- make SHARED=0 CC='gcc -static -m32'
- mkdir "../../../${distdir}/ich9deblob/i686/"
- mv "ich9deblob" "../../../${distdir}/ich9deblob/i686/"
- mv "ich9gen" "../../../${distdir}/ich9deblob/i686/"
- mv "demefactory" "../../../${distdir}/ich9deblob/i686/"
-fi
-
-# cross-compile for ARM
-make clean
-make SHARED=0 CC='arm-linux-gnueabi-gcc -static'
-mkdir "../../../${distdir}/ich9deblob/armv7l"
-mv "ich9deblob" "../../../${distdir}/ich9deblob/armv7l/"
-mv "ich9gen" "../../../${distdir}/ich9deblob/armv7l/"
-mv "demefactory" "../../../${distdir}/ich9deblob/armv7l/"
-
-cd "../"
-rm -Rf "ich9deblob/"
-mv "ich9deblob_/" "ich9deblob/"
-cd "../../"
-
-# -----------------
-# nvramtool related
-# -----------------
-# build nvramtool, compiled (statically linked) and include the binary
-cd "crossgcc/util/"
-cp -R "nvramtool/" "nvramtool_/"
-cd "nvramtool/"
-make clean
-make SHARED=0 CC='gcc -static'
-
-mkdir -p "../../../${distdir}/nvramtool/${arch}/"
-
-mv "nvramtool" "../../../${distdir}/nvramtool/${arch}/"
-
-if [ "${arch}" = "x86_64" ]
- then
- # Now build 32-bit binaries
- make clean
- make SHARED=0 CC='gcc -static -m32'
- mkdir "../../../${distdir}/nvramtool/i686/"
- mv "nvramtool" "../../../${distdir}/nvramtool/i686/"
-fi
-
-cd "../"
-rm -Rf "nvramtool/"
-mv "nvramtool_/" "nvramtool/"
-cd "../../"
-
-# -------------
-# Miscellaneous
-# -------------
-
-# Flashing script
-cp "flash" "${distdir}/"
-
-# powertop script
-cp "resources/scripts/misc/powertop.debian" "${distdir}/"
-
-printf "\n\n"
-
-# ### Create the release tarballs
-# ----------------------------------------------------------------------------------------------------------------------------
-
-printf "Compressing %s/ into %s.tar.xz\n" "${distdir}" "${distdir}.tar.xz"
-# create lzma compressed util archive
-(cd "${versiondir}/" && tar -c "${distname}/" | xz -9e >"${distname}.tar.xz")
-
-printf "done\n\n"
-
-# ### Delete the uncompressed release directories
-# ----------------------------------------------------------------------------------------------------------------------------
-
-# The uncompressed archives are no longer needed
-rm -Rf "${distdir:?}/"
diff --git a/resources/scripts/helpers/build/roms/withdepthcharge b/resources/scripts/helpers/build/roms/withdepthcharge
deleted file mode 100755
index 1df97a23..00000000
--- a/resources/scripts/helpers/build/roms/withdepthcharge
+++ /dev/null
@@ -1,207 +0,0 @@
-#!/bin/bash
-
-# helper script: build ROM images with depthcharge and put them in ./bin/
-#
-# 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 [ -z ${NPROC+x} ]; then
- cores="$(nproc)"
-else
- case ${NPROC} in
- ''|*[!0-9]*)
- printf "value '%s' for NPROC is invalid. non-numeric. Exiting.\n" "${NPROC}"
- exit 1
- ;;
- esac
- cores="${NPROC}"
-fi
-
-printf "Building ROM images with the depthcharge payload\n"
-
-if [ ! -d "bin/" ]
-then
- mkdir "bin/"
-fi
-
-if [ -f "version" ]; then
- # _src release archive is being used
- version="$(cat "version")"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)" # note: in libreboot, coreboot/.git doesn't exist, this uses libreboot .git
-fi
-
-# Build libpayload
-# ------------------------------------------------------------------------------
-
-buildlibpayload() {
- family="${1}"
- board="${2}"
- cbrevision="${3}"
- vbootrevision="${4}"
-
- (
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout depthcharge_${board}
-
- (
- cd "3rdparty/vboot/"
- git checkout depthcharge_${board}
- )
-
- cd "payloads/libpayload/"
-
- make distclean
- rm -Rf "install/"
-
- make KBUILD_DEFCONFIG="configs/config.$family" defconfig
- make -j${cores}
- make DESTDIR="install" install
-
- cd "../../"
- git checkout master
- cd "3rdparty/vboot/"
- git checkout master
- )
-}
-
-# Build depthcharge
-# ------------------------------------------------------------------------------
-
-builddepthcharge() {
- board="${1}"
- cbrevision="${2}"
- vbootrevision="${3}"
-
- (
- (
- cd "coreboot/${cbrevision}/${cbrevision}/"
- git checkout depthcharge_${board}
-
- cd "3rdparty/vboot/"
- git checkout depthcharge_${board}
- )
-
- cd "depthcharge/"
-
- make distclean
- rm -f "../coreboot/${cbrevision:?}/${cbrevision:?}/payload.elf"
-
- make BOARD="${board}" defconfig
- make BOARD="${board}" LIBPAYLOAD_DIR="$(pwd)/../coreboot/${cbrevision}/${cbrevision}/payloads/libpayload/install/libpayload" VB_SOURCE="$(pwd)/../coreboot/${cbrevision}/${cbrevision}/3rdparty/vboot" -j${cores} depthcharge_unified
-
- cp "build/depthcharge.elf" "../coreboot/${cbrevision}/${cbrevision}/payload.elf"
-
- cd "../coreboot/${cbrevision}/${cbrevision}/"
- git checkout master
-
- cd "3rdparty/vboot/"
- git checkout master
- )
-}
-
-# Build coreboot
-# ------------------------------------------------------------------------------
-
-buildcoreboot() {
- board="${1}"
- cbrevision="${2}"
- vbootrevision="${3}"
-
- (
- cd "coreboot/${cbrevision}/${cbrevision}"
- git checkout depthcharge_${board}
-
- (
- cd "3rdparty/vboot/"
- git checkout depthcharge_${board}
- )
-
- make distclean
- rm -f ".coreboot-version"
- rm -f *.img
-
- printf 'libreboot-%s' "${version}" > "ro-frid"
- printf 'libreboot-%s\n' "${version}" > ".coreboot-version" # needed for reproducible builds in coreboot
-
- make KBUILD_DEFCONFIG="$(pwd)/../../../resources/libreboot/config/depthcharge/${board}/config" defconfig
- make -j${cores}
-
- cbfs_size=$( grep CONFIG_CBFS_SIZE ".config" | sed "s/.*[[:space:]]*=[[:space:]]*//g" )
- cbfs_size=$( printf "%d\n" "${cbfs_size}" )
- cbfs_size=$(( $cbfs_size / 1024 ))
-
- dd if="build/coreboot.rom" of="coreboot.img" bs=1024 count="${cbfs_size}"
-
- objcopy -I binary -O binary --pad-to=0x100 --gap-fill=0x00 "ro-frid" "ro-frid.img"
-
- # prepare directory for new images
- rm -Rf "${board:?}/"
- mkdir "${board}/"
- # move the images into the newly created directory
- mv "coreboot.img" "${board}/"
- mv "ro-frid.img" "${board}/"
- # copy the scripts too
- cp "../../../resources/libreboot/install/depthcharge/cros-flash-replace" "${board}/"
- cp "../../../resources/libreboot/install/depthcharge/${board}/layout.txt" "${board}/"
- # delete the old images from ../bin
- rm -Rf "../../../bin/depthcharge/${board}/"
- # now put the new images in ./bin/depthcharge/
- [ ! -d "../../../bin/depthcharge/" ] && mkdir -p "../../../bin/depthcharge/"
- mv "${board}/" "../../../bin/depthcharge/"
-
- # clean this up
- rm -f "payload.elf"
- rm -f *.img
-
- git checkout master
-
- cd "3rdparty/vboot/"
- git checkout master
- )
-}
-
-# Build ROM images for supported boards
-buildrom() {
- board="${1}"
- cbrevision="$(cat resources/libreboot/config/depthcharge/${board}/cbrevision)"
- vbootrevision="$(cat resources/libreboot/config/depthcharge/${board}/vbootrevision)"
-
- if [ -f "resources/libreboot/config/depthcharge/${board}/config" ]; then
- family=$( echo ${board} |sed "s/_.*//g" )
-
- buildlibpayload "${family}" "${board}" "${cbrevision}" "${vbootrevision}"
- builddepthcharge "${board}" "${cbrevision}" "${vbootrevision}"
- buildcoreboot "${board}" "${cbrevision}" "${vbootrevision}"
- fi
-}
-
-if [ $# -gt 0 ]; then
- for board in "${@}"; do
- buildrom "${board}"
- done
-else
- for board in resources/libreboot/config/depthcharge/*; do
- buildrom "${board##*/}"
- done
-fi
diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub
deleted file mode 100755
index be2fbc49..00000000
--- a/resources/scripts/helpers/build/roms/withgrub
+++ /dev/null
@@ -1,125 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: build ROM images with SeaGRUB and put them in ./bin/
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-printf "Building ROM images with the GRUB payload\n"
-
-# The GRUB files should be deleted first
-rm -f "coreboot/grub"*.{elf,cfg}
-rm -f "coreboot/"*/*/grub*.{elf,cfg}
-
-[ -d bin ] || mkdir "bin/"
-
-# Put GRUB payloads and config files
-# in the coreboot directory, ready for next step
-(
-cd "coreboot/"
-for romtype in txtmode vesafb; do
- cd ../resources/utilities/grub-assemble
- ./gen.sh ${romtype}
- rm -f "../../../coreboot/grub_${romtype}.elf"
- mv "grub_${romtype}.elf" "../../../coreboot/"
- cd "../../../coreboot"
-
- # GRUB configuration files
- for keylayout in ../resources/utilities/grub-assemble/keymap/original/*; do
- keymap="${keylayout##*/}"
- cat ../resources/grub/config/extra/{common,"${romtype}"}.cfg > "grub_${keymap}_${romtype}.cfg"
- printf "keymap %s\n" "${keymap}" >> "grub_${keymap}_${romtype}.cfg"
- cat ../resources/grub/config/menuentries/{common,"${romtype}"}.cfg >> "grub_${keymap}_${romtype}.cfg"
- # grubtest.cfg should be able to switch back to grub.cfg
- sed "s/grubtest.cfg/grub.cfg/" < "grub_${keymap}_${romtype}.cfg" > "grub_${keymap}_${romtype}_test.cfg"
- done
-done
-)
-
-# Build ROM images for supported boards
-buildrom() {
- board="$1"
- if [ -f "resources/libreboot/config/grub/${board}/config" ]; then
- ./build roms withgrub_helper "${board}"
- fi
-}
-
-if [ $# -gt 0 ]; then
- for board in "${@}"; do
- buildrom "${board}"
- done
-else
- for board in resources/libreboot/config/grub/*; do
- buildrom "${board##*/}"
- done
-fi
-
-# Needed on i945 systems for the bucts/dd trick (documented)
-# This enables the ROM to be flashed over the lenovo bios firmware
-for i945board in "x60" "t60"
-do
- if [ -d "bin/grub/${i945board}/" ]; then
- cd "bin/grub/${i945board}/"
- for i945rom in *
- do
- dd if="${i945rom}" of=top64k.bin bs=1 skip=$[$(stat -c %s "${i945rom}") - 0x10000] count=64k
- dd if=top64k.bin of="${i945rom}" bs=1 seek=$[$(stat -c %s "${i945rom}") - 0x20000] count=64k conv=notrunc
- rm -f top64k.bin
- done
- cd "../../../"
- fi
-done
-
-# Build the deblobbed descriptor+gbe regions for GM45/ICH9M targets.
-# Then put them in the ROM images.
-if [ -d "bin/grub/" ]; then
- cd "bin/grub/"
- for board in "x200" "r400" "t400" "t500"
- do
- for romsize in "4m" "8m" "16m"
- do
- if [ -d "${board}_${romsize}b/" ]; then
- cd "${board}_${romsize}b/"
- if [ -f "../../../gm45macaddress" ]; then
- ../../../resources/utilities/ich9deblob/ich9gen --macaddress $(cat ../../../gm45macaddress)
- else
- ../../../resources/utilities/ich9deblob/ich9gen
- fi
- for rom in *.rom
- do
- dd if="ich9fdgbe_${romsize}.bin" of="${rom}" bs=1 count=12k conv=notrunc
- done
- rm -f "ich9fd"*.bin "mk"*.[ch]
- cd "../"
- fi
- done
- done
- cd ../../
-fi
-
-# The GRUB files are no longer needed
-rm -f "coreboot/"*.{elf,cfg}
-rm -f "coreboot/"*/*/*.{elf,cfg}
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper
deleted file mode 100755
index 1e45f156..00000000
--- a/resources/scripts/helpers/build/roms/withgrub_helper
+++ /dev/null
@@ -1,202 +0,0 @@
-#!/bin/bash
-
-# helper script: create ROM images for a given system, with SeaGRUB
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-if [ -z ${NPROC+x} ]; then
- cores="$(nproc)"
-else
- case ${NPROC} in
- ''|*[!0-9]*)
- printf "value '%s' for NPROC is invalid. non-numeric. Exiting.\n" "${NPROC}"
- exit 1
- ;;
- esac
- cores="${NPROC}"
-fi
-
-if (( $# != 1 )); then
- printf "Usage: ./buildrom-withgrub boardname\n"
- printf "Example: ./buildrom-withgrub x60\n"
- printf "You need to specify exactly 1 argument\n"
- exit 1
-fi
-
-boardtarget="${1}"
-
-if [ -f "version" ]; then
- # release archive is being used
- version="$(cat version)"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)"
-fi
-
-printf "GRUB Helper script: build ROM images for '%s'\n" "${boardtarget}"
-
-(
-cbrevision="$(cat resources/libreboot/config/grub/${boardtarget}/cbrevision)"
-vbootrevision="$(cat resources/libreboot/config/grub/${boardtarget}/vbootrevision)"
-branchname="grub_${boardtarget}"
-
-cd "coreboot/${cbrevision}/${cbrevision}/"
-git checkout ${branchname}
-(
- cd "3rdparty/vboot/"
- git checkout ${branchname}
-)
-
-# Make sure to remove these first
-rm -f *.{elf,cfg}
-
-printf 'libreboot-%s\n' "${version}" > ".coreboot-version" # needed for reproducible builds in coreboot
-
-# Build ROM images with text-mode and corebootfb modes.
-
-if [ "${boardtarget}" = "qemu_i440fx_piix4" ] || [ "${boardtarget}" = "qemu_q35_ich9" ]
-then
- # assume that the default config enable framebuffer mode, duplicate and patch for text-mode
- # necessary, otherwise it will ask you to enter the Y/X resolution of the framebuffer at build time
- cp "../../../resources/libreboot/config/grub/${boardtarget}/config" "config_vesafb"
- sed 's/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/' < "config_vesafb" > "config_txtmode"
-else
- # assume that the default config enables text-mode, duplicate and patch for framebuffer mode
- cp "../../../resources/libreboot/config/grub/${boardtarget}/config" "config_txtmode"
- sed 's/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/' < "config_txtmode" > "config_vesafb"
-fi
-
-for romtype in txtmode vesafb
-do
- if [ "${boardtarget}" = "kgpe-d16" ] || [ "${boardtarget}" = "kcma-d8" ] || [ "${boardtarget}" = "d510mo" ]; then
- if [ "${romtype}" = "vesafb" ]; then
- printf "Only text-mode is reported to work on KGPE-D16, KCMA-D8, D510MO and ga-g41m-es2l\n"
- printf "TODO: get tpearson to fix it\n"
- continue
- fi
- fi
-
- # Build coreboot ROM image
- make clean
- mv "config_${romtype}" ".config"
- cp "../../grub_${romtype}.elf" "grub.elf"
- if [ "${boardtarget}" = "d510mo" ] || [ "${boardtarget}" = "ga-g41m-es2l" ]; then
- # Do not use SeaGRUB
- cp grub.elf payload.elf
- make -j${cores}
- mv "build/coreboot.rom" "${boardtarget}_${romtype}.rom"
-
- # We dont need seabios.elf anymore
- rm -f "payload.elf"
- else
- # Use SeaGRUB
- cp "../../../seabios/out/bios.bin.elf" "payload.elf"
- make -j${cores}
-
- mv "build/coreboot.rom" "${boardtarget}_${romtype}.rom"
-
- # We dont need seabios.elf anymore
- rm -f "payload.elf"
- # Add the grub.elf to CBFS
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-payload -c lzma -f grub.elf -n img/grub2
-
- # Set bootorder so that seabios loads grub by default
- printf "/rom@img/grub2\n" > bootorder
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add -f bootorder -n bootorder -t raw
- rm -f bootorder
-
- # Add 0s delay to seabios, so that the user is not burdened by seeing
- # that horrible interface that seabios has
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 0 -n etc/show-boot-menu || "already exists"
-
- # Add a file to CBFS that tells SeaBIOS not to load option ROMs
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 0 -n etc/pci-optionrom-exec || "already exists"
-
- # keyboard spinup timeout
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" remove -n etc/ps2-keyboard-spinup || printf "does not exist"
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 3000 -n etc/ps2-keyboard-spinup || printf "already exists"
- fi
-
- printf "%s\n" "${version}" > lbversion
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add -f lbversion -n lbversion -t raw
- rm -f "lbversion"
-
- # we dont need that grub.elf now
- rm -f "grub.elf"
-
- # .config no longer needed
- rm -f ".config"
-
- # Add the background image
- if [ "$romtype" = "vesafb" ]
- then
- if [ "$1" = "macbook21" ] || [ "$1" = "x200_4mb" ] || [ "$1" = "x200_8mb" ] || [ "$1" = "x200_16mb" ] || [ "$1" = "r400_4mb" ] || [ "$1" = "r400_8mb" ] || [ "$1" = "r400_16mb" ] || [ "$1" = "t400_4mb" ] || [ "$1" = "t400_8mb" ] || [ "$1" = "t400_16mb" ] || [ "$1" = "t500_4mb" ] || [ "$1" = "t500_8mb" ] || [ "$1" = "t500_16mb" ]
- then
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add -f ../../../resources/grub/background/background1280x800.png -n background.png -t raw
- else
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add -f ../../../resources/grub/background/background1024x768.png -n background.png -t raw
- fi
- fi
-
- # Add the correct GRUB configuration file for this image.
- for keylayout in ../../../resources/utilities/grub-assemble/keymap/original/*
- do
- keymap="${keylayout##*/}"
-
- # copy the images based on the keymap
- cp "${boardtarget}_${romtype}.rom" "${boardtarget}_${keymap}_${romtype}.rom"
-
- # Insert grub config into the image
- ./util/cbfstool/cbfstool "${boardtarget}_${keymap}_${romtype}.rom" add -f ../../"grub_${keymap}_${romtype}.cfg" -n grub.cfg -t raw
- # Insert grub test config into the image (for the user to test modifications to before modifying the main one)
- ./util/cbfstool/cbfstool "${boardtarget}_${keymap}_${romtype}.rom" add -f ../../"grub_${keymap}_${romtype}_test.cfg" -n grubtest.cfg -t raw
- done
-
- # This config-less ROM is no longer needed
- rm -f "${boardtarget}_${romtype}.rom"
-done
-
-# Clean up and prepare bin/ containing all ROM images
-
-# move ROM images into the newly created directory
-rm -Rf "${boardtarget:?}/"
-mkdir "${boardtarget}/"
-mv "${boardtarget}"*.rom "${boardtarget}/"
-
-# delete old ROM images
-rm -Rf "../../../bin/grub/${boardtarget}/"
-# put new ROM images in ../bin/grub/
-[ -d "../../../bin/grub/" ] || mkdir -p "../../../bin/grub/"
-mv "${boardtarget}/" "../../../bin/grub/"
-
-# version info file no longer needed
-rm -f ".coreboot-version"
-
-git checkout master
-(
- cd "3rdparty/vboot/"
- git checkout master
-)
-)
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/roms/withseabios b/resources/scripts/helpers/build/roms/withseabios
deleted file mode 100755
index 5b69c452..00000000
--- a/resources/scripts/helpers/build/roms/withseabios
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-#
-# helper script: build ROM images with SeaBIOS and put them in ./bin/seabios/
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-printf "Building ROM images with the SeaBIOS payload\n"
-
-[ -d bin ] || mkdir "bin/"
-
-# Build ROM images for supported boards
-buildrom() {
- board="$1"
- if [ -f "resources/libreboot/config/seabios/${board}/config" ]; then
- ./build roms withseabios_helper "${board}"
- fi
-}
-
-if [ $# -gt 0 ]; then
- for board in "${@}"; do
- buildrom "${board}"
- done
-else
- for board in resources/libreboot/config/seabios/*; do
- buildrom "${board##*/}"
- done
-fi
-
-# The SeaBIOS files are no longer needed
-rm -f coreboot/*.{elf,cfg}
-rm -f coreboot/*/*/*.{elf,cfg}
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/build/roms/withseabios_helper b/resources/scripts/helpers/build/roms/withseabios_helper
deleted file mode 100755
index 7e8a4317..00000000
--- a/resources/scripts/helpers/build/roms/withseabios_helper
+++ /dev/null
@@ -1,139 +0,0 @@
-#!/bin/bash
-
-# helper script: create ROM images for a given system, with SeaBIOS
-#
-# Copyright (C) 2014, 2015, 2016 Leah Rowe <info@minifree.org>
-# 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 git or release archive
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-if [ -z ${NPROC+x} ]; then
- cores="$(nproc)"
-else
- case ${NPROC} in
- ''|*[!0-9]*)
- printf "value '%s' for NPROC is invalid. non-numeric. Exiting.\n" "${NPROC}"
- exit 1
- ;;
- esac
- cores="${NPROC}"
-fi
-
-if (( $# != 1 )); then
- printf "Usage: ./buildrom-withseabios boardname\n"
- printf "Example: ./buildrom-withseabios x60\n"
- printf "You need to specify exactly 1 argument\n"
- exit 1
-fi
-
-boardtarget="${1}"
-
-if [ -f "version" ]; then
- # release archive is being used
- version="$(cat version)"
-else
- # git repo is being used
- version="$(git describe --tags HEAD)"
-fi
-
-printf "SeaBIOS Helper script: build ROM images for '%s'\n" "${boardtarget}"
-
-(
-cbrevision="$(cat resources/libreboot/config/seabios/${boardtarget}/cbrevision)"
-vbootrevision="$(cat resources/libreboot/config/seabios/${boardtarget}/vbootrevision)"
-branchname="seabios_${boardtarget}"
-
-cd "coreboot/${cbrevision}/${cbrevision}/"
-git checkout ${branchname}
-(
- cd "3rdparty/vboot/"
- git checkout ${branchname}
-)
-
-# Make sure to remove these first
-rm -f *{elf,cfg}
-
-printf 'libreboot-%s\n' "${version}" > ".coreboot-version" # needed for reproducible builds in coreboot
-
-# Build ROM images with text-mode and corebootfb modes.
-
-for romtype in txtmode vesafb
-do
- if [ "${boardtarget}" = "kgpe-d16" ] || [ "${boardtarget}" = "kcma-d8" ] || [ "${boardtarget}" = "d945gclf" ]; then
- if [ "${romtype}" = "vesafb" ]; then
- printf "Only text-mode is reported to work on KGPE-D16, KCMA-D8, D945GCLF\n"
- continue
- fi
- fi
-
- if [ "${boardtarget}" = "qemu_i440fx_piix4" ] || [ "${boardtarget}" = "qemu_q35_ich9" ]
- then
- # assume that the default config enable framebuffer mode, duplicate and patch for text-mode
- # necessary, otherwise it will ask you to enter the Y/X resolution of the framebuffer at build time
- cp "../../../resources/libreboot/config/seabios/${boardtarget}/config" "config_vesafb"
- sed 's/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/' < "config_vesafb" > "config_txtmode"
- else
- # assume that the default config enables text-mode, duplicate and patch for framebuffer mode
- cp "../../../resources/libreboot/config/seabios/${boardtarget}/config" "config_txtmode"
- sed 's/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/' < "config_txtmode" > "config_vesafb"
- fi
-
- # Build coreboot ROM image
- make clean
- cp "../../../seabios/out/bios.bin.vga.elf" "payload.elf"
- mv "config_${romtype}" .config
- make -j${cores}
- rm -f "payload.elf"
- mv "build/coreboot.rom" "${boardtarget}_${romtype}.rom"
-
- # Now add SeaVGABIOS (SeaBIOS wrapper for coreboot native video init)
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add -f ../../../seabios/out/vgabios.bin -n vgaroms/vgabios.bin -t raw
-
- # Add a file to CBFS that tells SeaBIOS not to load option ROMs
- ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 0 -n etc/pci-optionrom-exec || "already exists"
-
- # .config no longer needed
- rm -f ".config"
-done
-
-# Clean up and prepare bin/ containing all ROM images
-
-# move ROM images into the newly created directory
-rm -Rf "${boardtarget:?}/"
-mkdir "${boardtarget}/"
-mv "${boardtarget}"*.rom "${boardtarget}/"
-
-# delete old ROM images
-rm -Rf "../../../bin/seabios/${boardtarget}/"
-# put new ROM images in ../bin/grub/
-[ -d "../../../bin/seabios/" ] || mkdir -p "../../../bin/seabios/"
-mv "${boardtarget}/" "../../../bin/seabios/"
-
-# version info file no longer needed
-rm -f ".coreboot-version"
-
-git checkout master
-(
- cd "3rdparty/vboot/"
- git checkout master
-)
-)
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/download/bucts b/resources/scripts/helpers/download/bucts
deleted file mode 100755
index e516ade8..00000000
--- a/resources/scripts/helpers/download/bucts
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/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 git://git.stuge.se/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/resources/scripts/helpers/download/coreboot b/resources/scripts/helpers/download/coreboot
deleted file mode 100755
index daa3b649..00000000
--- a/resources/scripts/helpers/download/coreboot
+++ /dev/null
@@ -1,153 +0,0 @@
-#!/bin/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/resources/scripts/helpers/download/crossgcc b/resources/scripts/helpers/download/crossgcc
deleted file mode 100755
index 68cd6414..00000000
--- a/resources/scripts/helpers/download/crossgcc
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/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}
- )
- # workaround to fix the error on debian stretch and later, when building
- # GMP. If -pie is enabled in GCC, then --with-pic must be used when compiling
- git am ../resources/libreboot/patch/crossgcc/gccfix.diff
- rm -Rf .git* */*/.git*
-)
-
-printf "Deblobbing coreboot\n"
-./resources/utilities/coreboot-libre/deblob
-
-
diff --git a/resources/scripts/helpers/download/depthcharge b/resources/scripts/helpers/download/depthcharge
deleted file mode 100755
index 9827a346..00000000
--- a/resources/scripts/helpers/download/depthcharge
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/bash
-
-# helper script: downloads depthcharge and patches it
-#
-# 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
-
-# Get depthcharge and patch it
-
-printf "Downloading depthcharge\n"
-
-rm -Rf "depthcharge/"
-
-# Get depthcharge
-# ------------------------------------------------------------------------------
-
-# download depthcharge from git
-git clone https://chromium.googlesource.com/chromiumos/platform/depthcharge
-
-# enter the tree to patch it
-cd "depthcharge/"
-
-# reset to the latest previously tested revision
-git reset --hard 065ba14bc56c9044247fef6337d8f9e9a3055820
-
-# Patch depthcharge
-# ------------------------------------------------------------------------------
-
-printf "arm: armv7-a march abi flag for ARMv7 hardware\n"
-git am "../resources/depthcharge/patch/0001-arm-armv7-a-march-abi-flag-for-ARMv7-hardware.patch"
-
-printf "Coreboot image integration removal\n"
-git am "../resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch"
-
-printf "DOTCONFIG location correction\n"
-git am "../resources/depthcharge/patch/0003-DOTCONFIG-location-correction.patch"
-
-printf "Adaptation for a read-only boot path when no vboot handoff data is found\n"
-git am "../resources/depthcharge/patch/0004-Adaptation-for-a-read-only-boot-path-when-no-vboot-h.patch"
-
-printf "vboot: Only initialize cparams once\n"
-git am "../resources/depthcharge/patch/0005-vboot-Only-initialize-cparams-once.patch"
-
-printf "Proper firmware index report for read-only boot path\n"
-git am "../resources/depthcharge/patch/0006-Proper-firmware-index-report-for-read-only-boot-path.patch"
-
-printf "fdt: nonvolatile-context-storage report to mkbp for EC NV storage\n"
-git am "../resources/depthcharge/patch/0007-fdt-nonvolatile-context-storage-report-to-mkbp-for-E.patch"
-
-printf "vboot: Display callbacks for developer and recovery mode screens\n"
-git am "../resources/depthcharge/patch/0008-vboot-Display-callbacks-for-developer-and-recovery-m.patch"
-
-# leave the tree
-cd "../"
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/download/flashrom b/resources/scripts/helpers/download/flashrom
deleted file mode 100755
index 8c361679..00000000
--- a/resources/scripts/helpers/download/flashrom
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/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 0.9.9
-git reset --hard
-
-# Apply patches
-# ------------------------------------------------------------------------------
-
-printf "Enabling whitelist for X200S, X200 Tablet, T400, T500 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"
-
-# add whitelist for imac 5,2
-printf "Adding whitelist for Apple iMac 5,2\n"
-git am "../resources/flashrom/patch/0004-Add-board-enable-for-iMac5-2.patch"
-)
-
-printf "\n\n"
diff --git a/resources/scripts/helpers/download/grub b/resources/scripts/helpers/download/grub
deleted file mode 100755
index d0d42817..00000000
--- a/resources/scripts/helpers/download/grub
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/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 7f2a856faec951b7ab816880bd26e1e10b17a596
-
-# 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"
-
-# GRUB enhancement patches from grub.johnlane.ie (rebased in libreboot's GRUB, unofficially, on 30 November 2015)
-git am "../resources/grub/patch/grub.johnlane.ie/0001-Cryptomount-support-LUKS-detached-header.patch"
-git am "../resources/grub/patch/grub.johnlane.ie/0002-Cryptomount-support-key-files.patch"
-git am "../resources/grub/patch/grub.johnlane.ie/0003-Cryptomount-luks-allow-multiple-passphrase-attempts.patch"
-git am "../resources/grub/patch/grub.johnlane.ie/0004-Cryptomount-support-plain-dm-crypt.patch"
-git am "../resources/grub/patch/grub.johnlane.ie/0005-Cryptomount-support-for-hyphens-in-UUID.patch"
-# hotfix from kl3 (merged from autoboot) (ditto)
-git am "../resources/grub/patch/grub.johnlane.ie/0006-grub-core-disk-cryptodisk.c-Point-to-const-char.patch"
-
-# Needed for reproducible builds in GRUB
-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/resources/scripts/helpers/download/memtest86plus b/resources/scripts/helpers/download/memtest86plus
deleted file mode 100755
index 920d16fd..00000000
--- a/resources/scripts/helpers/download/memtest86plus
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/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/resources/scripts/helpers/download/seabios b/resources/scripts/helpers/download/seabios
deleted file mode 100755
index 39036ebb..00000000
--- a/resources/scripts/helpers/download/seabios
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/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 git://git.seabios.org/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 rel-1.9.1
-)
-
-
diff --git a/resources/scripts/misc/check-trailing-newline b/resources/scripts/misc/check-trailing-newline
deleted file mode 100644
index 5a6cd5cc..00000000
--- a/resources/scripts/misc/check-trailing-newline
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env guile
--*- scheme -*-
-!#
-;;; check-trailing-newline -- Find files lacking a trailing newline
-;;; Use guile 2 (not 1.8)
-;;; Copyright (C) 2015 Mark H Weaver <mhw@netris.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/>.
-
-(use-modules (ice-9 match)
- (rnrs io ports))
-
-(define (check-file file-name)
- (let ((contents (call-with-input-file file-name get-string-all)))
- (unless (string-suffix? "\n" contents)
- (format (current-error-port)
- "~a: lacks trailing newline\n"
- file-name))))
-
-(match (command-line)
- ((_ file-names ...)
- (for-each check-file file-names)))
diff --git a/resources/scripts/misc/libreboot_usb_bugfix b/resources/scripts/misc/libreboot_usb_bugfix
deleted file mode 100644
index bdb5c40a..00000000
--- a/resources/scripts/misc/libreboot_usb_bugfix
+++ /dev/null
@@ -1,50 +0,0 @@
-#! /bin/sh
-################################################################################
-# Copyright (C) 2016 Namine Ritsu <ritsu73@ecantorix.moe> #
-# #
-# 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/>. #
-# #
-################################################################################
-
-### BEGIN INIT INFO
-# Provides: libreboot_usb_bugfix
-# Required-Start: $remote_fs $syslog
-# Required-Stop: $remote_fs $syslog
-# Default-Start: 2 3 4 5
-# Default-Stop:
-# Short-Description: Disable USB wakeup on libreboot machines
-### END INIT INFO
-
-case "$1" in
- start)
- EHC1=$(cat /proc/acpi/wakeup | grep EHC1 | grep enabled | wc -l)
- EHC2=$(cat /proc/acpi/wakeup | grep EHC2 | grep enabled | wc -l)
- if [ "$EHC1" -gt 0 ]
- then
- echo EHC1 > /proc/acpi/wakeup
- fi
- if [ "$EHC2" -gt 0 ]
- then
- echo EHC2 > /proc/acpi/wakeup
- fi
- ;;
- status)
- cat /proc/acpi/wakeup | grep EHC
- ;;
- *)
- echo "Usage: /etc/init.d/libreboot_usb_bugfix {start|status}"
- exit 1
-esac
-
-exit 0
diff --git a/resources/scripts/misc/powertop.debian b/resources/scripts/misc/powertop.debian
deleted file mode 100755
index 1227041e..00000000
--- a/resources/scripts/misc/powertop.debian
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-# powertop.debian: automatically sets up powertop --auto-tune on startup in Debian
-#
-# 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/>.
-#
-
-[ "x${DEBUG+set}" = 'xset' ] && set -v
-set -u -e
-
-if [ $EUID -ne 0 ]; then
- printf "This script must be run as root\n"
- exit 1
-fi
-
-# For Debian users.
-
-apt-get -y install powertop
-
-# Remove startup symlink if it exists
-update-rc.d powertop remove
-# Remove previous file if it exists
-rm -Rf "/etc/init.d/powertop"
-
-# write the correct commands there:
-printf "#!/bin/sh\n" > "/etc/init.d/powertop"
-printf "/usr/sbin/powertop --auto-tune\n" >> "/etc/init.d/powertop"
-
-# make it executable:
-chmod +x "/etc/init.d/powertop"
-
-# Add the service to make it run automatically at boot time:
-update-rc.d powertop defaults
-
-# Run powertop now and tell the user
-powertop --auto-tune
-printf "Done. Run 'powertop --auto-tune' now. This will also run automatically at boot time. Run it again at any time, if needed. This has also been done for you just now.\n"