numam-dpdk/buildtools
David Marchand 627c5b41bb build: fix default drivers list without Python
If no enable_drivers option is passed, the default is to build
the drivers list by calling list-dir-globs.py.

But if no Python interpreter is installed, no error is reported
and all drivers end up being disabled.

Example on a minimal FreeBSD VM:

  dpdk@freebsd:~/dpdk $ meson setup build
  ...
  drivers:
	  common/cpt:	not in enabled drivers build config
	  common/dpaax:	not in enabled drivers build config
	  common/iavf:	not in enabled drivers build config
	  common/mvep:	not in enabled drivers build config
	  common/octeontx:	not in enabled drivers build config
	  common/octeontx2:	not in enabled drivers build config
	  bus/dpaa:	not in enabled drivers build config
	  bus/fslmc:	not in enabled drivers build config
  ...

  dpdk@freebsd:~/dpdk $ cd drivers/
  dpdk@freebsd:~/dpdk/drivers $ ~/dpdk/buildtools/list-dir-globs.py */*
  env: python3: No such file or directory

Rely on meson internal interpreter.
Check return code when calling this script.

Fixes: ab9407c3ad ("build: allow using wildcards to disable drivers")
Fixes: 2e33309ebe ("config: enable/disable drivers in Arm builds")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2021-05-07 15:41:45 +02:00
..
chkincs build: change indentation in infrastructure files 2021-04-21 14:04:09 +02:00
pkg-config build: change indentation in infrastructure files 2021-04-21 14:04:09 +02:00
binutils-avx512-check.sh buildtools: fix build with busybox 2021-03-23 08:39:11 +01:00
call-sphinx-build.py doc: make sphinx comply with meson werror option 2020-10-05 23:52:02 +02:00
check-symbols.sh buildtools: fix build with busybox 2021-03-23 08:39:11 +01:00
coff.py buildtools: support COFF in pmdinfogen 2021-01-25 23:23:48 +01:00
gen-pmdinfo-cfile.py buildtools: fix archive extraction for LLVM 8 2021-01-28 22:48:29 +01:00
list-dir-globs.py buildtools: fix all drivers disabled on Windows 2021-04-17 12:49:23 +02:00
map_to_win.py build: remove Windows export symbol list 2021-04-08 17:57:33 +02:00
map-list-symbol.sh buildtools: fix build with busybox 2021-03-23 08:39:11 +01:00
meson.build build: fix default drivers list without Python 2021-05-07 15:41:45 +02:00
options-ibverbs-static.sh buildtools: get static mlx dependencies for meson 2020-02-14 12:42:13 +01:00
pmdinfogen.py buildtools: fix pmdinfogen with pyelftools < 0.24 2021-01-26 00:39:34 +01:00
symlink-drivers-solibs.sh build: fix ninja install on FreeBSD 2019-05-02 23:07:04 +02:00