X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fsfc_efx%2Fmeson.build;h=0cf0a23bf8c71bb89b5ac8b1bd87e1ce0383df31;hb=c414c567c76b3d8ea0bc44d4aea9749bea48dcac;hp=b7a0763a345f0aafe2c727f1c6910ff4c5aa5b1f;hpb=3caa85daa4f7746c886d3e383d8177f9b8907540;p=dpdk.git diff --git a/drivers/common/sfc_efx/meson.build b/drivers/common/sfc_efx/meson.build index b7a0763a34..0cf0a23bf8 100644 --- a/drivers/common/sfc_efx/meson.build +++ b/drivers/common/sfc_efx/meson.build @@ -1,40 +1,46 @@ # SPDX-License-Identifier: BSD-3-Clause # -# Copyright(c) 2019-2020 Xilinx, Inc. +# Copyright(c) 2019-2021 Xilinx, Inc. # # This software was jointly developed between OKTET Labs (under contract # for Solarflare) and Solarflare Communications, Inc. -if arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64') - build = false - reason = 'only supported on x86_64' +if is_windows + build = false + reason = 'not supported on Windows' +endif + +if (arch_subdir != 'x86' and arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64')) + build = false + reason = 'only supported on x86_64 and aarch64' endif extra_flags = [] # Enable more warnings extra_flags += [ - '-Wdisabled-optimization' + '-Wdisabled-optimization', ] # Compiler and version dependent flags extra_flags += [ - '-Waggregate-return', - '-Wbad-function-cast' + '-Waggregate-return', + '-Wbad-function-cast', ] foreach flag: extra_flags - if cc.has_argument(flag) - cflags += flag - endif + if cc.has_argument(flag) + cflags += flag + endif endforeach subdir('base') objs = [base_objs] +deps += ['bus_pci'] sources = files( - 'sfc_efx.c', - 'sfc_efx_mcdi.c', + 'sfc_efx.c', + 'sfc_efx_mcdi.c', ) includes += include_directories('base')