commit | acc1beaf61edd656333a35684cba895c17e5a2f4 | [log] [tgz] |
---|---|---|
author | Julius Werner <jwerner@chromium.org> | Fri Mar 04 00:16:22 2022 |
committer | Julius Werner <jwerner@chromium.org> | Mon Mar 07 22:19:38 2022 |
tree | c3953d7f40a8850861afd1e7d184b079c4b80933 | |
parent | 5e9ba9919fe833f38321822550c2ccea01540cfd [diff] |
Fix flashrom and vboot Flashrom recently split out a CONFIG_INTERNAL_X86 option from CONFIG_INTERNAL. Generally this should be on automatically, but since standalone-hdctools (crudely) forces all CONFIG options to no for some reason, we need to enable it manually to keep things working. In addition to that, libftdi is different from libftdi1 in Debian, and flashrom needs libftdi1, so fix the dependency list. vboot's dump_fmap.c stopped compiling after __attribute__((fallthrough)) was replaced by a macro (which we don't have since we don't download the whole vboot tree, and remove all #include statements). Add another sed line to fix that. In general, unlike flashrom itself we don't ever expect the dump_fmap binary to need functional updates in the future, but vboot is still a large repository that may cause churn due to random refactors. So to try to keep standalone-hdctools more stable in the future, let's just hardcode today's vboot ToT commit and keep using that forever so that future churn doesn't affect us. BUG=b:222374123 Change-Id: I2e5edeadbeefdeadbeef8b7ef408b0c28f2137f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/standalone-hdctools/+/3501240 Reviewed-by: Sergey Frolov <sfrolov@google.com> Tested-by: Julius Werner <jwerner@chromium.org>
This is a repository of scripts that enable common hardware debug tasks outside of a Chromium chroot.
When all you need is quick access to servod, flashrom, or others, the wrapper scripts here will get you up and running without the overhead of creating, syncing, or entering a chroot.
This repo is designed such that you can clone or download the entire repo and run scripts within, or grab and run individual scripts.
You can download and run individual scripts without checking out the entire repo:
script=servod repo='https://chromium.googlesource.com/chromiumos/platform/standalone-hdctools/' curl -f "${repo}/+/main/${script}?format=TEXT" | base64 -d > "${script}" "./${script}"
Since this repo isn‘t in the manifest, it won’t show up in your chroot. Instead, to make changes:
git clone https://chromium.googlesource.com/chromiumos/platform/standalone-hdctools cd standalone-hdctools curl -Lo .git/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg chmod +x .git/hooks/commit-msg git checkout -b changes # (make some changes) git commit -a git push origin HEAD:refs/for/main
The above steps will upload a patch to chromium-review.googlesource.com where you can get your patch reviewed, and submit.