X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fice%2Fbase%2Fmeson.build;h=3cf4ce05fa8a7c8f5279ca854b1ede9e26df3fc5;hb=292be511d2909c14db3c9ceaffa317f2beee67a0;hp=c44d0e035df635be8c6324e1f9b265856ea30c03;hpb=ce6617a0698e7cd2e5eab6d69a605a580fe0f451;p=dpdk.git diff --git a/drivers/net/ice/base/meson.build b/drivers/net/ice/base/meson.build index c44d0e035d..3cf4ce05fa 100644 --- a/drivers/net/ice/base/meson.build +++ b/drivers/net/ice/base/meson.build @@ -2,39 +2,57 @@ # Copyright(c) 2018-2021 Intel Corporation sources = [ - 'ice_controlq.c', - 'ice_common.c', - 'ice_sched.c', - 'ice_switch.c', - 'ice_nvm.c', - 'ice_flex_pipe.c', - 'ice_flow.c', - 'ice_dcb.c', - 'ice_fdir.c', - 'ice_acl.c', - 'ice_acl_ctrl.c', - 'ice_vlan_mode.c', + 'ice_controlq.c', + 'ice_common.c', + 'ice_sched.c', + 'ice_switch.c', + 'ice_nvm.c', + 'ice_flex_pipe.c', + 'ice_flow.c', + 'ice_dcb.c', + 'ice_fdir.c', + 'ice_acl.c', + 'ice_acl_ctrl.c', + 'ice_vlan_mode.c', + 'ice_ptp_hw.c', + 'ice_parser.c', + 'ice_imem.c', + 'ice_metainit.c', + 'ice_pg_cam.c', + 'ice_bst_tcam.c', + 'ice_ptype_mk.c', + 'ice_mk_grp.c', + 'ice_proto_grp.c', + 'ice_flg_rd.c', + 'ice_xlt_kb.c', + 'ice_parser_rt.c', ] -error_cflags = ['-Wno-unused-value', - '-Wno-unused-but-set-variable', - '-Wno-unused-variable', - '-Wno-unused-parameter', +error_cflags = [ + '-Wno-unused-value', + '-Wno-unused-but-set-variable', + '-Wno-unused-variable', + '-Wno-unused-parameter', ] +# Bugzilla ID: 678 +if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0')) + error_cflags += ['-Wno-array-bounds'] +endif + if is_windows and cc.get_id() != 'clang' - cflags += ['-fno-asynchronous-unwind-tables'] + cflags += ['-fno-asynchronous-unwind-tables'] endif c_args = cflags foreach flag: error_cflags - if cc.has_argument(flag) - c_args += flag - endif + if cc.has_argument(flag) + c_args += flag + endif endforeach base_lib = static_library('ice_base', sources, - dependencies: static_rte_eal, - c_args: c_args) -base_objs = base_lib.extract_all_objects() + dependencies: static_rte_eal, + c_args: c_args) +base_objs = base_lib.extract_all_objects(recursive: true)