2021-02-05 08:48:47 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(C) 2020 Marvell International Ltd.
|
|
|
|
#
|
|
|
|
|
|
|
|
if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
|
2022-09-06 04:00:10 +00:00
|
|
|
build = false
|
|
|
|
reason = 'only supported on 64-bit Linux'
|
|
|
|
subdir_done()
|
2021-02-05 08:48:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
lib = cc.find_library('librxp_compiler', required: false)
|
|
|
|
if lib.found()
|
2022-09-06 04:00:10 +00:00
|
|
|
ext_deps += lib
|
|
|
|
ext_deps += cc.find_library('libstdc++', required: true)
|
|
|
|
cflags += ['-DREE_COMPILER_SDK']
|
2021-02-05 08:48:47 +00:00
|
|
|
endif
|
|
|
|
|
2022-09-06 04:00:10 +00:00
|
|
|
sources = files(
|
|
|
|
'otx2_regexdev.c',
|
|
|
|
'otx2_regexdev_compiler.c',
|
|
|
|
'otx2_regexdev_hw_access.c',
|
|
|
|
'otx2_regexdev_mbox.c',
|
|
|
|
)
|
2021-02-05 08:48:47 +00:00
|
|
|
|
|
|
|
deps += ['bus_pci', 'common_octeontx2', 'regexdev']
|
|
|
|
|
|
|
|
includes += include_directories('../../common/octeontx2')
|