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.
Create local folders for
sstate-cache
,downloads
andbuild
, as a way to save the build environment outside the container:mkdir -p ~/lmp/sstate-cache ~/lmp/downloads ~/lmp/build
Run update 92 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:92
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.