From 85a59c7bfd2909433660bb41c48de7510571f343 Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Fri, 03 Jul 2015 02:53:14 -0400
Subject: build/roms/withgrub: fix path names when running ich9gen

Otherwise, these images are brick.rom images
---
(limited to 'resources/scripts/helpers/build/roms/withgrub')

diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub
index cb205d2..92bcdb1 100755
--- a/resources/scripts/helpers/build/roms/withgrub
+++ b/resources/scripts/helpers/build/roms/withgrub
@@ -93,15 +93,15 @@ done
 
 # Build the deblobbed descriptor+gbe regions for GM45/ICH9M targets.
 # Then put them in the ROM images.
-if [ -d "bin/" ]; then
-	cd "bin/"
+if [ -d "bin/grub/" ]; then
+	cd "bin/grub/"
 	for board in "x200" "r400" "t400" "t500"
 	do
 		for romsize in "4m" "8m"
 		do	
 			if [ -d "${board}_${romsize}b/" ]; then
 				cd "${board}_${romsize}b/"
-				../../resources/utilities/ich9deblob/ich9gen
+				../../../resources/utilities/ich9deblob/ich9gen
 				for rom in $(ls)
 				do
 					dd if="ich9fdgbe_${romsize}.bin" of="${rom}" bs=1 count=12k conv=notrunc
@@ -112,7 +112,7 @@ if [ -d "bin/" ]; then
 			fi
 		done
 	done
-	cd ../
+	cd ../../
 fi
 
 # The GRUB payloads are no longer needed
--
cgit v0.9.1