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>
1 file changed
tree: c3953d7f40a8850861afd1e7d184b079c4b80933
  1. flashrom
  2. README.md
  3. servod
README.md

Standalone scripts for hardware debug and control

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.

Usage

This repo is designed such that you can clone or download the entire repo and run scripts within, or grab and run individual scripts.

Running 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}"

Guidelines

  • Follow the Chromium shell style guidelines.
  • Unless making a symlink, do not assume any other script in the repo is available.
  • With few exceptions, these scripts should download, prepare, and run other Chromium OS tools -- not provide any new functionality.

Making changes

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.