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)
When I generate a linux application, it cannot find the header files:
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.
I tried adding it to the project but doesn't seem to change anything
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...