diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-02-01 12:39:15 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-02-01 12:39:15 +0000 |
commit | 1838302e0c3b20a2fe0111d5c38222e1906dfe93 (patch) | |
tree | 243382c01e39f194d719461ccb84e812cc853d1c /build | |
parent | 6d400c6041f301e6d377f4a2067bd7eb9d471b69 (diff) | |
download | librebootfr-1838302e0c3b20a2fe0111d5c38222e1906dfe93.tar.gz librebootfr-1838302e0c3b20a2fe0111d5c38222e1906dfe93.zip |
build: re-factor the descriptor/gbe generating loop for GM45/ICH9M
Diffstat (limited to 'build')
-rwxr-xr-x | build | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -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 |