diff --git a/test/README.md b/test/README.md index 04b0322e9..c064d8786 100644 --- a/test/README.md +++ b/test/README.md @@ -46,7 +46,7 @@ $ cd work In order to build the Trezor emulator, the following packages will need to be installed: ``` -build-essential curl git python3 python3-pip libsdl2-dev libsdl2-image-dev gcc-arm-none-eabi libnewlib-arm-none-eabi gcc-multilib +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 ``` The python packages can be installed with @@ -277,6 +277,59 @@ $ cp jade/main/qemu/qemu_efuse.bin simulator/ $ cd .. ``` +## Ledger emulator + +### Dependencies + +In order to build the Ledger emulator, the following packages will need to be installed: + +``` +cmake gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gdb-multiarch qemu-user-static +``` + +The python packages can be installed with + +``` +pip install construct flask-restful jsonschema mnemonic pyelftools pillow requests +``` + +### Building + +Clone the repository: + +``` +$ git clone --recursive https://github.com/LedgerHQ/speculos.git +``` + +Build the emulator: + +``` +$ cmake -Bbuild -H. +$ make -C build/ +``` + +## Coldcard emulator + +Clone the repository: + +``` +git clone --recursive https://github.com/Coldcard/firmware.git +``` + +### Dependencies + +In order to build the Coldcard emulator, the following packages will need to be installed: + +``` +build-essential git python3 python3-pip libudev-dev gcc-arm-none-eabi libffi-dev xterm swig libpcsclite-dev +``` +You also have to install its python dependencies + +``` +pip install -r requirements.txt +``` + + ## Bitcoin Core 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.