summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-09-06 15:08:24 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-11 17:30:29 +0100
commit04ef46e2b2b753321408db02a2df3753b85ac0dd (patch)
treea96c563898a1b87d8bbd71e2ff40ae53d96c7915 /meta/recipes-support
parent1db8c61b5b937fb6d6fe7980ea471f800a21340a (diff)
downloadpoky-04ef46e2b2b753321408db02a2df3753b85ac0dd.tar.gz
bmap-tools: switch to Python 3
bmap-tools is the only recipe in oe-core that still uses Python 2. Switching it to Python 3 should help to get rid of building native Python 2 and its dependencies. [YOCTO #11891] (From OE-Core rev: 0d6130b30a1219b2bc2c57578f291311f69c676e) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/bmap-tools/bmap-tools_3.4.bb7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb b/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb
index 3f75fad44b..7454f9db75 100644
--- a/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb
+++ b/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb
@@ -16,10 +16,7 @@ S = "${WORKDIR}/git"
16 16
17RDEPENDS_${PN} = "python-core python-compression python-mmap" 17RDEPENDS_${PN} = "python-core python-compression python-mmap"
18 18
19inherit setuptools 19inherit python3native
20inherit setuptools3
20 21
21BBCLASSEXTEND = "native" 22BBCLASSEXTEND = "native"
22
23do_install_append_class-native() {
24 sed -i -e 's|^#!.*/usr/bin/python-native/python|#! /usr/bin/env nativepython|' ${D}${bindir}/bmaptool
25}