Skip to content

Commit 953d3dc

Browse files
committed
Merge #619: Improve instructions for the testing environment
adf0fe2 Add coldcard instructions (Giacomo Caironi) fa5f389 Add instructions for building the ledger emulator (Giacomo Caironi) Pull request description: Instructions to build the testing environment are not exhaustive. This PR tries to fix this ACKs for top commit: achow101: ACK adf0fe2 Tree-SHA512: af43e56b510a836446a15085838475747cb5e4c1813ad59aee3bfaee9ddebeb2706d3d8f5d848f96e4efc480d35c4a99423595c26699e3b3816db456a3f42880
2 parents e817415 + adf0fe2 commit 953d3dc

File tree

1 file changed

+54
-1
lines changed

1 file changed

+54
-1
lines changed

test/README.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $ cd work
4646
In order to build the Trezor emulator, the following packages will need to be installed:
4747

4848
```
49-
build-essential curl git python3 python3-pip libsdl2-dev libsdl2-image-dev gcc-arm-none-eabi libnewlib-arm-none-eabi gcc-multilib
49+
build-essential curl git python3 python3-pip libsdl2-dev libsdl2-image-dev gcc-arm-none-eabi libnewlib-arm-none-eabi gcc-multilib protobuf-compiler clang
5050
```
5151

5252
The python packages can be installed with
@@ -277,6 +277,59 @@ $ cp jade/main/qemu/qemu_efuse.bin simulator/
277277
$ cd ..
278278
```
279279

280+
## Ledger emulator
281+
282+
### Dependencies
283+
284+
In order to build the Ledger emulator, the following packages will need to be installed:
285+
286+
```
287+
cmake gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gdb-multiarch qemu-user-static
288+
```
289+
290+
The python packages can be installed with
291+
292+
```
293+
pip install construct flask-restful jsonschema mnemonic pyelftools pillow requests
294+
```
295+
296+
### Building
297+
298+
Clone the repository:
299+
300+
```
301+
$ git clone --recursive https://github.com/LedgerHQ/speculos.git
302+
```
303+
304+
Build the emulator:
305+
306+
```
307+
$ cmake -Bbuild -H.
308+
$ make -C build/
309+
```
310+
311+
## Coldcard emulator
312+
313+
Clone the repository:
314+
315+
```
316+
git clone --recursive https://github.com/Coldcard/firmware.git
317+
```
318+
319+
### Dependencies
320+
321+
In order to build the Coldcard emulator, the following packages will need to be installed:
322+
323+
```
324+
build-essential git python3 python3-pip libudev-dev gcc-arm-none-eabi libffi-dev xterm swig libpcsclite-dev
325+
```
326+
You also have to install its python dependencies
327+
328+
```
329+
pip install -r requirements.txt
330+
```
331+
332+
280333
## Bitcoin Core
281334

282335
In order to build `bitcoind`, see [Bitcoin Core's build documentation](https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#linux-distribution-specific-instructions) to get all of the dependencies installed and for instructions on how to build.

0 commit comments

Comments
 (0)