gpudev: export header file for external drivers
PATCH 1/1 gpudev: export header file for external drivers
In DPDK 21.05, the option driver_sdk_headers was introduced to export required headers to allow building out-of-tree drivers.
In DPDK 21.11, the gpudev driver class was introduced, without this out-of-tree compatibility.
It is fixed by exporting gpudev_driver.h as part of the driver SDK.
--- lib/gpudev/meson.build | 4 ++++ 1 file changed, 4 insertions(+)
lib/gpudev/meson.build +4 -0
@@ -5,6 +5,10 @@ headers = files( 'rte_gpudev.h', ) +driver_sdk_headers = files( + 'gpudev_driver.h' +) + sources = files( 'gpudev.c', )
Signature · 1 line
2.39.1
Quoted 7 lines · Thomas Monjalon
In DPDK 21.05, the option
driver_sdk_headerswas introduced to export required headers to allow building out-of-tree drivers.In DPDK 21.11, the gpudev driver class was introduced, without this out-of-tree compatibility.
Quoted 7 lines
It is fixed by exporting
gpudev_driver.has part of the driver SDK.Fixes 8b8036a66e3d ("gpudev: introduce GPU device class library")Reported-by David Marchand <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>
LGTM, thanks.
Signature · 1 line
David Marchand
A message that is not in the archive (sent off-list or not yet received): 2906874.VdNmn5OnKV@thomas
19/03/2023 23:28, Thomas Monjalon:
Quoted 14 lines
16/03/2023 10:23, David Marchand:
Quoted 13 lines · Thomas Monjalon
Quoted 12 lines
In DPDK 21.05, the option
driver_sdk_headerswas introduced to export required headers to allow building out-of-tree drivers.In DPDK 21.11, the gpudev driver class was introduced, without this out-of-tree compatibility.
It is fixed by exporting
gpudev_driver.has part of the driver SDK.Fixes 8b8036a66e3d ("gpudev: introduce GPU device class library")
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Reported-by David Marchand <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>LGTM, thanks.
Applied
Forgot to send the v2 merged with this addition:
"
As a consequence of exporting this header file, C++ "extern C" guard must be added.
"