36 Commits

Author SHA1 Message Date
Michał Kopeć 3617713e9a scripts/ecspy_to_c.py: add SPDX header
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2024-12-03 14:49:49 +01:00
Filip Gołaś df00c13f97 scripts/ecspy_to_c.py: Typo "GPIO_ALT1"
Co-authored-by: Michał Kopeć <michal@nozomi.space>
2024-07-30 11:21:20 +02:00
Filip Gołaś 94dee1e511 scripts/ecspy_to_c.py: Split regex to multiple lines
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-30 09:02:42 +02:00
Filip Gołaś 9a6c2e1bd2 scripts/ecspy_to_c.py: Support missing pot group in ecspy log GPCR
entry

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-30 08:53:12 +02:00
Filip Gołaś 7a55956472 scripts/mtl_ecspy_to_c.py: rename to ecspy_to_c.py
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-26 13:37:50 +02:00
Filip Gołaś c29bf96dd6 scripts/mtl_ecspy_to_c.py: Only set data on OUT pins
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-26 09:49:12 +02:00
Filip Gołaś 57ae8fa52b scripts/mtl_ecspy_to_c.py: Convert data to C code
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-26 09:35:40 +02:00
Filip Gołaś 4b884cfffd scripts/mtl_ecspy_to_c.py: parse both gpcr and gcr regs
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-25 14:47:45 +02:00
Filip Gołaś e27c224b8d scripts/mtl_ecspy_to_c.py: Parses the input
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-25 14:37:24 +02:00
Filip Gołaś 799ba753ad scripts/mtl_ecspy_to_c.py: add empty script
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2024-07-25 09:33:06 +02:00
Michał Kopeć 411fab9b7c rebrand tool to dasharo_ectool
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2023-11-17 18:31:14 +01:00
Maciej Pijanowski 3e8d2cbe8b tree-wide: fix typos from codespell
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2023-09-20 11:19:47 +02:00
Michał Kopeć 981a540d2d scripts/lint/02-clang-format.sh: print error message on fail
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2023-08-29 12:51:23 +02:00
Tim Crawford 7205f1a49e Add shellcheck lint
Run shellcheck [1] on the bash files.

[1]: https://www.shellcheck.net/

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-01-18 13:52:14 -07:00
Tim Crawford 58f9ed4051 Run lints at pre-commit
Install a hook to run lints at pre-commit to force issues to be fixed
during development.

This introduces a 5-10 second delay when committing due to how slow
clang-format is.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-01-18 13:52:14 -07:00
Tim Crawford 1aadc68257 scripts: Rewrite lint scripts
Rewrite lint scripts to report what they do and if they pass. In the
case they fail list the files that caused the failure, except for
clang-format, which will be slow to run of every file individually
(should just run `make fmt` anyway). Also add a script to run all the
lints in order with a single command.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-01-18 13:52:14 -07:00
Ian Douglas Scott 004c7acf6c Remove scripts/layouts.sh
Superseded by `keyboard-configurator/layouts.py`.
2022-11-29 09:20:41 -07:00
Tim Crawford 04df6ae311 Add .clang-format
Most options are configured to keep most of the current style.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-03-22 12:52:47 -06:00
Tim Crawford 1cb61e6918 deps.sh: Update rustup or inform user of env vars
Ensure rustup is up-to-date to avoid users having a version that is too
old to support the TOML format.

If rustup was just installed, tell the user to source the new env vars
to use the correct version of the toolchain.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-01-18 08:09:56 -07:00
Jeremy Soller 7d75235081 Fix ectool path in power.sh 2021-12-02 10:35:56 -07:00
Jeremy Soller e8ce6d9096 Add libhidapi-dev to deps 2021-11-17 18:26:26 -07:00
Tim Crawford 3fe0e2f4e4 Add hidapi deps
ectool uses hidapi, which requires cc and pkg-config to be available.

This fixes building ectool on a minimal install system.
2021-05-25 09:15:02 -06:00
Tim Crawford aa880033e3 Add missing xxd dep 2021-05-14 12:48:34 -06:00
Tim Crawford 316376c271 Add deps for Arch Linux 2021-05-14 12:48:34 -06:00
Tim Crawford 8bdcf243ec Add lint to ensure spaces are used for indentation 2021-05-07 12:44:48 -06:00