Tutorial

  • 2021.1
  • 11/03/2021
  • Public

Step 2: Prepare a Yocto Project*-Based Image

In this step, you will integrate VTune™ driver to BSP Yocto image.
To build this image, your system will take anywhere from one half-hour (assuming your system is a large server) to several hours (assuming your system is a typical laptop).
  1. Finish all steps in the appropriate BSP Release Notes up to
    Build the Yocto Project-based Image
    . The step for integration of Intel® TCC Tools meta-intel-tcc-deps is mandatory.
  2. Set environment variable with location of BSP:
    export BSP_FOLDER=<BSP_directory> export VTUNE_PROFILER_2020_DIR=/opt/intel/vtune_profiler export VTUNE_TARGET_PACKAGE_DIR=${BSP_FOLDER}/proprietary
  3. Copy the VTune™ layer to the proprietary folder:
    tar -xf ${VTUNE_PROFILER_2020_DIR}/target/linux/vtune_profiler_target_x86_64.tgz -C ${BSP_FOLDER}/proprietary/
  4. Add the
    vtune-layer
    to the BBLAYERS variable in bblayers.conf:
    line_number=$(grep -n '"' ${BSP_FOLDER}/build/conf/bblayers.conf | sed -n -e '/BBLAYERS /,$p' | awk '/"/{i++}i==2' | cut -f 1 -d ':') sed -i ''"$line_number"'i \ \ ${TOPDIR}/../proprietary/vtune_profiler_target/sepdk/vtune-layer/ \\ ' ${BSP_FOLDER}/build/conf/bblayers.conf
  5. Add the VTune™ driver to install:
    echo 'IMAGE_INSTALL_append = " intel-vtune-sep-driver"' >> ${BSP_FOLDER}/build/conf/local.conf
  6. Go back to the BSP Release Notes and finish image build and flashing.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.