Modifying the Domain Sources (Driver and Library Code)

To add/modify the domain sources (driver and library code) using the Vitis™ software platform, you must create your own repository with all the required files including the .mld/.mdd files and the source files. The installed driver and library code are located in the <Vitis_Install_Dir>/data/embeddedsw directory. A driver or library code component includes source files in the src directory and metadata in data directory. In the .mld/.mdd file, bump up the driver/library version number and add this repository to the Vitis software platform.

The Vitis software platform automatically infers all the components contained within the repository and makes them available for use in its environment. To make any modifications, you must make the required changes in the repository. Building the application gives you the modified changes.

Creating a Repository

A software repository is a directory where you can install third-party software components as well as custom copies of drivers, libraries, and operating systems. When you add a software repository, the Vitis™ software platform automatically infers all the components contained within the repository and makes them available for use in its environment.

Your Vitis software platform workspace can point to multiple software repositories. The scope of the software repository can be global (available across all workspaces) or local (available only to the current workspace). Components found in any local software repositories added to a Vitis software platform workspace take precedence over identical components, if any, found in the global software repositories, which in turn take higher precedence over identical components found in the Vitis software platform installation.

A repository in the Vitis software platform requires a specific organization of the components. Software components in your repository must belong to one of the following directories:

  • drivers: Used to hold device drivers.
  • sw_services: Used to hold libraries.
  • bsp: Used to hold software platforms and board support packages.
  • sw_apps: Used to hold software standalone applications.
  • sw_apps_linux: Used to hold Linux applications.

Within each directory, sub-directories containing individual software components must be present. The following diagram shows the repository structure.

Figure 1: Repository Structure


Adding the Repository

  1. Select Xilinx > Repositories.
  2. To add the repository you created in Creating a Repository, follow one of these two steps:
    • To ensure that your repository driver/library repository is limited to the current workspace, click New to add it under Local Repositories.
    • To ensure that your repository driver/library repository is available across all workspaces, click New to add it under Global Repositories.
  3. Select Apply and Close to add the custom drivers/libraries from the repositories.