build: allow using wildcards to disable drivers
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 27 Jan 2020 14:28:22 +0000 (14:28 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 6 Feb 2020 08:17:24 +0000 (09:17 +0100)
commitab9407c3addde1eee0f93e7c3491536cd4db4369
tree14e7c0fcfe9f6089a3ca2fc1cd3de67c310cc01a
parent1fe7e6d2d7dba6fbbe22635a9ec4e348da83932c
build: allow using wildcards to disable drivers

Rather than having to explicitly list each and every driver to disable in a
build, we can use a small python script and the python glob library to
expand out the wildcards. This means that we can configure meson using e.g.

    meson -Ddisable_drivers=crypto/*,event/* build

to do a build omitting all the crypto and event drivers. Explicitly
specified drivers e.g. net/i40e, work as before, and can be mixed with
wildcarded drivers as required.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Robin Jarry <robin.jarry@6wind.com>
Acked-by: Luca Boccassi <bluca@debian.org>
MAINTAINERS
buildtools/list-dir-globs.py [new file with mode: 0755]
buildtools/meson.build
doc/build-sdk-meson.txt
drivers/meson.build