Development Container

You can install a Docker container based on Ubuntu which provides a Linux® microPlatform (LmP) build environment. This is the same container image used by our own CI. This is the recommended environment for building LmP images on macOS and Windows.

  1. Install Docker.

  2. Create local folders for sstate-cache, downloads and build, as a way to save the build environment outside the container:

    mkdir -p ~/lmp/sstate-cache ~/lmp/downloads ~/lmp/build
    
  3. Run update 94 of the container as the builder user:

    docker run --rm -u builder --name lmp-sdk -v ~/lmp/build:/build/lmp -v ~/lmp/sstate-cache:/build/lmp/sstate-cache -v ~/lmp/downloads:/build/lmp/downloads -it hub.foundries.io/lmp-sdk:94
    
  4. Setup Git inside the container (required by repo):

    git config --global user.name "Your Full Name"
    git config --global user.email "[email protected]"
    

You can now follow the instructions in Install the LmP to build the LmP inside the running container, using /build/lmp as your main work folder.