summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAgalya Babu RadhaKrishnan <agalyax.babu.radhakrishnan@intel.com>2018-10-04 15:09:58 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-10-27 17:57:55 +0200
commitafbafdca7cb7f6c42d62881fec9dfb17e07eb099 (patch)
treeed4ed7738c313c9b8d047bf3972288f6116610fe /config
parent3771edc35438bbe476babd1aeb2bc1e6675864ad (diff)
downloaddpdk-next-eventdev-afbafdca7cb7f6c42d62881fec9dfb17e07eb099.zip
dpdk-next-eventdev-afbafdca7cb7f6c42d62881fec9dfb17e07eb099.tar.gz
dpdk-next-eventdev-afbafdca7cb7f6c42d62881fec9dfb17e07eb099.tar.xz
vfio: disable in FreeBSD build with meson
FreeBSD compilation was failing through meson build. RTE_EAL_VFIO is not supported in FreeBSD. But RTE_EAL_VFIO was enabled for both linux and freebsd. So RTE_EAL_VFIO is removed from config/rte_config.h and based on the platform RTE_EAL_VFIO flag is enabled/disabled appropriately. Fixes: 844514c735 ("eal: build with meson") Cc: stable@dpdk.org Signed-off-by: Agalya Babu RadhaKrishnan <agalyax.babu.radhakrishnan@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'config')
-rw-r--r--config/meson.build3
-rw-r--r--config/rte_config.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/config/meson.build b/config/meson.build
index 275f00b..0b710b7 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -103,3 +103,6 @@ dpdk_conf.set('RTE_COMPILE_TIME_CPUFLAGS', ','.join(compile_time_cpuflags))
dpdk_conf.set_quoted('RTE_EAL_PMD_PATH', eal_pmd_path)
install_headers('rte_config.h', subdir: get_option('include_subdir_arch'))
+
+# enable VFIO only if it is linux OS
+dpdk_conf.set('RTE_EAL_VFIO', host_machine.system() == 'linux')
diff --git a/config/rte_config.h b/config/rte_config.h
index 333fb0b..d3732e9 100644
--- a/config/rte_config.h
+++ b/config/rte_config.h
@@ -35,7 +35,6 @@
#define RTE_MAX_TAILQ 32
#define RTE_LOG_DP_LEVEL RTE_LOG_INFO
#define RTE_BACKTRACE 1
-#define RTE_EAL_VFIO 1
#define RTE_MAX_VFIO_CONTAINERS 64
/* bsd module defines */