4 Build Using the Yocto Project® SDK
The application is cross-compiled with the Yocto Project Software Development Kit (SDK) toolchain using CMake. First, source the SDK environment so that the cross-compiler is added to the path and CMake can detect the target platform:
# 1. Source the Yocto SDK environment for your target
source /opt/poky-atmel/5.0.3/environment-setup-cortexa5t2hf-neon-vfpv4-poky-linux-gnueabi
# 2. Configure and build from the evse_app directory
cd evse_app
cmake -S . -B build -DEVSE_PLATFORM=sama5 # Use sam9x75 for that target.
cmake --build build
If EVSE_PLATFORM is omitted, the platform is detected automatically when possible.
The build produces build/evse_app, a standard 32-bit Arm® Linux® executable.
Because the output is a standard ELF binary file linked against the prebuilt static libraries, it can run on either a Yocto Project or Buildroot root filesystem.
