summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlemens Nanni <contact@autoboot.org>2015-11-05 19:31:16 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-11-05 21:49:03 (EST)
commit24d1fa4eb08bc1aa9ee6ee4dcf12169210dc43ef (patch)
tree1b7e4f25b5d695f9aa3f55758af2c2184bd04ce3
parent6ad0da705d8201782fdbbc482c8eaafa5af1923a (diff)
downloadlibreboot-24d1fa4eb08bc1aa9ee6ee4dcf12169210dc43ef.zip
libreboot-24d1fa4eb08bc1aa9ee6ee4dcf12169210dc43ef.tar.gz
libreboot-24d1fa4eb08bc1aa9ee6ee4dcf12169210dc43ef.tar.bz2
roms/withgrub_helper: Create correct ROM layouts
find bin/grub [...] also searches other boards' ROMs and thus would print a ROM layout not neccessarily belonging to the same board images got built for.
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub_helper3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper
index dea7fa6..07dd5c2 100755
--- a/resources/scripts/helpers/build/roms/withgrub_helper
+++ b/resources/scripts/helpers/build/roms/withgrub_helper
@@ -148,4 +148,7 @@ rm -f "lbversion"
# go back to main source directory
cd "../"
+# create ROM image layout to allow flashing specific regions only
+./coreboot/util/ifdtool/ifdtool -f bin/grub/${boardtarget}/rom.layout $(find bin/grub/${boardtarget} -type f -name "*.rom" -print -quit)
+
printf "\n\n"