From fa5f38922274f2449162c34d74f92a1ab8e79450 Mon Sep 17 00:00:00 2001 From: Giacomo Caironi <30932677+giacomocaironi@users.noreply.github.com> Date: Tue, 5 Jul 2022 12:56:58 +0200 Subject: [PATCH 1/2] Add instructions for building the ledger emulator --- test/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/test/README.md b/test/README.md index 9e98a95dc..3cad6a0ab 100644 --- a/test/README.md +++ b/test/README.md @@ -277,6 +277,37 @@ $ 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/ +``` + ## 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. From adf0fe2253cc38d083638d77168ad83c4d439803 Mon Sep 17 00:00:00 2001 From: Giacomo Caironi <30932677+giacomocaironi@users.noreply.github.com> Date: Tue, 5 Jul 2022 19:33:56 +0200 Subject: [PATCH 2/2] Add coldcard instructions --- test/README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/test/README.md b/test/README.md index 3cad6a0ab..b894e6f7b 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 @@ -308,6 +308,28 @@ $ 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.