Building RFDC application from git sources for ZCU111

In this short demo we will discuss how to build a baremetal and Linux application targeting the RFDC driver from the git sources (ie without SDK or Petalinux)

Building Libmetal:

The libmetal library can be downloaded from here. However, in this demo I will be using the libmetal that is delivered with embeddedsw here

Libmetal dependencies:

The libmetal needs the libsysfs. If the user is on Ubuntu, then they can just use the command below:

Users, can also build this from git sources:

Copy the toolchain.cmake into embeddedsw/ThirdParty/sw_services/libmetal/src/libmetal/cmake/platforms

For example:

To build, use the make:

Building baremetal RFDC driver:

Open the baremetal makefile at embeddedsw\XilinxProcessorIPLib\drivers\rfdc\src

Note, there are two makefiles here; MakeFile and MakeFile.Linux

Make the changes below to the make file to add the Library, and Include paths:

User can pass the make parameters as shown below.

Note: the libxil.a will need to be copied manually into the same location as we built the libmetal.a file above. This is the archived library of all the other compiled driver .o files in the BSP:

This can be found here psu_cortexa53_0\lib

 User will also need all the header files in the include folder. In SDK these are populated using the HSI API to read the IP used. It then finds the matching driver (from the MLD file). It then populates the

Include folder in the BSP with the header files for the drivers.

Building Linux RFDC driver:

Open the baremetal makefile at embeddedsw\XilinxProcessorIPLib\drivers\rfdc\src

Note, there are two makefiles here; MakeFile and MakeFile.Linux

Users can rename, the MakeFile to MakeFile.BareMetal, and rename the MakeFile.Linux to MakeFile.

Make the changes below to the make file to add the Library, and Include paths:

Then just call this make file: