summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/roms
diff options
context:
space:
mode:
authorKlemens Nanni <contact@autoboot.org>2015-11-20 05:24:49 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-11-21 05:32:09 (EST)
commite9e8f47951b4658d4b9e7dcf01926863d5142804 (patch)
tree2109237241b1a83c44925bb14ff7f96912c5cf99 /resources/scripts/helpers/build/roms
parent460c5af7c66f43517a29a2d7d7d23b5a07fa8c88 (diff)
downloadlibreboot-e9e8f47951b4658d4b9e7dcf01926863d5142804.zip
libreboot-e9e8f47951b4658d4b9e7dcf01926863d5142804.tar.gz
libreboot-e9e8f47951b4658d4b9e7dcf01926863d5142804.tar.bz2
roms/withgrub_helper: Slight commenting changes
Diffstat (limited to 'resources/scripts/helpers/build/roms')
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub_helper19
1 files changed, 8 insertions, 11 deletions
diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper
index 4542bc7..7c16b43 100755
--- a/resources/scripts/helpers/build/roms/withgrub_helper
+++ b/resources/scripts/helpers/build/roms/withgrub_helper
@@ -20,7 +20,7 @@
#
# This script assumes that the working directory is the root
-# of libreboot_src or git
+# of git or release archive
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
@@ -39,7 +39,7 @@ printf "GRUB Helper script: build ROM images for '%s'\n" "${boardtarget}"
cd "coreboot/"
if [ -f "../version" ]; then
- # _src release archive is being used
+ # release archive is being used
version="$(cat ../version)"
else
# git repo is being used
@@ -48,7 +48,6 @@ fi
printf '%s\n' "${version}" >"lbversion"
# Build ROM images with text-mode and corebootfb modes.
-# ---------------------------------------------------------------------------------------------------------------
if [ "${boardtarget}" = "qemu_i440fx_piix4" ] || [ "${boardtarget}" = "qemu_q35_ich9" ]
then
@@ -127,22 +126,20 @@ do
rm -f "${boardtarget}_${romtype}.rom"
done
-# Now we clean up and prepare the bin directory containing all the images
-# ----------------------------------------------------------------------------------------------------------------------------
+# Clean up and prepare bin/ containing all ROM images
-# prepare directory for new ROM images
+# move ROM images into the newly created directory
rm -Rf "${boardtarget:?}/"
mkdir "${boardtarget}/"
-# move the ROM images into the newly created directory
mv "${boardtarget}"*.rom "${boardtarget}/"
-# delete the old ROM images from ../bin
+# delete old ROM images
rm -Rf "../bin/grub/${boardtarget}/"
-# now put the new ROM images in ./bin/grub/
-[ ! -d "../bin/grub/" ] && mkdir -p "../bin/grub/"
+# put new ROM images in ../bin/grub/
+[ -d "../bin/grub/" ] || mkdir -p "../bin/grub/"
mv "${boardtarget}/" "../bin/grub/"
-# libreboot version file no longer needed
+# version info file no longer needed
rm -f "lbversion"
# go back to main source directory