diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2020-01-23 15:30:20 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-01-29 15:17:16 +0800 |
commit | 3df31347ed47032197a9abb9254127088b498140 (patch) | |
tree | 11d0eec308083f6a539b84e7f11e8b742175657f /recipes-extended/dpdk | |
parent | aa883aead3d72ae31c4c290a7bfea1e075e6bf08 (diff) | |
download | meta-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>
Diffstat (limited to 'recipes-extended/dpdk')
-rw-r--r-- | recipes-extended/dpdk/dpdk.inc | 6 |
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 |
35 | datadir[unexport] = "1" | 35 | datadir[unexport] = "1" |
36 | 36 | ||
37 | RDEPENDS_${PN} += "python-subprocess" | 37 | RDEPENDS_${PN} += "python3-core" |
38 | DEPENDS = "virtual/kernel" | 38 | DEPENDS = "virtual/kernel" |
39 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | 39 | do_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 | ||
148 | PACKAGES += "${PN}-examples ${PN}-test" | 152 | PACKAGES += "${PN}-examples ${PN}-test" |