Adding meta-aws layer onto yocto

Showing results for 
Search instead for 
Did you mean: 

Adding meta-aws layer onto yocto

Contributor I


Iam working with imx 8M Quad and imx 8M Nano EVK.  I have built the core image minimal with the build configuration as listed below. I tried integrating AWS IoT core device SDK  as a meta layer, there I'm facing issues while bitbaking aws-iot-device-sdk-cpp-v2 recipe from meta-aws layer onto imx-yocto-bsp. Please find the detailed explanation below and the CMake error log attached.


Build Configuration:

BB_VERSION           = "1.44.0"

BUILD_SYS            = "x86_64-linux"

NATIVELSBSTRING      = "ubuntu-18.04"

TARGET_SYS           = "aarch64-poky-linux"

MACHINE              = "imx8mqevk"  (also "imx8mnevk")

DISTRO               = "fsl-imx-wayland"

DISTRO_VERSION       = "5.4-zeus"

TUNE_FEATURES        = "aarch64 cortexa53 crc crypto"

Target image:  core-image-minimal



  • The Issue faced while adding  aws-iot-device-sdk-cpp-v2 recipe from meta-aws layer (
  • All dependent layers(openembedded-core, meta-oe, meta-yocto-bsp, meta-filesystems, meta-python) are added to imx-yocto-bsp/sources.
  • Layers' names are appended to build/conf/bblayers.conf file.
  • IMAGE_INSTALL_append = " aws-iot-device-sdk-cpp-v2" added to imx-yocto-bsp/build/conf/local.conf.
  • $ bitbake aws-iot-device-sdk-cpp-v2 produces the following error in CMakeError.log.


One workaround that we have implemented is : The Zeus branch of meta-aws does not contain aws-iot-device-sdk-cpp-v2. So, the meta-aws zeus branch is cloned into imx-yocto-bsp/sources and the aws-iot-device-sdk-cpp-v2 ( recipe is added manually before bitbaking. 


Since the recipe aws-iot-device-sdk-cpp-v2 depends on aws-crt-cpp, aws-crt-cpp bitbake begins but fails. The CMakeError.log is attached for reference.

Key errors are:

  1. aarch64-poky-linux-gcc: error: unrecognized command line option '-mavx2'
  2. fatal error: immintrin.h: No such file or directory
  3. fatal error: intrin.h: No such file or directory
  4. aarch64-poky-linux-gcc: error: unrecognized command line option '-Wgnu'
  5. aarch64-poky-linux-gcc: error: missing argument to '-fsanitize='

Looking forward for your support 

0 Kudos
0 Replies