Tutorial

  • 2021.2
  • 06/11/2021
  • Public

Step 5: Prepare Host Machine for Development

In this step, you will prepare your host system for development with Intel® TCC Tools by installing dependencies.
You can use your choice of Linux OS as a development host system. The following setup instructions have been validated and are supported on Ubuntu* 20.04 LTS but are expected to work on all common Linux distributions.
You will install these dependencies:
  • ittapi (for applications using the measurement library and measurement library build)
  • g++-multilib (for ittapi as build dependencies, verified on version 4:9.3.0-1ubuntu2)
  • cmake (for application build, verified on version 3.16.3.-1ubuntu1)
  • json-c (for the cache allocation library build, verified on version 0.13.1+dfsg-7ubuntu0.3)
  • msgfmt (for data streams optimizer and cache configurator, verified on version 0.19.8.1-10build1)
  • python3-pip (required for the data streams optimizer and cache allocation capabilities, verified on version 20.0.2-5ubuntu1.1)
  • python modules for samples (modules listed in
    ${TCC_ROOT}/samples/plot_scripts/prerequisites.txt
    )
  • python modules for data streams optimizer and cache configurator (modules listed in
    ${TCC_TOOLS_PATH}/prerequisites.txt
    )
  • Firmware and BIOS Utilities located in GitHub (for data streams optimizer and cache configurator demo)
  • Test certificates (for data streams optimizer and cache configurator demo)
Use the following steps to install the dependencies automatically (for manual instructions, see Install Host Dependencies Manually):
  1. Go to the scripts directory:
    cd ${TCC_ROOT}/scripts
  2. Run the script to install dependencies.
    Note:
    This script requires git.
    ./install_host_dependencies.sh
  3. If you see the following message, enter your user password:
    Run with sudo privileges `sudo -E ./install_host_dependencies.sh ` or Enter your password:
  4. Wait for the installation to end. It may take a few minutes. At the end of installation, you will see the following message:
    SUCCESS: all dependencies installed
  5. At the end of the script, test signing keys for capsules will be placed in
    ${TCC_TOOLS_PATH}/cert
    and
    ${TCC_TOOLS_PATH}/keys/uefi
    . Note that the test keys are for testing ONLY on Intel CRB/RVP. In a production environment, you will need to generate your own keys and work with your BIOS vendor to provision them into the BIOS.
  6. To verify that your host system is correctly configured for development with Intel® TCC Tools libraries, you can build one of the provided sample applications,
    tcc_cache_allocation_sample
    , as follows:
    1. Go to the following directory:
      cd ${TCC_ROOT}/samples/tcc_cache_allocation_sample
    2. Build the sample:
      make
    3. Check that the sample was built without errors:
      echo $?
      The output of this command should be
      0
      . If you encounter errors or the output of the command is not
      0
      , confirm that you installed all required dependencies by using the
      install_host_dependencies.sh
      script and set up environment variables by sourcing the environment file. Alternatively, follow individual steps in Install Host Dependencies Manually.

Product and Performance Information

1

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