1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017 Intel Corporation 3 4sources = [ 5 'e1000_80003es2lan.c', 6 'e1000_82540.c', 7 'e1000_82541.c', 8 'e1000_82542.c', 9 'e1000_82543.c', 10 'e1000_82571.c', 11 'e1000_82575.c', 12 'e1000_api.c', 13 'e1000_i210.c', 14 'e1000_ich8lan.c', 15 'e1000_mac.c', 16 'e1000_manage.c', 17 'e1000_mbx.c', 18 'e1000_nvm.c', 19 'e1000_osdep.c', 20 'e1000_phy.c', 21 'e1000_vf.c' 22] 23 24error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', 25 '-Wno-unused-variable', '-Wno-misleading-indentation', 26 '-Wno-implicit-fallthrough'] 27c_args = cflags 28if allow_experimental_apis 29 c_args += '-DALLOW_EXPERIMENTAL_API' 30endif 31foreach flag: error_cflags 32 if cc.has_argument(flag) 33 c_args += flag 34 endif 35endforeach 36 37base_lib = static_library('e1000_base', sources, 38 dependencies: static_rte_eal, 39 c_args: c_args) 40base_objs = base_lib.extract_all_objects() 41