From: Dmitry Kozlyuk Date: Fri, 16 Apr 2021 20:48:52 +0000 (+0300) Subject: buildtools: fix all drivers disabled on Windows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=74299cc7591192cbc72e8f411dff0c7f3cfdf309;p=dpdk.git buildtools: fix all drivers disabled on Windows buildtools/list-dir-globs.py printed paths with OS directory separator, which is "/" on Unices and "\" on Windows, while Meson code always expected "/". This resulted in all drivers being disabled on Windows. Replace "\" with "/" in script output. Forward slash is a valid, although non-default, separator on Windows, so no paths can be broken by this substitution. Fixes: ab9407c3addd ("build: allow using wildcards to disable drivers") Cc: stable@dpdk.org Signed-off-by: Dmitry Kozlyuk Acked-by: Bruce Richardson --- diff --git a/buildtools/list-dir-globs.py b/buildtools/list-dir-globs.py index 911e267335..d824360d39 100755 --- a/buildtools/list-dir-globs.py +++ b/buildtools/list-dir-globs.py @@ -17,4 +17,4 @@ for path in sys.argv[1].split(','): if path: for p in iglob(os.path.join(root, path)): if os.path.isdir(p): - print(os.path.relpath(p)) + print(os.path.relpath(p).replace('\\', '/'))