diff options
author | Swift Geek <swiftgeek@gmail.com> | 2016-05-14 07:45:11 +0200 |
---|---|---|
committer | Leah Woods <info@minifree.org> | 2016-05-14 06:53:14 +0100 |
commit | a874b581de0b7ff9dc1186ec2443e34aa97c3658 (patch) | |
tree | 75e12ecba1bd838d250d4aea8154b40fe4e83d59 /resources/utilities/ich9deblob/src/ich9gen.c | |
parent | 3d6abbe4f438b806b4b30ba64da4530df754f4de (diff) | |
download | librebootfr-a874b581de0b7ff9dc1186ec2443e34aa97c3658.tar.gz librebootfr-a874b581de0b7ff9dc1186ec2443e34aa97c3658.zip |
Add 16MiB descriptor generation
Diffstat (limited to 'resources/utilities/ich9deblob/src/ich9gen.c')
-rw-r--r-- | resources/utilities/ich9deblob/src/ich9gen.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/utilities/ich9deblob/src/ich9gen.c b/resources/utilities/ich9deblob/src/ich9gen.c index bc3de202..432a8b30 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; } |