path: root/config
diff options
authorBruce Richardson <>2019-04-09 11:55:35 +0100
committerThomas Monjalon <>2019-04-17 18:09:51 +0200
commitb458c2927ab416fd7becfbc740ccfa53f0dfbdd1 (patch)
tree7f9187c56505d7c30ea518bbe1479164b1e21288 /config
parentc039a73fc62040d5bc5811a8dae367daf7198646 (diff)
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 file. Signed-off-by: Bruce Richardson <> Reviewed-by: David Marchand <> Acked-by: Luca Boccassi <>
Diffstat (limited to 'config')
1 files changed, 7 insertions, 0 deletions
diff --git a/config/ b/config/
index 483139b..ce6af25 100644
--- a/config/
+++ b/config/
@@ -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))
# set the major version, which might be used by drivers and libraries
# depending on the configuration options
pver = meson.project_version().split('.')