[RFC,v3,10/26] build: export drivers headers
Commit Message
Same as for device classes, external DPDK users may need to include some
bus headers for their out of tree drivers.
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
drivers/meson.build | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Thu, Jul 28, 2022 at 05:26:24PM +0200, David Marchand wrote:
> Same as for device classes, external DPDK users may need to include some
> bus headers for their out of tree drivers.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
@@ -89,6 +89,7 @@ foreach subpath:subdirs
name = drv
sources = []
headers = []
+ driver_sdk_headers = [] # public headers included by drivers
objs = []
cflags = default_cflags
includes = [include_directories(drv_path)]
@@ -158,6 +159,9 @@ foreach subpath:subdirs
dpdk_extra_ldflags += pkgconfig_extra_libs
install_headers(headers)
+ if get_option('enable_driver_sdk')
+ install_headers(driver_sdk_headers)
+ endif
# generate pmdinfo sources by building a temporary
# lib and then running pmdinfogen on the contents of