1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2020 Marvell International Ltd.
7 reason = 'only supported on Linux'
10 lib = cc.find_library('librxp_compiler', required: false)
13 ext_deps += cc.find_library('libstdc++', required: true)
14 includes += include_directories(inc_dir)
15 cflags += ['-DREE_COMPILER_SDK']
18 sources = files('otx2_regexdev.c',
19 'otx2_regexdev_hw_access.c',
20 'otx2_regexdev_mbox.c',
21 'otx2_regexdev_compiler.c'
25 # This integrated controller runs only on a arm64 machine, remove 32bit warnings
26 if not dpdk_conf.get('RTE_ARCH_64')
27 extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
30 # for clang 32-bit compiles we need libatomic for 64-bit atomic ops
31 if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false
32 ext_deps += cc.find_library('atomic')
35 foreach flag: extra_flags
36 if cc.has_argument(flag)
41 name = 'octeontx2_regex'
42 deps += ['bus_pci', 'common_octeontx2', 'regexdev']
44 includes += include_directories('../../common/octeontx2')