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
build, as a way to save the build environment outside the container:
mkdir -p ~/lmp/sstate-cache ~/lmp/downloads ~/lmp/build
Run update 86 of the container as the
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:86
Set up Git inside the container (required by
git config --global user.name "Your Full Name" git config --global user.email "firstname.lastname@example.org"
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.