diff options
author | Jacob Kroon <jacob.kroon@gmail.com> | 2019-08-29 16:22:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-01 22:33:08 +0100 |
commit | 0458fa6b831b4d656f31dc6f4c7221e7f87ebc4a (patch) | |
tree | c83a2ae058d8e44fe48e5ae7e3aaa0ee537c6cea /meta/recipes-devtools | |
parent | eddbd0c3145156559b9fe004508af6da27e379cb (diff) | |
download | poky-0458fa6b831b4d656f31dc6f4c7221e7f87ebc4a.tar.gz |
btrfs-tools: Add PACKAGECONFIG knob for controlling python support
(From OE-Core rev: 823c04c455e921aaed2d5edf064d82c6a4938c64)
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/btrfs-tools/btrfs-tools_5.2.1.bb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.2.1.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.2.1.bb index 647516cf92..a364cf53ed 100644 --- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.2.1.bb +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.2.1.bb | |||
@@ -10,7 +10,7 @@ HOMEPAGE = "https://btrfs.wiki.kernel.org" | |||
10 | LICENSE = "GPLv2" | 10 | LICENSE = "GPLv2" |
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067" |
12 | SECTION = "base" | 12 | SECTION = "base" |
13 | DEPENDS = "util-linux attr e2fsprogs lzo acl python3-setuptools-native" | 13 | DEPENDS = "util-linux attr e2fsprogs lzo acl" |
14 | DEPENDS_append_class-target = " udev" | 14 | DEPENDS_append_class-target = " udev" |
15 | RDEPENDS_${PN} = "libgcc" | 15 | RDEPENDS_${PN} = "libgcc" |
16 | 16 | ||
@@ -19,13 +19,16 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \ | |||
19 | file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \ | 19 | file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \ |
20 | " | 20 | " |
21 | 21 | ||
22 | inherit autotools-brokensep pkgconfig manpages distutils3-base | 22 | PACKAGECONFIG ??= "python" |
23 | |||
24 | CLEANBROKEN = "1" | ||
25 | |||
26 | PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native" | 23 | PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native" |
24 | PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native" | ||
27 | PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd" | 25 | PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd" |
28 | 26 | ||
27 | inherit autotools-brokensep pkgconfig manpages | ||
28 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'distutils3-base', '', d)} | ||
29 | |||
30 | CLEANBROKEN = "1" | ||
31 | |||
29 | EXTRA_OECONF_append_libc-musl = " --disable-backtrace " | 32 | EXTRA_OECONF_append_libc-musl = " --disable-backtrace " |
30 | EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}" | 33 | EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}" |
31 | EXTRA_PYTHON_CFLAGS_class-native = "" | 34 | EXTRA_PYTHON_CFLAGS_class-native = "" |
@@ -41,7 +44,9 @@ do_configure_prepend() { | |||
41 | S = "${WORKDIR}/git" | 44 | S = "${WORKDIR}/git" |
42 | 45 | ||
43 | do_install_append() { | 46 | do_install_append() { |
44 | oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python | 47 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then |
48 | oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python | ||
49 | fi | ||
45 | } | 50 | } |
46 | 51 | ||
47 | BBCLASSEXTEND = "native" | 52 | BBCLASSEXTEND = "native" |