summaryrefslogtreecommitdiffstats
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
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
34# specific directory 34# specific directory
35datadir[unexport] = "1" 35datadir[unexport] = "1"
36 36
37RDEPENDS_${PN} += "python-subprocess" 37RDEPENDS_${PN} += "python3-core"
38DEPENDS = "virtual/kernel" 38DEPENDS = "virtual/kernel"
39do_configure[depends] += "virtual/kernel:do_shared_workdir" 39do_configure[depends] += "virtual/kernel:do_shared_workdir"
40 40
@@ -143,6 +143,10 @@ do_install () {
143 done 143 done
144 144
145 cp -r ${S}/mk ${D}${INSTALL_PATH}/ 145 cp -r ${S}/mk ${D}${INSTALL_PATH}/
146
147 for ss in $(find ${D} -type f -name "*.py"); do
148 sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${ss}
149 done
146} 150}
147 151
148PACKAGES += "${PN}-examples ${PN}-test" 152PACKAGES += "${PN}-examples ${PN}-test"