bpf: use helper to install headers

Message ID 20201022075038.16998-1-david.marchand@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series bpf: use helper to install headers |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/travis-robot success Travis build: passed
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS

Commit Message

David Marchand Oct. 22, 2020, 7:50 a.m. UTC
  Libraries can use the headers variable to install headers.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/librte_bpf/meson.build | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Comments

Bruce Richardson Oct. 22, 2020, 8:21 a.m. UTC | #1
On Thu, Oct 22, 2020 at 09:50:38AM +0200, David Marchand wrote:
> Libraries can use the headers variable to install headers.
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
  
David Marchand Oct. 22, 2020, 12:31 p.m. UTC | #2
On Thu, Oct 22, 2020 at 10:21 AM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> On Thu, Oct 22, 2020 at 09:50:38AM +0200, David Marchand wrote:
> > Libraries can use the headers variable to install headers.
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > ---
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied.
  

Patch

diff --git a/lib/librte_bpf/meson.build b/lib/librte_bpf/meson.build
index 6070898cb6..48460e9505 100644
--- a/lib/librte_bpf/meson.build
+++ b/lib/librte_bpf/meson.build
@@ -13,9 +13,9 @@  elif dpdk_conf.has('RTE_ARCH_ARM64')
 	sources += files('bpf_jit_arm64.c')
 endif
 
-install_headers('bpf_def.h',
-			'rte_bpf.h',
-			'rte_bpf_ethdev.h')
+headers = files('bpf_def.h',
+		'rte_bpf.h',
+		'rte_bpf_ethdev.h')
 
 deps += ['mbuf', 'net', 'ethdev']