aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2020-01-23 15:30:20 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2020-01-29 15:17:16 +0800
commit3df31347ed47032197a9abb9254127088b498140 (patch)
tree11d0eec308083f6a539b84e7f11e8b742175657f
parentaa883aead3d72ae31c4c290a7bfea1e075e6bf08 (diff)
downloadmeta-dpdk-3df31347ed47032197a9abb9254127088b498140.tar.gz
meta-dpdk-3df31347ed47032197a9abb9254127088b498140.tar.bz2
meta-dpdk-3df31347ed47032197a9abb9254127088b498140.zip
dpdk: RDEPENDS on python3 instead of python2
Also make sure that scripts use python3. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-extended/dpdk/dpdk.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 9b04881..99d1f69 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -34,7 +34,7 @@ export CONFIG_HAVE_NUMA = "${@bb.utils.contains('PACKAGECONFIG', 'numa', 'y', 'n
# specific directory
datadir[unexport] = "1"
-RDEPENDS_${PN} += "python-subprocess"
+RDEPENDS_${PN} += "python3-core"
DEPENDS = "virtual/kernel"
do_configure[depends] += "virtual/kernel:do_shared_workdir"
@@ -143,6 +143,10 @@ do_install () {
done
cp -r ${S}/mk ${D}${INSTALL_PATH}/
+
+ for ss in $(find ${D} -type f -name "*.py"); do
+ sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${ss}
+ done
}
PACKAGES += "${PN}-examples ${PN}-test"