/blue-devenv

Development Environment for Ledger Blue and Nano S

Primary LanguageShellApache License 2.0Apache-2.0

Ledger Blue development environment

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

Getting from Docker

A development environment image can be downloaded from Docker Hub

Building for Docker

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

Building on Linux

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

Building on another architecture

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.

Contact

For any question please contact hello@ledger.fr