1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 10:39:00 +00:00
Commit Graph

56 Commits

Author SHA1 Message Date
matejcik
20ac679651 build(core/rust): enable panic_immediate_abort for firmware 2022-08-23 11:26:34 +02:00
matejcik
612d52e298 build(core): switch to nightly Rust 2022-08-23 11:26:34 +02:00
matejcik
459270ef3f build: update Rust overlay, switch to Rust stable 1.63 2022-08-12 14:56:36 +02:00
Martin Milata
16999d6b48 ci: minor caching fixes 2022-07-28 14:47:53 +02:00
Martin Milata
888ff23181 chore(nix): don't install autoPatchelfHook on MacOS 2022-07-09 21:04:44 +02:00
Dusan Klinec
2d36c4e8f3 fix(core/monero): add missing view_tags to hf15 2022-06-28 16:21:29 +02:00
Martin Milata
0112d0135a ci(nix): update to latest nixpkgs-unstable
Uses new implementation of autoPatchelf which only works on directories.
2022-06-21 15:58:06 +02:00
Dusan Klinec
1e9acf10fa fix(xmr): remove inv8 optimization as in xmr master 2022-06-08 08:59:34 +02:00
Dusan Klinec
98ec1fb067 chore(core/monero): update test binary to newest version
[no changelog]

Co-authored-by: Martin Milata <martin@martinmilata.cz>
2022-05-16 12:37:24 +02:00
Pavol Rusnak
8f1d33d5f9 build(core,legacy): remove gcc, use cc instead of gcc
for firmware builds we still use arm-none-eabi-gcc via $(PREFIX)gcc

[no changelog]
2022-04-27 15:48:14 +02:00
Martin Milata
2a3f0c16bd ci(monero): update test executable, enable more tests 2022-04-07 16:28:12 +02:00
Martin Milata
0407e78e8c ci: use autoPatchelfHook for emulators from pinned nixpkgs 2022-03-29 12:52:34 +02:00
Martin Milata
7f97ea4961 chore(nix): export library path for macos 2022-03-22 16:08:50 +01:00
Martin Milata
2e3ce4fa1a docs(core): bump MSRV
[skip_ci]
2022-03-08 12:53:12 +01:00
grdddj
b77f4b7dbc feat(shell.nix): enable rust extensions in VS Code 2022-03-08 10:32:30 +01:00
Martin Milata
5632567c06 ci: fix HWI test bitcoind sources 2022-03-03 13:59:47 +01:00
Pavol Rusnak
b9bbd5fcd7 chore: update dependencies
[no changelog]

