Development ContainerΒΆ
You can install a Docker container based on Ubuntu 20.04 which provides a Linux microPlatform build environment (this is the same container image as used by our own CI). This is the recommended work environment for building Linux microPlatform 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 76 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:76
Set up 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 instructions in Install the Linux microPlatform to
build the Linux microPlatform inside the running container, using
/build/lmp
as your main work folder.