build: simplify subdirectory detection for EAL
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 9 Apr 2019 10:55:35 +0000 (11:55 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Apr 2019 16:09:51 +0000 (18:09 +0200)
commitb458c2927ab416fd7becfbc740ccfa53f0dfbdd1
tree7f9187c56505d7c30ea518bbe1479164b1e21288
parentc039a73fc62040d5bc5811a8dae367daf7198646
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>
config/meson.build
lib/librte_eal/meson.build