]> git.droids-corp.org - dpdk.git/commitdiff
drivers: add headers install helper
authorDavid Marchand <david.marchand@redhat.com>
Thu, 22 Oct 2020 07:55:45 +0000 (09:55 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 22 Oct 2020 12:16:22 +0000 (14:16 +0200)
A lot of drivers export headers, reproduce the same facility than for
libraries.

Note: this change fixes an issue with the crypto scheduler headers which
were not installed properly. A separate backport will be sent to stable
branches.

Suggested-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
24 files changed:
doc/guides/contributing/coding_style.rst
drivers/baseband/acc100/meson.build
drivers/baseband/fpga_5gnr_fec/meson.build
drivers/bus/ifpga/meson.build
drivers/bus/pci/meson.build
drivers/bus/vdev/meson.build
drivers/bus/vmbus/meson.build
drivers/mempool/dpaa2/meson.build
drivers/meson.build
drivers/net/avp/meson.build
drivers/net/bnxt/meson.build
drivers/net/bonding/meson.build
drivers/net/dpaa/meson.build
drivers/net/dpaa2/meson.build
drivers/net/i40e/meson.build
drivers/net/ice/meson.build
drivers/net/ixgbe/meson.build
drivers/net/ring/meson.build
drivers/net/softnic/meson.build
drivers/net/vhost/meson.build
drivers/raw/dpaa2_cmdif/meson.build
drivers/raw/dpaa2_qdma/meson.build
drivers/raw/ioat/meson.build
drivers/raw/ntb/meson.build

index 687c5022b360256c90ca5cca20b1bc4052c84967..bb3f3efcbc556c231999d24adb3bf9e96fa36d9d 100644 (file)
@@ -987,5 +987,8 @@ reason
 sources [mandatory]
        As above
 
+headers
+       As above
+
 version
        As above
index 7ac44dce71cdf14a7096c37c5fa9b05fa0dcc2de..9a1a3b8b07e961811fd529a5ae17ed3fca689531 100644 (file)
@@ -5,4 +5,4 @@ deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci']
 
 sources = files('rte_acc100_pmd.c')
 
-install_headers('rte_acc100_cfg.h')
+headers = files('rte_acc100_cfg.h')
index 9d10bcf80e0468ff42ce1062cddccad94ba40dfc..745cd271f28485b438c4276a8f580a2f711a20c6 100644 (file)
@@ -5,4 +5,4 @@ deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci']
 
 sources = files('rte_fpga_5gnr_fec.c')
 
-install_headers('rte_pmd_fpga_5gnr_fec.h')
+headers = files('rte_pmd_fpga_5gnr_fec.h')
index 3ff44d902a9c7896d90562786cb4738f51276c71..4d0507f55391d772debdf2516f583f0b90605113 100644 (file)
@@ -8,5 +8,5 @@ if is_windows
 endif
 
 deps += ['pci', 'kvargs', 'rawdev']
-install_headers('rte_bus_ifpga.h')
+headers = files('rte_bus_ifpga.h')
 sources = files('ifpga_common.c', 'ifpga_bus.c')
index 9778004952b38f4624f43ce65fae98d45e4c7444..78ec830b25a0f42c8406696a65ce3aa446805a7c 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright(c) 2017 Intel Corporation
 
 deps += ['pci']
-install_headers('rte_bus_pci.h')
+headers = files('rte_bus_pci.h')
 sources = files('pci_common.c',
        'pci_params.c')
 if is_linux
index 967d54e4f800f81453c91d5ac62ed5afa63b9461..44b2966baa45c51b478cd4f9cd67809dc2736f0c 100644 (file)
@@ -3,6 +3,6 @@
 
 sources = files('vdev.c',
        'vdev_params.c')
-install_headers('rte_bus_vdev.h')
+headers = files('rte_bus_vdev.h')
 
 deps += ['kvargs']
index 7e7b1dad53366f03e3ddafd10913c7bff10495cb..b90e74d69c8b919a748f8a1eef4a960f267e401a 100644 (file)
@@ -7,7 +7,7 @@ if is_windows
 endif
 
 
-install_headers('rte_bus_vmbus.h','rte_vmbus_reg.h')
+headers = files('rte_bus_vmbus.h','rte_vmbus_reg.h')
 
 sources = files('vmbus_common.c',
                'vmbus_channel.c',
index c3f479afa1d49683f35f19b2316cf31c517b01e4..ed55c0d437181ac322246942d87043d4c5641941 100644 (file)
@@ -9,4 +9,4 @@ endif
 deps += ['bus_fslmc']
 sources = files('dpaa2_hw_mempool.c')
 
-install_headers('rte_dpaa2_mempool.h')
+headers = files('rte_dpaa2_mempool.h')
index a5a6fed06e8cd473368425f14d51b0b88ec988c2..4bb7e92183d38836b2989a372418dabc1f56ca9f 100644 (file)
@@ -60,6 +60,7 @@ foreach subpath:subdirs
                name = drv
                fmt_name = ''
                sources = []
+               headers = []
                objs = []
                cflags = default_cflags
                includes = [include_directories(drv_path)]
@@ -136,6 +137,8 @@ foreach subpath:subdirs
 
                        dpdk_extra_ldflags += pkgconfig_extra_libs
 
+                       install_headers(headers)
+
                        # generate pmdinfo sources by building a temporary
                        # lib and then running pmdinfogen on the contents of
                        # that lib. The final lib reuses the object files and
index a5f63cdef9b9c55aa334baaa60642e6c68319daf..7c6b964acb0648f59446cc06814b39c16aa8635d 100644 (file)
@@ -6,4 +6,4 @@ if not is_linux
        reason = 'only supported on linux'
 endif
 sources = files('avp_ethdev.c')
-install_headers('rte_avp_common.h', 'rte_avp_fifo.h')
+headers = files('rte_avp_common.h', 'rte_avp_fifo.h')
index 39521080f88bdd60a91d8ff2787d8d71ab49c30a..9c153c402bc42d5b69426caa5133ef089dfe0e4d 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright(c) 2018 Intel Corporation
 # Copyright(c) 2020 Broadcom
 
-install_headers('rte_pmd_bnxt.h')
+headers = files('rte_pmd_bnxt.h')
 
 includes += include_directories('tf_ulp')
 includes += include_directories('tf_core')
index a3eff3b31cceec8e0b791316d07cf5681e826594..adf64626ec3c6b2e2988bd843e4c97f04731edff 100644 (file)
@@ -8,4 +8,4 @@ sources = files('rte_eth_bond_api.c', 'rte_eth_bond_pmd.c', 'rte_eth_bond_flow.c
 deps += 'sched' # needed for rte_bitmap.h
 deps += ['ip_frag']
 
-install_headers('rte_eth_bond.h', 'rte_eth_bond_8023ad.h')
+headers = files('rte_eth_bond.h', 'rte_eth_bond_8023ad.h')
index c00dba6f628179629e867530715f8d726a2392b2..ecb06ea65ed27964ad87c78fb171e54d38370501 100644 (file)
@@ -18,4 +18,4 @@ if cc.has_argument('-Wno-pointer-arith')
        cflags += '-Wno-pointer-arith'
 endif
 
-install_headers('rte_pmd_dpaa.h')
+headers = files('rte_pmd_dpaa.h')
index 4312aa73f70e9e68da881240bdce16d6c333320e..7e43553a3b65ec88cce732cd4b0cf590e0f4f6a1 100644 (file)
@@ -21,4 +21,4 @@ sources = files('base/dpaa2_hw_dpni.c',
 
 includes += include_directories('base', 'mc')
 
-install_headers('rte_pmd_dpaa2.h')
+headers = files('rte_pmd_dpaa2.h')
index 68f9895cd71608b621b2cc18b3fc9b0534c309f1..bb0c542a30bc8f04bbb0e3eec7cb80fd0a7d5222 100644 (file)
@@ -52,4 +52,4 @@ elif arch_subdir == 'arm'
        sources += files('i40e_rxtx_vec_neon.c')
 endif
 
-install_headers('rte_pmd_i40e.h')
+headers = files('rte_pmd_i40e.h')
index 99e1b773a3560fa1f647c6ce0b0ff3749f2a580d..f6a64d91c6346513baf7b53675f35832c305d472 100644 (file)
@@ -39,4 +39,4 @@ sources += files('ice_dcf.c',
                 'ice_dcf_ethdev.c',
                 'ice_dcf_parent.c')
 
-install_headers('rte_pmd_ice.h')
+headers = files('rte_pmd_ice.h')
index 949075eb2296085c05330133a00d4988ff38e033..f10437891278bba8c2e8b41877d7c248e977192b 100644 (file)
@@ -30,4 +30,4 @@ endif
 
 includes += include_directories('base')
 
-install_headers('rte_pmd_ixgbe.h')
+headers = files('rte_pmd_ixgbe.h')
index e877a4b4bd4bb4e40f83da60520031f14c9b6186..26a324eebb4002c8d702406671513a8a74e7965c 100644 (file)
@@ -2,4 +2,4 @@
 # Copyright(c) 2017 Intel Corporation
 
 sources = files('rte_eth_ring.c')
-install_headers('rte_eth_ring.h')
+headers = files('rte_eth_ring.h')
index 96c003e157893a0e300e6d14672d21010551f4b9..b96ae6ba9eebce8765dbd54f15607bcb3c76f843 100644 (file)
@@ -5,7 +5,7 @@ if not is_linux
        build = false
        reason = 'only supported on linux'
 endif
-install_headers('rte_eth_softnic.h')
+headers = files('rte_eth_softnic.h')
 sources = files('rte_eth_softnic_tm.c',
        'rte_eth_softnic.c',
        'rte_eth_softnic_mempool.c',
index 963b30f209d9d6ced92c4aa3c1ec5a48435bb069..1ae4854b8fccf5ead591f79a86bb1df4bbb1f81b 100644 (file)
@@ -4,5 +4,5 @@
 build = dpdk_conf.has('RTE_LIB_VHOST')
 reason = 'missing dependency, DPDK vhost library'
 sources = files('rte_eth_vhost.c')
-install_headers('rte_eth_vhost.h')
+headers = files('rte_eth_vhost.h')
 deps += 'vhost'
index 06c0fe756db9778638ed654a05d6efcf0a6fe67f..8824f887ce6d519fa48d4f2c851b656dbf228172 100644 (file)
@@ -6,4 +6,4 @@ reason = 'missing dependency, DPDK DPAA2 mempool driver'
 deps += ['rawdev', 'mempool_dpaa2', 'bus_vdev']
 sources = files('dpaa2_cmdif.c')
 
-install_headers('rte_pmd_dpaa2_cmdif.h')
+headers = files('rte_pmd_dpaa2_cmdif.h')
index 3eeab0d1c1d31ddb880b4c96be0b97811b580de4..0c9ae0d8dc631bef0bb298f49f94660a897e3ad2 100644 (file)
@@ -6,4 +6,4 @@ reason = 'missing dependency, DPDK DPAA2 mempool driver'
 deps += ['rawdev', 'mempool_dpaa2', 'ring', 'kvargs']
 sources = files('dpaa2_qdma.c')
 
-install_headers('rte_pmd_dpaa2_qdma.h')
+headers = files('rte_pmd_dpaa2_qdma.h')
index 5eff76a1a38186ba874d66f45e61e4a957a69c51..6fbae05b783104e374f64ae94c137c89caf210e6 100644 (file)
@@ -14,5 +14,5 @@ deps += ['bus_pci',
        'mbuf',
        'rawdev']
 
-install_headers('rte_ioat_rawdev.h',
+headers = files('rte_ioat_rawdev.h',
                'rte_ioat_rawdev_fns.h')
index 2926193a0af9000e3fe754a0a684054bd0760181..1b7c6eb449aefe285eea919c036e1cac85e617f1 100644 (file)
@@ -5,4 +5,4 @@ deps += ['rawdev', 'mbuf', 'mempool',
         'pci', 'bus_pci']
 sources = files('ntb.c',
                 'ntb_hw_intel.c')
-install_headers('rte_pmd_ntb.h')
+headers = files('rte_pmd_ntb.h')