)]}' { "commit": "1978c84e51cc8eb99f55167c6b5b6cc85439f832", "tree": "6d16f00d1022c19559031285ca53786817b18c66", "parents": [ "5ae4df3bbf2efd4471c98d5a185544f589155f87" ], "author": { "name": "Jack Rosenthal", "email": "jrosenth@chromium.org", "time": "Wed May 27 07:30:24 2020 -0600" }, "committer": { "name": "Commit Bot", "email": "commit-bot@chromium.org", "time": "Tue Jun 09 16:30:56 2020 +0000" }, "message": "host/lib: add lightweight flashrom wrapper library\n\nLightweight wrapper around flashrom, exposing two APIs:\n\n flashrom_read(programmer, region, data_out, size_out)\n flashrom_write(programmer, region, data, size)\n\n|region| can be NULL, in which case operate on the whole flash chip.\n\nThe intended usage of this wrapper library is to read/write VBNV from\nSPI flash directly, avoiding the call thru mosys (which has deprecated\nthe command). Bringing this logic into crossystem directly will also\nhelp with expanding VBNV to 64-bytes.\n\nBUG\u003dchromium:1032351,chromium:1030473,chromium:789276\nBRANCH\u003dnone\nTEST\u003dprovided unit tests\n\nChange-Id: I3997bd03a2db7e58e4e76fc200c637dd3b5b20a4\nSigned-off-by: Jack Rosenthal \u003cjrosenth@chromium.org\u003e\nReviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2218888\n", "tree_diff": [ { "type": "modify", "old_id": "d69a63a3910fc7d733d36c03bf8309b2ac5ffdd1", "old_mode": 33188, "old_path": "Makefile", "new_id": "19d586a343f97d0b032a059968ae06f65cddba39", "new_mode": 33188, "new_path": "Makefile" }, { "type": "modify", "old_id": "6c0bd164aab13feb40b73fbacbdd753280ddda56", "old_mode": 33188, "old_path": "firmware/2lib/include/2return_codes.h", "new_id": "8d69847c574e1270d386899854bc59e8f50b0a51", "new_mode": 33188, "new_path": "firmware/2lib/include/2return_codes.h" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "061c5b841159371aebf8e135b728d2ea0fecd3c1", "new_mode": 33188, "new_path": "host/lib/flashrom.c" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "560fbb0e7ad31fd5729a0d897676cd5bc6e26753", "new_mode": 33188, "new_path": "host/lib/include/flashrom.h" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "f8dbd442c829127ec91b9c7a98cf385aae1d9290", "new_mode": 33188, "new_path": "tests/vb2_host_flashrom_tests.c" } ] }