Build and use SDK
In order to create binary services, you need SDK suitable for your target platform. In case of Yocto build system, SDK is built by the following bitbake command:
bitbake your-image -c populate_sdk
After successful build, SDK will be located in the deploy directory under sdk folder:
aos-vm-dev-glibc-x86_64-aos-image-vm-core2-64-genericx86-64-toolchain-5.0.7.sh
Install SDK by executing the above script:
./aos-vm-dev-glibc-x86_64-aos-image-vm-core2-64-genericx86-64-toolchain-5.0.7.sh
Follow the on screen prompts and instructions.
Once SDK is installed set SDK environment by executing the following command:
source /sdk-install-dir/environment-setup-core2-64-aosvm-linux
Now you can build your source.
Build Aos VM SDK
After building the Aos VM image
(see meta-aos-vm README.md), go to yocto folder and
setup build environment issuing the following command:
source poky/oe-init-build-env build-main
Build SDK:
bitbake aos-image-vm -c populate_sdk
Install SDK by running install script:
./tmp/deploy/sdk/aos-vm-dev-glibc-x86_64-aos-image-vm-core2-64-genericx86-64-toolchain-5.0.7.sh
If you need to add additional packages to your SDK, you can set TOOLCHAIN_HOST_TASK for host packages and
TOOLCHAIN_TARGET_TASK for device packages before build. See
Yocto manual for more details.