Co-Authored-By: Martin Milata <martin@martinmilata.cz>
2022-02-15 13:28:03 +01:00
vdovhanych
48d7f71ccc ci: add hwi tests for core and legacy builds 2022-02-08 14:18:08 +01:00
Martin Milata
3100961dda ci(nix): update to pyright-1.1.204 2022-01-07 21:41:17 +01:00
grdddj
3ed92a72bb feat(ci): running connect tests against current branch 2021-12-10 14:18:21 +01:00
Martin Milata
2b7b4b13bd chore(nix): update rust to 1.57 2021-12-07 17:12:43 +01:00
Martin Milata
e43ff4ba8e ci(nix): prefer gcc over clang for symlinks with same name 2021-12-06 16:25:59 +01:00
Pavol Rusnak
4419572437
ci(nix): use gcc-arm-embedded on aarch64-darwin too
it is now enabled in nixpkgs (via rosetta)
2021-12-06 00:21:42 +01:00
Pavol Rusnak
8428456df6
ci(nix): use explicit versions for clang and gcc (#1969) 2021-12-03 12:49:08 +01:00
Martin Milata
ebfaff7904 ci(nix): keep python3.6 from old nixpkgs 2021-11-19 16:26:31 +01:00
Martin Milata
0e505ec78b ci(nix): update to latest nixpkgs-unstable 2021-11-19 10:54:31 +01:00
grdddj
6eac12e80e feat(shell.nix): adding pyright as a dependency 2021-11-19 10:54:31 +01:00
Pavol Rusnak
a3b83685ef fix(core): fix emulator build on Apple Silicon
[no changelog]
2021-11-08 11:00:04 +01:00
Martin Milata
81e66cb024 style(core/rust): enable clippy lints
[no changelog]
2021-09-23 14:22:40 +02:00
Martin Milata
c80c8edf70 ci(core): add rustfmt to style checks
[no changelog]
2021-09-16 14:57:06 +02:00
Martin Milata
7832b2f140 chore(nix): update rust to 1.55 2021-09-16 13:42:15 +02:00
Pavol Rusnak
08609cf9a1 chore(nix): update rust to 1.54 2021-09-08 13:27:52 +02:00
Pavol Rusnak
acb01916db ci(nix): update nixpkgs, use latest stable rust (1.53.0) 2021-07-14 17:34:12 +02:00
vdovhanych
6b3e743373 ci: add duration timestamps on all test jobs 2021-06-09 10:00:24 +02:00
Martin Milata
f771dc6f60 ci(nix): switch to stable rust in shell.nix
Switch to https://github.com/oxalica/rust-overlay for rustc binaries.

Drop x86_64-unknown-linux-gnu from target list as host is included by
default.
2021-05-21 13:42:10 +02:00
Pavol Rusnak
709d9e0dcd
fix(ci): update to latest nixpkgs-unstable 2021-05-07 17:11:58 +02:00
Jan Pochyla
6257584951 feat(core): Add Rust bindings to MicroPython and trezorhal
core: Remove dangling module decls

core: Use new Cargo feature resolver, use external MacOS debug info

core: Rust docs improvements

core: Upgrade bindgen

core: Add test target to Rust

ci: build rust sources

build(core): .ARM.exidx.text.__aeabi_ui2f in t1 firmware size

It's an unwind table for softfloat function inserted by rustc, probably
can be removed to save 8 bytes:
599c58db70/link.x.in (L175-L182)

scons: Remove dead code

core: Move Rust target to build/rust

core: Replace extern with a FFI version

core: Add some explanatory Rust comments

core: Use correct path for the Rust lib

core: Remove Buffer::as_mut()

Mutable buffer access needs MP_BUFFER_WRITE flag. TBD in the Protobuf PR.

core: Improve docs for micropython::Buffer

core: Minor Rust docs changes

core: Rewrite trezor_obj_get_ll_checked

core: Fix incorrect doc comment

core: Remove cc from deps

fixup! core: Rewrite trezor_obj_get_ll_checked

core: update safety comments
2021-05-05 16:00:21 +02:00
Martin Milata
88cdb72aec ci: bump nixpkgs version to latest 2021-04-06 22:06:12 +02:00
Martin Milata
8e00904a3f ci: unified shell.nix for hardware tests 2021-04-06 22:06:12 +02:00
Martin Milata
4adbb4e8e1 ci: use same pinned nixpkgs for hardware tests 2021-02-05 12:58:21 +01:00
Pavol Rusnak
1f5d8b89d7
nix: stdenv.lib -> lib
[skip_ci]
2021-01-19 17:01:47 +01:00
Tomas Susanka
677465eecd ci: update Monero test binary to latest 0.17.1.9 2021-01-13 18:12:13 +01:00
Pavol Rusnak
453df567d3 ci: various fixes and updates
- fix Nix build on macOS Big Sur (by updating to nixpkgs-unstable)
- update gcc-arm-embedded from 9.x to 10.x
- update nix to 2.3.10
- update Alpine Linux to 3.12.3
- allow to change arch in Docker
2021-01-04 14:40:16 +01:00
Pavol Rusnak
b9c0b597bc nix: bump stable nixos-20.09 to latest 2020-12-17 14:32:20 +01:00
Pavol Rusnak
50fdd183c2
ci: enable editorconfig checks, fix whitespace issues 2020-11-11 14:43:50 +01:00
Martin Milata
9ed25a718a ci: handle full dependencies in shell.nix
Handling of full dependencies (multiple python versions, Monero tests)
was moved from Dockerfile to shell.nix.

The Python packages are installed from the pinned nixpkgs revision and
do not depend on channel state at the time of docker build anymore.

The Monero test binary is now downloaded using fetchurl which fails the
build if checksum doesn't match.
2020-10-15 15:59:20 +02:00
Pavol Rusnak
2fcc34c301
ci: another try with the environment 2020-10-11 22:15:45 +02:00
Pavol Rusnak
2e4d67165f
ci(nix): update nixpkgs to latest nixos-20.09 stable 2020-10-07 16:30:50 +02:00
Pavol Rusnak
4fdb62c2e2 chore(python): replace pipenv with poetry 2020-10-07 16:21:00 +02:00
Tomas Susanka
225966ea7c ci: fix date epoch in shell.nix not in Gitlab yml file
This way we fix also local environments for devs with NixOS.
Updates 988c7f65af.
2020-09-30 09:29:43 +02:00