-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# build for both native and riscv targets | ||
build: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
||
# build for native target | ||
build-native: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
|
||
# build for riscv target | ||
build-riscv: | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
run: | ||
cargo run | ||
|
||
# build for both native and riscv targets | ||
build: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
||
# build for native target | ||
build-native: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
|
||
# build for riscv target | ||
build-riscv: | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
||
# disassembles the riscv binary | ||
disassemble: | ||
riscv64-linux-gnu-objdump -d target/riscv32i-unknown-none-elf/release/vnd-bitcoin | ||
|
||
# show the sections of the riscv binary | ||
show-sections: | ||
readelf -S target/riscv32i-unknown-none-elf/release/vnd-bitcoin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
run: | ||
cargo run | ||
|
||
# build for both native and riscv targets | ||
build: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
||
# build for native target | ||
build-native: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
|
||
# build for riscv target | ||
build-riscv: | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
||
# disassembles the riscv binary | ||
disassemble: | ||
riscv64-linux-gnu-objdump -d target/riscv32i-unknown-none-elf/release/vnd-test | ||
|
||
# show the sections of the riscv binary | ||
show-sections: | ||
readelf -S target/riscv32i-unknown-none-elf/release/vnd-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
# build for both native and riscv targets | ||
integration-tests: | ||
cargo test --features speculos-tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
run: | ||
cargo run | ||
|
||
# build for both native and riscv targets | ||
build: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
||
# build for native target | ||
build-native: | ||
cargo build --release --target=x86_64-unknown-linux-gnu | ||
|
||
# build for riscv target | ||
build-riscv: | ||
cargo build --release --target=riscv32i-unknown-none-elf | ||
|
||
# disassembles the riscv binary | ||
disassemble: | ||
riscv64-linux-gnu-objdump -d target/riscv32i-unknown-none-elf/release/vnd-test | ||
|
||
# show the sections of the riscv binary | ||
show-sections: | ||
readelf -S target/riscv32i-unknown-none-elf/release/vnd-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
run: | ||
speculos build/nanos2/bin/app.elf | ||
|
||
run-nanox: | ||
speculos build/nanox/bin/app.elf | ||
|
||
run-nanosplus: | ||
speculos build/nanos2/bin/app.elf | ||
|
||
run-flex: | ||
speculos build/flex/bin/app.elf | ||
|
||
run-stax: | ||
speculos build/stax/bin/app.elf | ||
|
||
|
||
load-nanosplus: | ||
python3 -m ledgerblue.runScript --scp --fileName build/nanos2/bin/app.apdu --elfFile build/nanos2/bin/app.elf | ||
|
||
load-nanox: | ||
python3 -m ledgerblue.runScript --scp --fileName build/nanox/bin/app.apdu --elfFile build/nanox/bin/app.elf | ||
|
||
load-flex: | ||
python3 -m ledgerblue.runScript --scp --fileName build/flex/bin/app.apdu --elfFile build/flex/bin/app.elf | ||
|
||
load-stax: | ||
python3 -m ledgerblue.runScript --scp --fileName build/stax/bin/app.apdu --elfFile build/stax/bin/app.elf | ||
|