common/sfc_efx/base: add interrupts module for Riverhead
[dpdk.git] / drivers / common / sfc_efx / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 #
3 # Copyright(c) 2019-2020 Xilinx, Inc.
4 #
5 # This software was jointly developed between OKTET Labs (under contract
6 # for Solarflare) and Solarflare Communications, Inc.
7
8 if arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')
9         build = false
10         reason = 'only supported on x86_64'
11 endif
12
13 extra_flags = []
14
15 # Enable more warnings
16 extra_flags += [
17         '-Wdisabled-optimization'
18 ]
19
20 # Compiler and version dependent flags
21 extra_flags += [
22         '-Waggregate-return',
23         '-Wbad-function-cast'
24 ]
25
26 foreach flag: extra_flags
27         if cc.has_argument(flag)
28                 cflags += flag
29         endif
30 endforeach
31
32 subdir('base')
33 objs = [base_objs]
34
35 sources = files(
36         'sfc_efx.c',
37         'sfc_efx_mcdi.c',
38 )
39
40 includes += include_directories('base')