Export VPD data into program friendly format. |
|||
Issue descriptionCurrently the vpd tool can only: * Dump the raw data of a specific key. * Dump all vpd data into human readable but hard to parse format. * Export all vpd data into an executable shell script which can set all the vpd data back. In factory repository, we need a more program friendly format so that our code can get all the vpd data easily and be less error-prone.
,
Dec 12 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/vpd/+/8964afe6e3f5ad2cff04c8ff2c1211a5f7b63002 commit 8964afe6e3f5ad2cff04c8ff2c1211a5f7b63002 Author: Yong Hong <yhong@chromium.org> Date: Tue Dec 12 19:09:11 2017 vpd: Adds a way to export vpd data into null-terminate format. This CL adds a new export format, which is more program friendly: ``` key1=value1\0key2=value2\0...keyN=valueN\0 ``` Use `--null-terminated` commandline argument to select this format for exporting the vpd data. BUG= chromium:776337 TEST=manually test; make test BRANCH=None Change-Id: I3dc030387ed9fdf8cee8b23e84d47ff98d26e1c2 Reviewed-on: https://chromium-review.googlesource.com/727503 Commit-Ready: Yong Hong <yhong@google.com> Tested-by: Yong Hong <yhong@google.com> Reviewed-by: Yong Hong <yhong@google.com> [modify] https://crrev.com/8964afe6e3f5ad2cff04c8ff2c1211a5f7b63002/include/lib/lib_vpd.h [modify] https://crrev.com/8964afe6e3f5ad2cff04c8ff2c1211a5f7b63002/lib/vpd_container.c [modify] https://crrev.com/8964afe6e3f5ad2cff04c8ff2c1211a5f7b63002/vpd.c [modify] https://crrev.com/8964afe6e3f5ad2cff04c8ff2c1211a5f7b63002/tests/test_export.sh
,
Dec 20 2017
,
Jul 30
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Dec 11 2017