[dpdk-dev] [PATCH] build: fix drivers config with no python interpreter

Bruce Richardson bruce.richardson at intel.com
Fri May 7 11:50:42 CEST 2021


On Fri, May 07, 2021 at 11:21:57AM +0200, David Marchand wrote:
> 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 at 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 at freebsd:~/dpdk $ cd drivers/
>   dpdk at 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: ab9407c3addd ("build: allow using wildcards to disable drivers")
> Fixes: 2e33309ebe03 ("config: enable/disable drivers in Arm builds")
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list