diff options
Diffstat (limited to 'resources/scripts/helpers')
-rwxr-xr-x | resources/scripts/helpers/download/flashrom | 12 | ||||
-rw-r--r-- | resources/scripts/helpers/sha512sums/flashrom | 95 |
2 files changed, 105 insertions, 2 deletions
diff --git a/resources/scripts/helpers/download/flashrom b/resources/scripts/helpers/download/flashrom index a44dd45..2262f63 100755 --- a/resources/scripts/helpers/download/flashrom +++ b/resources/scripts/helpers/download/flashrom @@ -39,10 +39,18 @@ rm -Rf "flashrom/" # download it using subversion svn co -r 1889 svn://flashrom.org/flashrom/trunk flashrom -# apply patches - cd "flashrom/" +# Verify checksums of the downloaded files +# ------------------------------------------------------------------------------ + +sha512sum -c "../resources/scripts/helpers/sha512sums/flashrom" || (cd "../" && rm -Rf "flashrom/" && printf "Invalid checksums for flashrom\n" && exit 1) + +printf "Valid checksums for flashrom\n" + +# Apply patches +# ------------------------------------------------------------------------------ + printf "Enabling whitelist for X200S, X200 Tablet, T400, T500 and R400\n" patch "board_enable.c" < "../resources/flashrom/patch/x200s_x200t_t400_t500_r400_whitelist.diff" diff --git a/resources/scripts/helpers/sha512sums/flashrom b/resources/scripts/helpers/sha512sums/flashrom new file mode 100644 index 0000000..aaa9164 --- /dev/null +++ b/resources/scripts/helpers/sha512sums/flashrom @@ -0,0 +1,95 @@ +cf845b22b37f02cca9fb9e2bfb976443d621ae52c99861073e36b5ec8f49d884fe3b6f4d646f0460dc74cd5e20c7890516368f9ef3b5b6228bed4b0e7844e9c1 ./mstarddc_spi.c +3ceb12d797826b08b746a7597381d2fe085911bc64672446f20d9cce7644b90312d53222225d3a8393b5201cf46bfc3d503345442d64caa21e0efaf92d53ad3b ./flashchips.c +d21de5f3ffbf050e9cba4b6e33821479d94993e391a40f18f339c1a9ed179c27597dcb11497624d2ac672ec3e290e6f6f41e10c45ade7f57eddea62bc89d4016 ./it87spi.c +14ad183b62149d77a1e96556fb35890abc91b76d37dcae8997a40f66d80d5bf0ad549ba51b190937033263e6b816cce7602c7a2e717b15e2903017066c26bfb6 ./dummyflasher.c +94069ac9674347f38700764b039e02f9fae15ffdde286c115d21e3a8479b00965e97d405d977b82d9b05f5034fd099295cbba83fd29c934ffebe68d130b03e2a ./archtest.c +dfc4f5f3c74d58c882d7ee887073fbc24f1ae59f23a98abf504c03922b639e887fc4567e57a7e85a68ef0577ac2bb28a250d279ca0cfce21c55b3c381bc06186 ./board_enable.c +03db4e44ebf9d2a8ce84f685c9d0d0eed03f8a512d4583508b6aaa75e00e89a8c6668d7212b54d7cf039eba219fb8ccee82f87a482fcbc9ac11ba72965611a49 ./flashrom.8.tmpl +ce5717dda899c0b268f84d23b0a64e846634ff6d48fb294389290c34afa6f254585aafb31322d25856f5f055a7191b8c7b3eeac83e664adcef2808613fba815a ./flashrom.c +ba55fdeb53d84d67865e3e39c52544a07b68ca8e8aa79525398025f2f218ce22104251290a1ec702f187c6b89495124ca64cb306799823aff669e20d9b2f4932 ./nicintel_spi.c +5b322abf6a5a82894113c0dfe549725b140006197a920dfdf1a3ed615730e1de0a947cceea5ff9357cdd42334f8f53a1ab66072fca9ea966be85340a56d4649c ./COPYING +498b5401833a68ce46b82782aab36ddab314c6993514a7d1ad7453d1de458659305c75690f837b3eb4e113cba883589016e0d43d28c3fe9a72066273927a81c7 ./platform.h +0150df81fc27c8f4b5ac3f9a452dde991ed984cbed4ab332635d2e6ae3359acca6cca5f5c8780096a00b7534c0dcb9c16ea1227c5feed3ed293311e856717d0b ./ich_descriptors.h +edc8931f654db4da8a6771743ea35cd8f25b86432e556b502b477abd6f4816b794d4ae7b04d4c8d30a66b81395e4396b654f64d66f2aeec3473a5e70d4d180f3 ./ich_descriptors.c +c476fc42a71fd45d914d751b67a126bbb86edf51fa263bc3854013ae170882bd5d33a70a6bd535b8b8bf56e464e88782ac6a67b51243a54de164d8df8b0eebf7 ./nicnatsemi.c +67418efc24cea1f4e3ee41b32f56522d41b73c8c60d32ba1ed4321e505e962217fe02cb2ca93a2e5fbcdc33bd2486fcfb157be7e909a340a3f0121d01dfe56cb ./cli_common.c +e60ad998ca9b83c556845c7d98fdbe1d2cf7159f1ad461285029e842c60d635b0e1475219733f839ee2b0f600fae1aaeef041051cde976ab2cde521eefd1073b ./bitbang_spi.c +700563677e104ba2d03bb2d258e73de0974ff281f8333f704f1597272693dcfa6a666d92af86a20870329840afe2a8e96a5851fc3fca834d7fca2c4938f65e11 ./usbblaster_spi.c +0632f0ad835814b4afe9a724dde576c723688b279212916883f9c7c0e674396c773db9392e508e735f3815a5cf992ebd2c34302e2979ed4dba44bcca9d357ff0 ./pony_spi.c +1b96381aa209ab37fc4b13deac55c3f22ac287515f77f0fcd4ea5b156027027cc20af5be39dd3cd14851711edf7838ee95e3833ca7ddbaf23c4cb8d08090e592 ./it8212.c +6f7bbde4ed0a49347ae9446740459575afc1cf238ffc52cd6072ccc1d3e40c2efe80b3e5175cf155fe76ce603672a5bd1514fc2d0289234e900243110e817b62 ./cli_classic.c +514ee9e638534d9d753156fbc1559a25e8b0e925e4407a69728577260a5cc0ba07c992cbbb82a0119ac7a38f7fb2fa9c26e263b456a6132dc73982a25c45ef19 ./wbsio_spi.c +2c2ab19bf100725bca5cc8b1c24e2ba4db2b741ff9de74654c59f4d296b4340a8267eacd0adf0f647914c17d950b7003ef7f88fc96102e2411c31758486b9913 ./nicintel.c +5d74077bbe91059ed5e5f133b335d36c91a6af7e8f7840a0fc741c91dc1e192413ebdce859706f8dc5151970b3ef168715fda2d5f04133ebb15845eb02edb2b4 ./w39.c +067b4169306b533b41848854634eeacc8f49a8c74a95407ea18fad3823e12c4a3d587f6c0c250ff258d50405a4720de09772cde88e6dbcdfe5610252bb86bc00 ./ogp_spi.c +eb1e06efbc6e8bd77e9fa805b6b1f94754bc89ecf571f52a3765205329782f27d842d6597b52744effd21c96e8017edfa16b3c3b0c2458f4985cadd3d3a5e527 ./amd_imc.c +7e99e69eb506c861473883a2600bdfa9b26959444f5ebe70c5cabe39011bdf65692e4c10c9e574a9c9d86adb17f15972505647b08993f9b33eebee88c19ce80d ./hwaccess.c +cb68de1dcd9027a0dc4d2a060a1fd72190ed0c954fcba1f203a4121bbaca6eed34244e54591ccc1b87c8c28eeb779f8e4a2dc98dcb302b7b33946bca44f3cb33 ./jedec.c +30a0d67758ea906a9dc1066f7f26ba51e2ed235b6ee4791acd20bb55e632c332e1abba4b7e82ef991503b04055d0becf6bccdc1559f9e57ce94a7db867c633bb ./satamv.c +5b4061c8276bd84d15e6da30af8aab5918cea7e152992b169eb87552b7da45afacac53e31a49b932c7875b55308dfe37b109d41e007f63fcb09f394bdf60faca ./flashchips.h +2a253211d9da4e1741194811323f3908808ba0f88f0222358303ba617b8bcf45ab461ab75ff023395297f475a073c1286f2c65a3ed28a2783d99b57c53d375a6 ./ichspi.c +5fb2ea49d632274f29f87681e54ee13fd33ccfa107db0d2c7ac30aff746f89de2cd1c0c4825b077a5a34a558157eb91b21c9ea74995fc1eddce675c24f3f57d9 ./satasii.c +b0e36f459526d0042671b3a15bb5faa3f6b95689a121a549c51ef7ad83d1d333f2b924fcf932c2cdd783fec866b462035845cd33dd53b5cd11148ada6bd620fb ./programmer.c +f224fe99ad4ef21e3b8541215d9baebc567ba7acf621ac80cdf0c55b6f7432438818d3ba9115ebf09ec02e6ac0cd61b3b6e4d0e7f93ecb3a0e2c7ce7fc055c16 ./sb600spi.c +a010e0e3bd84f6c02b6069640a6eed4c2063cb146ce048a7e1b9ce3e0ea9dfb0ac23e4705ad9ee9d015647165052f269856e3404b214ddb409c985eed63e008b ./en29lv640b.c +9f2e93cb6a30f5a0d02fd7d25e330ce81407220dfbafc025ac657d5846a3644d4bc75c05d931766904ef6d92e49253031a779d249d8988694037402c66b713d3 ./atavia.c +ec182113829f8b82921de94b6e370276e2bf03cebd8446e0bd6ba8f3e26ca51a324d327600c2514e75331301746a96ba08c13fe2819e20189fcb38085c7503b9 ./82802ab.c +d02a763eade03f4eef4947e8033e16993307a78d2d722329b210370b059d9914f3c2ce3b3fd978a19da6cd63d126d28bfec25fcde8914e7d5747c2aa6de68a62 ./mcp6x_spi.c +88446a07c49d88e55a4569d36b000be7de0a1646ea2ebb97dba2f7904d0596e822b4e13bd5ac2cb9b3bbc18d87c31f6528db9e58d4d9cf7e22caebf7a05d84ba ./w29ee011.c +31cce5a77dfa59f2bb6dc13691f12f8f389f219d00cb405a91f0640ba38d27e896633c76699b894e27ec6e11ac064d2f4ebc5ce0bc26c05ed7c1ccf5de74056e ./atahpt.c +62b58cd8486a49011bf2710ce607a8057e1daefc01ee96d6807f74a41d41bf6deb0d0dbe35a4e87eed63873b8c727335e5e2bd1a51a0089215bc64700cdabe9c ./sst49lfxxxc.c +681ca83bab089e7784f2d2597c30b5dce6e72f871f84679433e60dba66edc4dcbd3a08ced399998690549e12ba42949ee376dd5bec26a26c2ce64f083e4e4c78 ./nic3com.c +984419f850be6a3574f4b1e2c604b45332f113e9b392ea5b23a2c3e2f4840f0041c453e79385591faac52176de7966989f1c14a31cc3909fb0cdfb4550682188 ./pickit2_spi.c +96e7ee448770e69a2b32231ea46af1f12c6477ef95835d580006f6bc001acdde21c77ce78d5cc3258814c5d1fbe6875c8ca89e0877f90dccab5d6141019c0bff ./dmi.c +2f603045fd997ca8804674d407f7a68a6680e1c6096955ebe87903502198748588c90193f3bb3e6aa9806b947f2b0074a97b66d5bf02952fc5ccdd6c7bd43e31 ./programmer.h +53afac514088c76e58364e4f1c926c6b56b03d3fdffd98310e12a1371e3169394ccbb6e650849ca38e6eb6e3eb5d8117793976ddcec1775e72a55c3b9ae3b866 ./spi.h +77bdf14ff60a86db1f2b5c59fc796710ef1ad24ef2fb6a5dd32f0c27ef715920b8ccf8ca6c9d819f9adfb9fc93c6cec3d9b02a9f48706d668ebc978af2d847f2 ./serprog.c +a87ea33815bd2948cf24d95fc7a381584d0b7ba6e207b31fd9e01f83019b1cbda94bd872aa4517f8b5110ccc0a66a89a542115ae2c2d028a3ae5157ac0941ce4 ./util/ich_descriptors_tool/Makefile +9e2cd8d86670a641149dea657586a029cd923545ea41179e2f6ce671e4f39ff2abe1f9c8d3d451fb58e10e6ced0a14cc18dcc8636a2656656a49f1dbc8357b13 ./util/ich_descriptors_tool/ich_descriptors_tool.c +3cde4bdb189ec6cea0596e6bdd70b3af725d5c1cbbe54ea461eaabc485e7882b0e48ec95657a5629ad8079b71f1d7e55b4404f4b055481ea549ad1de27c74980 ./util/ich_descriptors_tool/TODO +af09770a7c6d727d0ed2f39deb452e653b55537f908fba2800f1a4cbeee2963bd5110eef71ff8c003d3a50496ce196d76478a6ebe97fb0d0e7ed92c1f25c47d1 ./util/z60_flashrom.rules +174cb70641a502c7a45c6dfe1e0ee3585cdc9ce2024820dd146b9040cd6809a2d7c8837d45bb0f9c6a9d6530d4cc56a68c18b0a2bf407432d99e11538caf322e ./util/flashrom_partial_write_test.sh +97b1817193ac0c58b25a57845d79f83439fa31f75d60ed78f04f1676c40526da5a0ce76498d02c4e467ea4ea4582127ccd00963f20df09120e6c0c7df0837318 ./util/getrevision.sh +5ebf00d127c8c7a0333b79475464c7a168263876253f76041db2eadd8755e529a325bd76b6e6e6c4cd1a43e7104b6bc9b305f76d2c8a90b99afd3428ac1fe4ac ./util/list_yet_unsupported_chips.sh +a360ad28062ddb1a14a586b4c0176dfa84e8744256a02261aedae11237fcedd66c4ee8c1eaa616537c6382118df8e92cde56628f2082a97267b84ebfdddaabc8 ./flash.h +2bd291f72fd02f4d224974833c1c3ee39d9ff1ea52092f95f998070a4371e2e89b8664780c53dc4d13a330fc9f38c73ac9011855dcdcef5f1061cc190fb8aac5 ./pcidev.c +501a57bb8f976eee22e42a8a60d2a45aa535b929e52e72c6b2d3e52d6f28d17802548c0a8511e4c2e2a219214b20b1cdb0ce428671e01401205ef1040b8f6903 ./hwaccess.h +945ecbc41a5d3b375bf891d7950b0ba89a12e4f006030e3a97933c5cae19db9312dd51bff200ef2beb19da044b644e7d102889155704ddfe62fb842ad7c7ed38 ./ft2232_spi.c +9726215786b6ef3f4dbb90aecb8d48ea1ff277fdf2d190574f51eef71877bd1c007166042ee30e8150cbdf10c9fb338a109168a4a548250c6e451738bdb6352e ./opaque.c +500f3c968be264e1226b6a510c6937a7f5131c09e9ac74275be86184ad6639f912030ffc2b157ad96f8d51c5f1eab0f44c68fd6e99c7f9f3f8ba16b11796bf4a ./print.c +e7e69aeb29b62df92961d9b89d487e1f1a41c0d2087e9ebf6e577a1e604e7b9da250e9e08a5616b2d3de647e12e023d5fcb8be68b33638ffdbf1a8a3d8aee7de ./internal.c +0f22a485d40f11444ed2431505c1ae6486c9418198a073c258bb56160c31959c8b9f22055d850b5bcde090abeff75dbd4c10851df5e0e0daedadc1c6c4082e17 ./buspirate_spi.c +6f49fc4a6ba5fa12a42498ca6be77abbf5a0424901fbf44bad4e3e9dfa7e8787e2e47a4e8b9c455a481a27787217b151da12a45038af633c3bbab9f9a571a65f ./sst_fwhub.c +058be03c84b26d3b57477e8968952104dec92f00c8b518fe4f8c8fd05cb1a08190c22c82ea8d104921bd99ecf6baba1719bc365ad60505fd8bfa79094d9cd7ee ./drkaiser.c +cd017d83c49530e4a9be692cc5a86dee4ba5522a5ce3b49451d4403ac8098f091d74e010484699ee0cc748daf7d719d81fd96d230da3c075fa09fb67fbcfff37 ./spi25.c +fb75398b4394e28608ad57f7af729d3cef867a6d8eebf1815db8151c0eea226479de66de9b3e4569909069c0544ed2c99445d7a2a2e597657e95c02bcbb44e99 ./processor_enable.c +5a87c4e8344b858c8a3ec20b4f8f77870a91cd30384b735c1ad3ad8de8b9112d4ba831c6f17ee713cdc9e7bea0eeffecfe1c0f7110ce7d81d33e1249a0e1f9b2 ./cbtable.c +b431a6e38894cddde07fb65e7c324e9417d57040816de53186f675ddd73ea0b73ec7d4f363067f1d8d1c72cde4faeeff9668c9a9c354652b7b64f98533ae8f8e ./stm50.c +9d452718b374d65d9043d906f00f96ce31ed00e6101946cc5fba91e80e8548960bcb7bd3912ce876e6b9aa11b57060741b987081f9945f7f734c26c4f40b4ad3 ./gfxnvidia.c +2383fb8e1f9e915c83fb418f1ce7f5f5a55072ea36fa554adeafd3cd2d7ce141406e1a4b00effd6cf43e263b550d67b288e911a510550b14496048355d77e5ae ./helpers.c +24e1a2c9b290778bdd9ff2684a1105d835e30fdeefe8ccee7fbc531cd911e24db03b76a81e9aa0d29f1e245135b36d9af5b72ec8b3a5583db1f5e530df35df91 ./udelay.c +f71649b108c0540705d0738348656ce0de6d860f0f5a14af627c225facf18493cab987dc1290daf7fa25b34cfe01d58df81fb8a1e4ecb091036ffc81d62ff9f8 ./spi25_statusreg.c +3adda777071104d504ba2e7b1503c28dd4b1a46be4a8c5ae85555dc6cc39b359c8ab8921f319b9f62a7c952513094e25ee29ea3692b29626b10d5a02001c1d8e ./at45db.c +c420481aa1888642a98e825bf130c2a4bd82fc95de11d85f971b4099f01191a695ccc52958e1a27c48cccfd368276ca640445f7db5c9d64ace4cbaa1a9f39c03 ./it85spi.c +483293506eb05b18137262886eb091b66c7b0604b6ed96f51569769129366ed16d37c65967b9e7bc8d9dc34edbbc05aff71cc41babf5f2f1b0e5155a6b9e9578 ./os.h +d48ef80467dffb1521809022f945369da2a2a3f3439ee96c876c724ed2c037a9b35ca99ece55a01bafeafa991b6067e7c91479e2945177752429f432385af12d ./serprog.h +f6b9a0d85c5b83bf9f54fba3f7dcdf1129949019dcd9af85486711fd58b7c85ee09ced4aa5754f3f7c7140a6b5994546129e243372512fd660af7442635b7089 ./physmap.c +eda6ccf4b6b243f4c999a1e31f2dfa436f3176882736638725f450289a349197c3e2441faeb9953937043743eec464b53d2b8731e3db5865bbdfc9afe75b4ba4 ./nicrealtek.c +f22cba3546bd93541baed44d617b63e2a4f7c96399964e66c930d395c86ab7c88e7e8c020203a7a60cf9da6363649e178da6fa5c6e10a2b05a3c2663e4f9244b ./layout.c +15cd5b2d98e13eb2923d77335c9bfeb1f84b8e6d3ca43baeeb9744276c3da570c0c2ac3010698f3b8f7f932584926e866300a960244ff33aa3f9e47e0e070231 ./serial.c +dd060e7086aee57bdc428add0490882700ebcfd81047629a65bd112910d1ce4765b7c6ad3957c05076d5f47d974378f7a997edd03c87a209ddb9fa1a1d787543 ./chipset_enable.c +5014fce42cb96d8d20c1eb018408d23be652fdea637c7b059f3080dc28b7743fb69a837a97a251a3c135b2b9778a10d07520e787e13df88e6046a539c4eea591 ./linux_spi.c +438321f7b9dc0a00a384dc09946328a22526505d2d0943f2c452e944328d0677317cf7852f920605b2e5e6cf834395d65208a0778a36703d1ed878dfb78aa599 ./README +1eebd8b60b272897f9db190f9fc8481c48b4dcb2679f77478c1e195bb755edb1a6ca360cae90a5f748d385cf44a0f7a70f00d3d0fb2a85f9a85147e096de9e34 ./coreboot_tables.h +1995e3a34dd55e1d74bff1ef355c7c3c2c6be14c46114ab2c4a6f2193d1c2643f1c0b7b2dd898b1a24978d9300b473dcf0de9b2b222e9c062fe11db32650d76d ./rayer_spi.c +b85b2d1868cb4bfd187b3d6a6762b8882078db1e434c4ea97eb7fe21a535458bcc05978f649202f82add4256c5ecedc2f6b08bf000f068b997d4c75b10e915b1 ./sst28sf040.c +497780f28a817b108d09c79cb3c31e4da39fd8be468a06810030168accb0c7e4bfdf56a24fe5c47f3bdc0a2473b96daa43f31516e54b84da823854f0621a2acd ./Makefile +42b790a001f9fb0cf3758112504975f35e0c22e63a5615f5a8dbcfb279cc634abe5470d6c623fd1c5ce400ebc039d93c772261fd978845747b618040e0934576 ./print_wiki.c +5ff9002672521909c21b11563a1f5afd6b95bce46ca7882cd930953a3a85eb507a572e7da315949248b619e307460f157408db4bc50fd7fbcdcb01d37fa4deb1 ./nicintel_eeprom.c +f65db58573d40eba3e898c8691d32304c183699aaf5d4372e9415643c5e1f8ac0bbb7aebdb01de28114a9f1d1f1856403baca43c1c27723cd361fb6bfed9a025 ./cli_output.c +736df9a15ff59c973ecab500591429556fd6d4247ed8bb78c524e73f96c04a27e6059995a2c667ab550f90a065cf78e20ab6d8282e998a456110cb548cbfb718 ./dediprog.c +33d5338cf5984a4042b0a9086d08d09f43a5ba519353c1d3fe1ea04a0cf0294171c2ca30cf81a174aad266519971eeec582b0b48b710508c1de2cc1305d618d2 ./Documentation/mysteries_intel.txt +60de11bf79dc47cf17f2b8a7eb63f4627ee4e14354df8fde749c4a3f74eaa8b19905bae113978176ccc5166ca1c1d17ba03375c6253190e96b980d66d0691c6e ./Documentation/serprog-protocol.txt +44f2a808e00a45ccd7c024feca7b406baec1e92bcbfc39456ec7c63718858571e59638a8267069cea11d7c69e51e9811b204ce5004b5513d28bfb5b6295e0c13 ./sfdp.c +92d893e03bf386c71dba858ab746d0f429c2523e07be7d7ffda0f69158ff89d71677df77cedae6ec1cddf87727055fd690c6d1c9fab72f29bf3b4becdc2714dd ./spi.c +9a0bc56ad651e67d321516f74e806bdae01a29636d7cb888b629a0021892eda1a1a87bc5e84a4e107e98cd8b4841d12aa8ba8bbd6f9a395d1dab8f61e9082447 ./chipdrivers.h |