X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fregex%2Focteontx2%2Fmeson.build;h=4930ce00f4f56f430c6965b64b06b6b6f321973d;hb=55918bff36c08fd8b8665f7f6a96116ba35cbd50;hp=aada0b560168c6d173feeec1b81da697f9551272;hpb=00acd962925a5f9cdf70acc9dc6efa52a26b277e;p=dpdk.git diff --git a/drivers/regex/octeontx2/meson.build b/drivers/regex/octeontx2/meson.build index aada0b5601..4930ce00f4 100644 --- a/drivers/regex/octeontx2/meson.build +++ b/drivers/regex/octeontx2/meson.build @@ -2,43 +2,27 @@ # Copyright(C) 2020 Marvell International Ltd. # -if not is_linux - build = false - reason = 'only supported on Linux' +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') + build = false + reason = 'only supported on 64-bit Linux' + subdir_done() endif lib = cc.find_library('librxp_compiler', required: false) if lib.found() - ext_deps += lib - ext_deps += cc.find_library('libstdc++', required: true) - includes += include_directories(inc_dir) - cflags += ['-DREE_COMPILER_SDK'] + ext_deps += lib + ext_deps += cc.find_library('libstdc++', required: true) + includes += include_directories(inc_dir) + cflags += ['-DREE_COMPILER_SDK'] endif -sources = files('otx2_regexdev.c', - 'otx2_regexdev_hw_access.c', - 'otx2_regexdev_mbox.c', - 'otx2_regexdev_compiler.c' - ) +sources = files( + 'otx2_regexdev.c', + 'otx2_regexdev_compiler.c', + 'otx2_regexdev_hw_access.c', + 'otx2_regexdev_mbox.c', +) -extra_flags = [] -# This integrated controller runs only on a arm64 machine, remove 32bit warnings -if not dpdk_conf.get('RTE_ARCH_64') - extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast'] -endif - -# for clang 32-bit compiles we need libatomic for 64-bit atomic ops -if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false - ext_deps += cc.find_library('atomic') -endif - -foreach flag: extra_flags - if cc.has_argument(flag) - cflags += flag - endif -endforeach - -fmt_name = 'octeontx2_regex' deps += ['bus_pci', 'common_octeontx2', 'regexdev'] includes += include_directories('../../common/octeontx2')