firmware: make commit hash embedding more robust a...
by whitequark 2 weeks 4 days
firmware: make commit hash embedding more robust and explain it.
6318b55c
support.usb.libusb1: don't crash if hotplug is uns...
by whitequark 2 weeks 5 days
support.usb.libusb1: don't crash if hotplug is unsupported.
27a68fc6
software/deploy-firmware: skip group addition if g...
by Florian Klink 2 weeks 5 days
software/deploy-firmware: skip group addition if group already exists

Running the script on a distribution where the current user is using gid
100 fails, as that group already exists inside the image:

```
Setting up libgssapi-krb5-2:arm64 (1.20.1-2+deb12u3) ...
Setting up libgdbm-compat4:arm64 (1.23-3) ...
Setting up libperl5.36:arm64 (5.36.0-7+deb12u2) ...
Setting up libcurl3-gnutls:arm64 (7.88.1-10+deb12u12) ...
Setting up perl (5.36.0-7+deb12u2) ...
Setting up liberror-perl (0.17029-2) ...
Setting up git (1:2.39.5-0+deb12u2) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
+ groupadd --gid 100 caller
groupadd: GID '100' already exists
```
(nonzero exit code, aborted build)

It's fine to skip group creation in this case, we care about the group
to exist, not how it's called.
e4a53fdc
software: update `pdm.min.lock`.
by github-merge-queue 2 weeks 6 days
c69ffd66
manual: revisions: add legend diagram from 1b2 (#4...
by whitequark 3 weeks 1 day
manual: revisions: add legend diagram from 1b2 (#418).
568e208d
pyproject.toml: fix spi-flashrom module name
by J. Neuschäfer 3 weeks 2 days
pyproject.toml: fix spi-flashrom module name

The module was temporarily called flashrom instead of spi_flashrom, but
this isn't the case anymore.
57cd1b45
manual: add links to the WebUSB port of the softwa...
by whitequark 3 weeks 3 days
7943521a
pyproject: constrain python-version in a less ambi...
by Austin Seipp 3 weeks 5 days
pyproject: constrain python-version in a less ambiguous way

`uv` pointed this out to me while running glasgow; the `~=` operator
for dependency resolution is a bit subtle; it basically allows you to
"round up" the upper bound of a dependency but it does so based on the
least-sigificant-specified component of a version number.

Basically that means `~=3.11` is equal to "from any version 3.11 up-to
< 4.0" but `~3.11.0` means "from any version 3.11.0 up-to < 3.12.0".

We want the first, but it's apparently subtle enough that uv (probably
correctly, tbh) warns about it. Let's write it in a more unambiguous
way.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
3d58d712
applet.interface.spi_controller: fix mode parsing.
by Ahmed Charles 3 weeks 6 days
c8d9329b
support.usb.webusb: map `NetworkError` to `ErrorSt...
by whitequark 3 weeks 5 days
support.usb.webusb: map `NetworkError` to `ErrorStall`.

Disconnecting the device seems to produce a `NotFoundError` with
"The device was disconnected." in the message. This isn't a great
solution but I don't have anything better.
ec2f589f
Report a bug