Cross Compilation Environment
The SiMa.ai Palette SDK provides isolated environments for cross-compiling applications targeting different hardware and operating systems. Developers must enter the correct SDK container and activate the platform-specific toolchain before building their applications.
SiMa.ai supports two primary target environments:
Modalix: Uses eLxr Linux, a Debian-based OS offering standard package management (
apt).MLSoC: Uses Yocto Linux, a minimal and deterministic embedded OS.
To setup the cross compilation environment, follow the steps below for MLSoC or Modalix respectively.
1. Enter the SDK Container
From your host machine, enter the eLxr SDK container:
sima-user@host:~$ sima-cli sdk elxr
2. Activate the Toolchain
Once inside the container, initialize the build environment:
user@elxr-sdk:/home/docker$ source /opt/bin/simaai-init-build-env modalix
3. Verify the Environment
Check the $CC variable to confirm the cross-compiler is active:
user@elxr-sdk:/home/docker$ echo $CC
Output should resemble: aarch64-linux-gnu-gcc
1. Enter the SDK Container
From your host machine, enter the Yocto SDK container:
sima-user@host:~$ sima-cli sdk yocto
2. Verify the Environment
In the Yocto SDK the build environment should be automatically activated.
Check the $CC variable to confirm the cross-compiler is active:
user@yocto-sdk:/home/docker$ echo $CC
Output should resemble: aarch64-poky-linux-gcc ...