summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-04-09 11:55:35 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-04-17 18:09:51 +0200
commitb458c2927ab416fd7becfbc740ccfa53f0dfbdd1 (patch)
tree7f9187c56505d7c30ea518bbe1479164b1e21288 /config
parentc039a73fc62040d5bc5811a8dae367daf7198646 (diff)
downloaddpdk-draft-windows-b458c2927ab416fd7becfbc740ccfa53f0dfbdd1.zip
dpdk-draft-windows-b458c2927ab416fd7becfbc740ccfa53f0dfbdd1.tar.gz
dpdk-draft-windows-b458c2927ab416fd7becfbc740ccfa53f0dfbdd1.tar.xz
build: simplify subdirectory detection for EAL
Within EAL we had a series of if statements for selecting the EAL directory to use. Now that the directory names match those of the OS's they are for we can instead just use a generated subdirectory name, shortening the code. To avoid strange errors, we still need to check for unsupported OS's, but do this check up-front in the config meson.build file. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'config')
-rw-r--r--config/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/meson.build b/config/meson.build
index 483139b..ce6af25 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -1,6 +1,13 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017-2019 Intel Corporation
+# check the OS is supported, rather than going any further
+supported_exec_envs = ['freebsd', 'linux', 'windows']
+exec_env = host_machine.system()
+if not supported_exec_envs.contains(exec_env)
+ error('unsupported system type "@0@"'.format(exec_env))
+endif
+
# set the major version, which might be used by drivers and libraries
# depending on the configuration options
pver = meson.project_version().split('.')