summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-19 22:15:20 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-19 22:23:52 (EST)
commita4edcd82dc5405d8b58bf6ea2ddb6f928c059049 (patch)
tree1e15f2eaf4eb3541d14ab5d057a411b47604744e /resources/scripts/helpers/build
parent2fe82322b537e39fa6e5fbc9fb0242c2b9a93c26 (diff)
downloadlibreboot-a4edcd82dc5405d8b58bf6ea2ddb6f928c059049.zip
libreboot-a4edcd82dc5405d8b58bf6ea2ddb6f928c059049.tar.gz
libreboot-a4edcd82dc5405d8b58bf6ea2ddb6f928c059049.tar.bz2
bash scripts: Only enable verbose output if DEBUG= is used
Diffstat (limited to 'resources/scripts/helpers/build')
-rwxr-xr-xresources/scripts/helpers/build/clean/bucts3
-rwxr-xr-xresources/scripts/helpers/build/clean/coreboot3
-rwxr-xr-xresources/scripts/helpers/build/clean/flashrom3
-rwxr-xr-xresources/scripts/helpers/build/clean/grub3
-rwxr-xr-xresources/scripts/helpers/build/clean/i945pwm3
-rwxr-xr-xresources/scripts/helpers/build/clean/ich9deblob3
-rwxr-xr-xresources/scripts/helpers/build/clean/memtest86plus3
-rwxr-xr-xresources/scripts/helpers/build/clean/rom_images3
-rwxr-xr-xresources/scripts/helpers/build/external/source3
-rwxr-xr-xresources/scripts/helpers/build/module/bucts3
-rwxr-xr-xresources/scripts/helpers/build/module/coreboot3
-rwxr-xr-xresources/scripts/helpers/build/module/flashrom3
-rwxr-xr-xresources/scripts/helpers/build/module/grub3
-rwxr-xr-xresources/scripts/helpers/build/module/i945pwm3
-rwxr-xr-xresources/scripts/helpers/build/module/ich9deblob3
-rwxr-xr-xresources/scripts/helpers/build/module/memtest86plus3
-rwxr-xr-xresources/scripts/helpers/build/release/archives3
-rwxr-xr-xresources/scripts/helpers/build/roms/helper3
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub3
19 files changed, 38 insertions, 19 deletions
diff --git a/resources/scripts/helpers/build/clean/bucts b/resources/scripts/helpers/build/clean/bucts
index eb90734..f84cd58 100755
--- a/resources/scripts/helpers/build/clean/bucts
+++ b/resources/scripts/helpers/build/clean/bucts
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# clean bucts
# --------------------------------------------------------
diff --git a/resources/scripts/helpers/build/clean/coreboot b/resources/scripts/helpers/build/clean/coreboot
index dd1cc0f..4af7391 100755
--- a/resources/scripts/helpers/build/clean/coreboot
+++ b/resources/scripts/helpers/build/clean/coreboot
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# clean coreboot utilities (dependencies for 'build'):
# -------------------------------------------------------
diff --git a/resources/scripts/helpers/build/clean/flashrom b/resources/scripts/helpers/build/clean/flashrom
index 1705468..483ce4f 100755
--- a/resources/scripts/helpers/build/clean/flashrom
+++ b/resources/scripts/helpers/build/clean/flashrom
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# clean flashrom
# --------------------------------------------------------
diff --git a/resources/scripts/helpers/build/clean/grub b/resources/scripts/helpers/build/clean/grub
index 6f3dccc..b6e4f13 100755
--- a/resources/scripts/helpers/build/clean/grub
+++ b/resources/scripts/helpers/build/clean/grub
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# clean grub
# --------------------------------------------------------
diff --git a/resources/scripts/helpers/build/clean/i945pwm b/resources/scripts/helpers/build/clean/i945pwm
index 41334e6..fa9aecf 100755
--- a/resources/scripts/helpers/build/clean/i945pwm
+++ b/resources/scripts/helpers/build/clean/i945pwm
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# clean i945-pwm utility
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/clean/ich9deblob b/resources/scripts/helpers/build/clean/ich9deblob
index fa5b671..f3ee46a 100755
--- a/resources/scripts/helpers/build/clean/ich9deblob
+++ b/resources/scripts/helpers/build/clean/ich9deblob
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# clean ich9deblob utility
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/clean/memtest86plus b/resources/scripts/helpers/build/clean/memtest86plus
index cd01bdd..8d4ede6 100755
--- a/resources/scripts/helpers/build/clean/memtest86plus
+++ b/resources/scripts/helpers/build/clean/memtest86plus
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# clean memtest86+
# --------------------------------------------------------
diff --git a/resources/scripts/helpers/build/clean/rom_images b/resources/scripts/helpers/build/clean/rom_images
index 40bbe19..592b111 100755
--- a/resources/scripts/helpers/build/clean/rom_images
+++ b/resources/scripts/helpers/build/clean/rom_images
@@ -21,7 +21,8 @@
# This script assumes that the current working directory is the root
# of libreboot_src or libreboot git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Delete the ROM images
# --------------------------------------------------------
diff --git a/resources/scripts/helpers/build/external/source b/resources/scripts/helpers/build/external/source
index bff7b16..74cfdb3 100755
--- a/resources/scripts/helpers/build/external/source
+++ b/resources/scripts/helpers/build/external/source
@@ -20,7 +20,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# delete the old data
rm -rf tobuild
diff --git a/resources/scripts/helpers/build/module/bucts b/resources/scripts/helpers/build/module/bucts
index f29d753..6c596dd 100755
--- a/resources/scripts/helpers/build/module/bucts
+++ b/resources/scripts/helpers/build/module/bucts
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build BUC.TS utility (needed for flashing ROM's on X60/T60 while Lenovo BIOS is running)
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot
index 4ec2eac..3060e58 100755
--- a/resources/scripts/helpers/build/module/coreboot
+++ b/resources/scripts/helpers/build/module/coreboot
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build utilities needed in coreboot directory
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/module/flashrom b/resources/scripts/helpers/build/module/flashrom
index 7cd50cc..7fe0fa7 100755
--- a/resources/scripts/helpers/build/module/flashrom
+++ b/resources/scripts/helpers/build/module/flashrom
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build "flashrom" (utility for flashing/dumping ROM's)
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/module/grub b/resources/scripts/helpers/build/module/grub
index 1856c35..5138b47 100755
--- a/resources/scripts/helpers/build/module/grub
+++ b/resources/scripts/helpers/build/module/grub
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build utilies needed for building GRUB payloads
# ---------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/module/i945pwm b/resources/scripts/helpers/build/module/i945pwm
index 81cef71..c70c37e 100755
--- a/resources/scripts/helpers/build/module/i945pwm
+++ b/resources/scripts/helpers/build/module/i945pwm
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build i945-pwm utility
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/module/ich9deblob b/resources/scripts/helpers/build/module/ich9deblob
index e77957c..c0941ee 100755
--- a/resources/scripts/helpers/build/module/ich9deblob
+++ b/resources/scripts/helpers/build/module/ich9deblob
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build ich9deblob utility
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/module/memtest86plus b/resources/scripts/helpers/build/module/memtest86plus
index f752080..0b7686e 100755
--- a/resources/scripts/helpers/build/module/memtest86plus
+++ b/resources/scripts/helpers/build/module/memtest86plus
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build MemTest86+ payload (for GRUB)
# --------------------------------------------------------------------
diff --git a/resources/scripts/helpers/build/release/archives b/resources/scripts/helpers/build/release/archives
index 451e786..8b4bfce 100755
--- a/resources/scripts/helpers/build/release/archives
+++ b/resources/scripts/helpers/build/release/archives
@@ -22,7 +22,8 @@
# This script assumes that the current working directory when running
# it is the root directory of the libreboot git repository clone.
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
arch="unknown"
if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ]
diff --git a/resources/scripts/helpers/build/roms/helper b/resources/scripts/helpers/build/roms/helper
index 0a4f06c..d63598d 100755
--- a/resources/scripts/helpers/build/roms/helper
+++ b/resources/scripts/helpers/build/roms/helper
@@ -21,7 +21,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
if (( $# != 1 )); then
echo "Usage: ./buildrom-withgrub boardname"
diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub
index 9fa20e5..18cf62e 100755
--- a/resources/scripts/helpers/build/roms/withgrub
+++ b/resources/scripts/helpers/build/roms/withgrub
@@ -22,7 +22,8 @@
# This script assumes that the working directory is the root
# of libreboot_src or git
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
# Build the ROM images