cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joancab
Advisor
Advisor
130 Views
Registered: ‎05-11-2015

Header files for HLS drivers in Linux not found/ missing __linux__ define

Vivado hardware with HLS blocks. HLS generates software drivers for both standalone and linux.

When I create the platform in Vitis, it generates a hw/drivers folder with those files (c and h)

joancab_0-1617190938951.png

When I generate a linux application, it cannot find the header files:

joancab_1-1617191076358.png

So I tried adding that path to the project, then it finds them then but fails to find the functions as __linux__ is not defined.

joancab_2-1617191256026.png

joancab_3-1617191287783.png

I tried adding it to the project but doesn't seem to change anything

joancab_4-1617191368993.png

But if I copy all these files to the app's src folder and keep the __linux__ defined in the app properties panel, it goes ahead.

I assume there is a more elegant way to work with these driver files...

 

 

0 Kudos
0 Replies