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
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.
Adding the Repository
- Select .
- 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.
- Select Apply and Close to add the custom drivers/libraries from the repositories.
Creating the Application Project
- Select .
- Provide a project name in the Project name field. Click Next to open the New Application Project wizard.
- Select an existing platform or select Create from XSA to see the list of all the available hardware designs in installation.
- Select a hardware design file and click Next.
- A list of supported CPUs and operating systems is displayed. Select cortexa53_0 from the CPU drop-down list if you want to debug the A53 application.
- Select standalone from the OS drop-down list. Click Next.
- A list of supported application projects for this operating system and processor combination is displayed. Select any of the application templates from the list and click Finish.
- Open Standalone BSP settings in Platform Details to see a list of available drivers/libraries for the IP. You can modify/edit the driver options by clicking the drop-down icons.
- Build the application project.
- Debug the application by selecting .