aboutsummaryrefslogtreecommitdiff
path: root/buildrom-withgrub
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-09 08:12:41 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-11-09 08:12:41 +0000
commit97ad3a33c4070ea72e76b22ae095664cb1b16837 (patch)
tree15f346c306990d78f58f1e4c3118de0b3b586684 /buildrom-withgrub
parentf662abeb95ee656599526c216ac82040b59755f2 (diff)
downloadlibrebootfr-97ad3a33c4070ea72e76b22ae095664cb1b16837.tar.gz
librebootfr-97ad3a33c4070ea72e76b22ae095664cb1b16837.zip
buildrom-withgrub: don't move cbfstool, execute directly
Diffstat (limited to 'buildrom-withgrub')
-rwxr-xr-xbuildrom-withgrub22
1 files changed, 8 insertions, 14 deletions
diff --git a/buildrom-withgrub b/buildrom-withgrub
index 117051ff..81dcdb13 100755
--- a/buildrom-withgrub
+++ b/buildrom-withgrub
@@ -35,9 +35,6 @@ fi
cd coreboot
rm -rf .config
-# cbfstool will be used quite heavily here.
-[[ -f cbfstool ]] || mv util/cbfstool/cbfstool .
-
# prepare libreboot configuration and build it
# it is assumed that these configs use coreboot text-mode
# instead of coreboot framebuffer, by default
@@ -74,19 +71,19 @@ rm -rf .config config_txtmode
# ---------------------------------------------------------------------------------------------------------------
# Add background image and font
-./cbfstool libreboot_vesafb.rom add -f ../resources/grub/background/background.jpg -n background.jpg -t raw
-# ./cbfstool libreboot_vesafb.rom add -f ../resources/grub/background/gnulove.jpg -n gnulove.jpg -t raw
-./cbfstool libreboot_vesafb.rom add -f ../resources/grub/font/dejavusansmono.pf2 -n dejavusansmono.pf2 -t raw
+./util/cbfstool/cbfstool libreboot_vesafb.rom add -f ../resources/grub/background/background.jpg -n background.jpg -t raw
+# ./util/cbfstool/cbfstool libreboot_vesafb.rom add -f ../resources/grub/background/gnulove.jpg -n gnulove.jpg -t raw
+./util/cbfstool/cbfstool libreboot_vesafb.rom add -f ../resources/grub/font/dejavusansmono.pf2 -n dejavusansmono.pf2 -t raw
# Insert files/configurations and perform operations that are common on libreboot_txtmode.rom (coreboot text mode)
# ---------------------------------------------------------------------------------------------------------------
# Add memtest86+
-./cbfstool libreboot_txtmode.rom add -f ../memtest86+-5.01/memtest -n memtest -t raw
+./util/cbfstool/cbfstool libreboot_txtmode.rom add -f ../memtest86+-5.01/memtest -n memtest -t raw
# Add GRUB Invaders
-./cbfstool libreboot_txtmode.rom add -f ../grubinvaders/invaders -n invaders -t raw
-./cbfstool libreboot_txtmode.rom add -f ../grubinvaders/invaders.exec -n invaders.exec -t raw
+./util/cbfstool/cbfstool libreboot_txtmode.rom add -f ../grubinvaders/invaders -n invaders -t raw
+./util/cbfstool/cbfstool libreboot_txtmode.rom add -f ../grubinvaders/invaders.exec -n invaders.exec -t raw
# Generate the GRUB configurations and add them to each ROM image as grub.cfg and grubtest.cfg
# ---------------------------------------------------------------------------------------------------------------
@@ -108,13 +105,13 @@ do
cat ../resources/grub/config/menuentries/"$romtype".cfg >> grub_"$keymap"_"$romtype".cfg
# Insert grub config into the image
- ./cbfstool libreboot_"$keymap"_"$romtype".rom add -f grub_"$keymap"_"$romtype".cfg -n grub.cfg -t raw
+ ./util/cbfstool/cbfstool libreboot_"$keymap"_"$romtype".rom add -f grub_"$keymap"_"$romtype".cfg -n grub.cfg -t raw
# 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
# Insert grub test config into the image (for the user to test modifications to before modifying the main one)
- ./cbfstool libreboot_"$keymap"_"$romtype".rom add -f grub_"$keymap"_"$romtype"_test.cfg -n grubtest.cfg -t raw
+ ./util/cbfstool/cbfstool libreboot_"$keymap"_"$romtype".rom add -f grub_"$keymap"_"$romtype"_test.cfg -n grubtest.cfg -t raw
done
done
@@ -139,9 +136,6 @@ rm -rf ../bin/$1
# now put the new ROM's in ./bin
mv $1 ../bin
-# cbfstool no longer needed here, so put it back
-mv cbfstool util/cbfstool/
-
# go back to main source directory
cd ../