[dpdk-stable] [PATCH 20.11] build: fix drivers selection without Python

Richardson, Bruce bruce.richardson at intel.com
Tue Jun 15 14:41:37 CEST 2021



> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Tuesday, June 15, 2021 1:22 PM
> To: stable at dpdk.org
> Cc: xuemingl at nvidia.com; Richardson, Bruce <bruce.richardson at intel.com>;
> Robin Jarry <robin.jarry at 6wind.com>; Luca Boccassi <bluca at debian.org>
> Subject: [PATCH 20.11] build: fix drivers selection without Python
> 
> [ upstream commit 627c5b41bb14a1afbd1489b0fc4b8224532a823d ]
> 
> The list of disabled drivers is built by calling list-dir-globs.py.
> 
> But if no Python interpreter is installed, no error is reported
> and no driver is disabled.
> 
> Example on a minimal FreeBSD VM:
> 
>   dpdk at freebsd:~/dpdk $ meson setup build -Ddisable_drivers=net/*
>   ...
>   Message:
>   ===============
>   Drivers Enabled
>   ===============
> 
>   common:
>   	cpt, iavf, octeontx, octeontx2, sfc_efx, qat,
>   bus:
>   	ifpga, pci, vdev,
>   mempool:
>   	bucket, octeontx, octeontx2, ring, stack,
>   net:
>   	ark, atlantic, bond, bnxt, cxgbe, e1000, ena, enic,
>   	failsafe, fm10k, i40e, hinic, iavf, ice, igc, ixgbe,
>   	liquidio, null, octeontx, octeontx2, pcap, qede, ring, sfc,
>   	thunderx, txgbe, virtio, vmxnet3,
>   ...
> 
>   dpdk at freebsd:~/dpdk $ cd drivers/
>   dpdk at freebsd:~/dpdk/drivers $ ~/dpdk/buildtools/list-dir-globs.py net/*
>   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")
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---

Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the stable mailing list