mirror of
git://git.yoctoproject.org/meta-dpdk.git
synced 2025-07-19 12:59:03 +02:00
dpdk: RDEPENDS on python3 instead of python2
Also make sure that scripts use python3. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
parent
aa883aead3
commit
3df31347ed
|
@ -34,7 +34,7 @@ export CONFIG_HAVE_NUMA = "${@bb.utils.contains('PACKAGECONFIG', 'numa', 'y', 'n
|
||||||
# specific directory
|
# specific directory
|
||||||
datadir[unexport] = "1"
|
datadir[unexport] = "1"
|
||||||
|
|
||||||
RDEPENDS_${PN} += "python-subprocess"
|
RDEPENDS_${PN} += "python3-core"
|
||||||
DEPENDS = "virtual/kernel"
|
DEPENDS = "virtual/kernel"
|
||||||
do_configure[depends] += "virtual/kernel:do_shared_workdir"
|
do_configure[depends] += "virtual/kernel:do_shared_workdir"
|
||||||
|
|
||||||
|
@ -143,6 +143,10 @@ do_install () {
|
||||||
done
|
done
|
||||||
|
|
||||||
cp -r ${S}/mk ${D}${INSTALL_PATH}/
|
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"
|
PACKAGES += "${PN}-examples ${PN}-test"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user