Skip to content

Commit

Permalink
Merge branch 'dev-v2.2.0' into hugoender-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoender authored Jun 17, 2023
2 parents 480e75e + f16f9bf commit ddeff46
Show file tree
Hide file tree
Showing 204 changed files with 5,398 additions and 3,568 deletions.
6 changes: 6 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# SPDX-FileCopyrightText: 2021 Foundation Devices, Inc. <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later

branch=`git symbolic-ref HEAD`
if [ "$branch" = "refs/heads/main" ] || [[ "$branch" == refs/heads/dev-v* ]]; then
echo "Direct commits to the main and dev branches are not allowed."
exit 1
fi

RESULTS=$(find . -name '*.py' -exec grep -H fake_it[\ ]*=[\ ]*True {} +)
LEN=`expr length "$RESULTS"`
echo $RESULTS
Expand Down
9 changes: 6 additions & 3 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Then run the following commands:
rustup target add aarch64-unknown-none

rustup target add thumbv7em-none-eabihf
rustup target add x86_64-unknown-none
cargo install cbindgen

#### Cross-Compiler Toolchain
Expand Down Expand Up @@ -161,5 +160,9 @@ To build the bootloader for a reproducibility check, go to the repo root folder:

Then run one of the following commands to build the corresponding bootloader:

just build color
just build mono
just build-bootloader color
just build-bootloader mono

Please note that building the mono bootloader is not yet supported in this repository. If you need to build it, please follow the instructions at:

https://github.com/Foundation-Devices/passport-firmware
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ ENV PATH="/cargo/bin:${PATH}"
# Finish installation of Rust toolchain.
RUN rustup component add clippy && \
rustup component add rustfmt && \
rustup target add aarch64-unknown-none && \
rustup target add thumbv7em-none-eabihf && \
rustup target add x86_64-unknown-none
rustup target add thumbv7em-none-eabihf

# Install binaries using cargo.
RUN cargo install cbindgen@^0.24 && \
Expand Down
209 changes: 199 additions & 10 deletions extmod/foundation-rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ddeff46

Please sign in to comment.