summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorSwift Geek <swiftgeek@gmail.com>2016-05-14 01:45:11 (EDT)
committer Leah Woods <info@minifree.org>2016-05-14 01:53:14 (EDT)
commita874b581de0b7ff9dc1186ec2443e34aa97c3658 (patch)
tree75e12ecba1bd838d250d4aea8154b40fe4e83d59 /resources
parent3d6abbe4f438b806b4b30ba64da4530df754f4de (diff)
downloadlibreboot-a874b581de0b7ff9dc1186ec2443e34aa97c3658.zip
libreboot-a874b581de0b7ff9dc1186ec2443e34aa97c3658.tar.gz
libreboot-a874b581de0b7ff9dc1186ec2443e34aa97c3658.tar.bz2
Add 16MiB descriptor generation
Diffstat (limited to 'resources')
-rw-r--r--resources/utilities/ich9deblob/src/ich9gen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/utilities/ich9deblob/src/ich9gen.c b/resources/utilities/ich9deblob/src/ich9gen.c
index bc3de20..432a8b3 100644
--- a/resources/utilities/ich9deblob/src/ich9gen.c
+++ b/resources/utilities/ich9deblob/src/ich9gen.c
@@ -27,8 +27,10 @@ int main(int argc, char *argv[])
struct GBEREGIONRECORD_8K gbeStruct8k = generatedGbeStruct8k();
struct DESCRIPTORREGIONRECORD descriptorStruct4M = generatedDescriptorStruct(ROMSIZE_4MB, WITHGBE);
struct DESCRIPTORREGIONRECORD descriptorStruct8M = generatedDescriptorStruct(ROMSIZE_8MB, WITHGBE);
+ struct DESCRIPTORREGIONRECORD descriptorStruct16M = generatedDescriptorStruct(ROMSIZE_16MB, WITHGBE);
struct DESCRIPTORREGIONRECORD descriptorStructNoGbe4M = generatedDescriptorStruct(ROMSIZE_4MB, WITHOUTGBE);
struct DESCRIPTORREGIONRECORD descriptorStructNoGbe8M = generatedDescriptorStruct(ROMSIZE_8MB, WITHOUTGBE);
+ struct DESCRIPTORREGIONRECORD descriptorStructNoGbe16M = generatedDescriptorStruct(ROMSIZE_16MB, WITHOUTGBE);
/* Only for the compatibility checks */
struct DESCRIPTORREGIONRECORD dummyDescriptorStruct;
@@ -122,6 +124,9 @@ int main(int argc, char *argv[])
return 1;
}
+ if (notCreatedDescriptorGbeFile(descriptorStruct16M, gbeStruct8k, "ich9fdgbe_16m.bin")) {
+ return 1;
+ }
/*
* ------------------------------------------------------------------
* Generate the 4KiB files (descriptors without GbE), ready to be used in a libreboot image
@@ -137,5 +142,8 @@ int main(int argc, char *argv[])
return 1;
}
+ if (notCreated4kDescriptorFile(descriptorStructNoGbe16M, "ich9fdnogbe_16m.bin")) {
+ return 1;
+ }
return 0;
}