X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fdpaax%2Fmeson.build;h=a1627791161ac9b870ca2643c0bd2f253a50f0bd;hb=cd414f81d1afdabf5cf13a1d9e859877af176ab9;hp=98a1bdd488bacd9ad4cd5dd295294228910dac6a;hpb=2f3d633aa593c89c86dfb0e7df75e49ee05ad808;p=dpdk.git diff --git a/drivers/common/dpaax/meson.build b/drivers/common/dpaax/meson.build index 98a1bdd488..a162779116 100644 --- a/drivers/common/dpaax/meson.build +++ b/drivers/common/dpaax/meson.build @@ -1,12 +1,18 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 NXP -allow_experimental_apis = true - -if host_machine.system() != 'linux' - build = false +if not is_linux + build = false + reason = 'only supported on Linux' endif -sources = files('dpaax_iova_table.c') +sources = files('dpaax_iova_table.c', 'dpaa_of.c', 'caamflib.c') + +includes += include_directories('caamflib') -cflags += ['-D_GNU_SOURCE'] +if cc.has_argument('-Wno-cast-qual') + cflags += '-Wno-cast-qual' +endif +if cc.has_argument('-Wno-pointer-arith') + cflags += '-Wno-pointer-arith' +endif