xref: /dpdk/drivers/bus/dpaa/meson.build (revision 68508c18a91064ced34c664697ce0c6e25b5f787)
16ec78c24SHemant Agrawal# SPDX-License-Identifier: BSD-3-Clause
26ec78c24SHemant Agrawal# Copyright 2018 NXP
36ec78c24SHemant Agrawal
4adf93ca5SBruce Richardsonif not is_linux
56ec78c24SHemant Agrawal    build = false
6135155a8SThomas Monjalon    reason = 'only supported on Linux'
76ec78c24SHemant Agrawalendif
86ec78c24SHemant Agrawal
95a7dbb93SShreyansh Jaindeps += ['common_dpaax', 'eventdev']
10*4ad4b20aSBruce Richardsonsources = files(
11*4ad4b20aSBruce Richardson        'base/fman/fman.c',
126ec78c24SHemant Agrawal        'base/fman/fman_hw.c',
136ec78c24SHemant Agrawal        'base/fman/netcfg_layer.c',
146ec78c24SHemant Agrawal        'base/qbman/bman.c',
156ec78c24SHemant Agrawal        'base/qbman/bman_driver.c',
166ec78c24SHemant Agrawal        'base/qbman/dpaa_alloc.c',
176ec78c24SHemant Agrawal        'base/qbman/dpaa_sys.c',
186ec78c24SHemant Agrawal        'base/qbman/process.c',
196ec78c24SHemant Agrawal        'base/qbman/qman.c',
206ec78c24SHemant Agrawal        'base/qbman/qman_driver.c',
21*4ad4b20aSBruce Richardson        'dpaa_bus.c',
22*4ad4b20aSBruce Richardson)
236ec78c24SHemant Agrawal
246ec78c24SHemant Agrawalif cc.has_argument('-Wno-cast-qual')
256ec78c24SHemant Agrawal    cflags += '-Wno-cast-qual'
266ec78c24SHemant Agrawalendif
27524a0d5dSBruce Richardsonif cc.has_argument('-Wno-pointer-arith')
28524a0d5dSBruce Richardson    cflags += '-Wno-pointer-arith'
29524a0d5dSBruce Richardsonendif
306ec78c24SHemant Agrawal
316ec78c24SHemant Agrawalincludes += include_directories('include', 'base/qbman')
32