1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2018-2021 Intel Corporation 3 4sources = [ 5 'ice_controlq.c', 6 'ice_common.c', 7 'ice_sched.c', 8 'ice_switch.c', 9 'ice_nvm.c', 10 'ice_flex_pipe.c', 11 'ice_flow.c', 12 'ice_dcb.c', 13 'ice_fdir.c', 14 'ice_acl.c', 15 'ice_acl_ctrl.c', 16 'ice_vlan_mode.c', 17 'ice_ptp_hw.c', 18 'ice_parser.c', 19 'ice_imem.c', 20 'ice_metainit.c', 21 'ice_pg_cam.c', 22 'ice_bst_tcam.c', 23 'ice_ptype_mk.c', 24 'ice_mk_grp.c', 25 'ice_proto_grp.c', 26 'ice_flg_rd.c', 27 'ice_xlt_kb.c', 28 'ice_parser_rt.c', 29] 30 31error_cflags = [ 32 '-Wno-unused-value', 33 '-Wno-unused-but-set-variable', 34 '-Wno-unused-variable', 35 '-Wno-unused-parameter', 36] 37 38# Bugzilla ID: 678 39if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0')) 40 error_cflags += ['-Wno-array-bounds'] 41endif 42 43if is_windows and cc.get_id() != 'clang' 44 cflags += ['-fno-asynchronous-unwind-tables'] 45endif 46 47c_args = cflags 48 49foreach flag: error_cflags 50 if cc.has_argument(flag) 51 c_args += flag 52 endif 53endforeach 54 55base_lib = static_library('ice_base', sources, 56 dependencies: static_rte_eal, 57 c_args: c_args) 58base_objs = base_lib.extract_all_objects(recursive: true) 59