summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@gmail.com>2019-08-29 16:22:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-01 22:33:08 +0100
commit0458fa6b831b4d656f31dc6f4c7221e7f87ebc4a (patch)
treec83a2ae058d8e44fe48e5ae7e3aaa0ee537c6cea /meta/recipes-devtools
parenteddbd0c3145156559b9fe004508af6da27e379cb (diff)
downloadpoky-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.bb17
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"
10LICENSE = "GPLv2" 10LICENSE = "GPLv2"
11LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067" 11LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067"
12SECTION = "base" 12SECTION = "base"
13DEPENDS = "util-linux attr e2fsprogs lzo acl python3-setuptools-native" 13DEPENDS = "util-linux attr e2fsprogs lzo acl"
14DEPENDS_append_class-target = " udev" 14DEPENDS_append_class-target = " udev"
15RDEPENDS_${PN} = "libgcc" 15RDEPENDS_${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
22inherit autotools-brokensep pkgconfig manpages distutils3-base 22PACKAGECONFIG ??= "python"
23
24CLEANBROKEN = "1"
25
26PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native" 23PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native"
24PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native"
27PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd" 25PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd"
28 26
27inherit autotools-brokensep pkgconfig manpages
28inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'distutils3-base', '', d)}
29
30CLEANBROKEN = "1"
31
29EXTRA_OECONF_append_libc-musl = " --disable-backtrace " 32EXTRA_OECONF_append_libc-musl = " --disable-backtrace "
30EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}" 33EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}"
31EXTRA_PYTHON_CFLAGS_class-native = "" 34EXTRA_PYTHON_CFLAGS_class-native = ""
@@ -41,7 +44,9 @@ do_configure_prepend() {
41S = "${WORKDIR}/git" 44S = "${WORKDIR}/git"
42 45
43do_install_append() { 46do_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
47BBCLASSEXTEND = "native" 52BBCLASSEXTEND = "native"