Developping applications for Ledger Blue requires two compilers :
- A standard ARM gcc to build the non-secure (STM32) firmware and link the secure (ST31) applications
- A customized ARM clang with ROPI support to build the secure (ST31) applications
A development environment image can be downloaded from Docker Hub
You can build a Docker image with the provided Dockerfile - this should be the easiest way to get started if you are not using Linux.
Note: If you are using windows for building the image, after cloning, you need to disable core.autocrlf and force core.eol lf at the project level or build-llvm.sh will fail to run correctly.
git config core.autocrlf false
git config core.eol lf
git rm --cached -r .
git reset --hard
Use the provided build-llvm.sh script file to build clang, and install a prebuilt gcc by placing the unpacked directory on the top level of this directory
While the build system has been untested on Mac OS X or Windows for the time being, we suggest having a look at the install-clang project to build clang and the sources or prebuilt binaries of the ARM gcc version.
For any question please contact hello@ledger.fr