ethdev: make queue release callback optional
[dpdk.git] / drivers / net / pfe / meson.build
index 3e1a228..684b062 100644 (file)
@@ -1,18 +1,21 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright 2019 NXP
 
-if host_machine.system() != 'linux'
-       build = false
+if not is_linux
+    build = false
+    reason = 'only supported on Linux'
 endif
 deps += ['common_dpaax']
 
-sources = files('pfe_ethdev.c',
-               'pfe_hal.c',
-               'pfe_hif_lib.c',
-               'pfe_hif.c')
+sources = files(
+        'pfe_ethdev.c',
+        'pfe_hal.c',
+        'pfe_hif_lib.c',
+        'pfe_hif.c',
+)
 
 if cc.has_argument('-Wno-pointer-arith')
-       cflags += '-Wno-pointer-arith'
+    cflags += '-Wno-pointer-arith'
 endif
 
 includes += include_directories('base')