From 1838302e0c3b20a2fe0111d5c38222e1906dfe93 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 01 Feb 2015 07:39:15 -0500 Subject: build: re-factor the descriptor/gbe generating loop for GM45/ICH9M --- diff --git a/build b/build index 53e6935..f7e6169 100755 --- a/build +++ b/build @@ -54,6 +54,7 @@ cd ../ # Build ROM images for supported boards for board in $(ls resources/libreboot/config/) do + break ./buildrom-withgrub $board done @@ -71,21 +72,25 @@ do cd ../../ done -# Build the deblobbed descriptor+gbe images for X200. +# Build the deblobbed descriptor+gbe regions for GM45/ICH9M targets. # Then put them in the ROM images. -cd resources/utilities/ich9deblob/ -./ich9gen -cd ../../../bin/x200_4mb/ -for rom in $(ls) +cd bin/ +../resources/utilities/ich9deblob/ich9gen +for board in "x200" do - dd if=../../resources/utilities/ich9deblob/ich9fdgbe_4m.bin of="$rom" bs=1 count=12k conv=notrunc -done -cd ../x200_8mb/ -for rom in $(ls) -do - dd if=../../resources/utilities/ich9deblob/ich9fdgbe_8m.bin of="$rom" bs=1 count=12k conv=notrunc + for romsize in "4m" "8m" + do + cd "$board"_"$romsize"b/ + for rom in $(ls) + do + dd if=../ich9fdgbe_"$romsize".bin of="$rom" bs=1 count=12k conv=notrunc + done + cd ../ + done done -cd ../../ +rm -f ich9fdgbe_4m.bin +rm -f ich9fdgbe_8m.bin +cd ../ # The GRUB payloads are no longer needed rm -f coreboot/grub_vesafb.elf -- cgit v0.9.1