diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-09-06 15:08:24 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-11 17:30:29 +0100 |
| commit | 04ef46e2b2b753321408db02a2df3753b85ac0dd (patch) | |
| tree | a96c563898a1b87d8bbd71e2ff40ae53d96c7915 | |
| parent | 1db8c61b5b937fb6d6fe7980ea471f800a21340a (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-support/bmap-tools/bmap-tools_3.4.bb | 7 |
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 | ||
| 17 | RDEPENDS_${PN} = "python-core python-compression python-mmap" | 17 | RDEPENDS_${PN} = "python-core python-compression python-mmap" |
| 18 | 18 | ||
| 19 | inherit setuptools | 19 | inherit python3native |
| 20 | inherit setuptools3 | ||
| 20 | 21 | ||
| 21 | BBCLASSEXTEND = "native" | 22 | BBCLASSEXTEND = "native" |
| 22 | |||
| 23 | do_install_append_class-native() { | ||
| 24 | sed -i -e 's|^#!.*/usr/bin/python-native/python|#! /usr/bin/env nativepython|' ${D}${bindir}/bmaptool | ||
| 25 | } | ||
