mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
eddbd0c314
commit
0458fa6b83
@@ -10,7 +10,7 @@ HOMEPAGE = "https://btrfs.wiki.kernel.org"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067"
|
||||
SECTION = "base"
|
||||
DEPENDS = "util-linux attr e2fsprogs lzo acl python3-setuptools-native"
|
||||
DEPENDS = "util-linux attr e2fsprogs lzo acl"
|
||||
DEPENDS_append_class-target = " udev"
|
||||
RDEPENDS_${PN} = "libgcc"
|
||||
|
||||
@@ -19,13 +19,16 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \
|
||||
file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \
|
||||
"
|
||||
|
||||
inherit autotools-brokensep pkgconfig manpages distutils3-base
|
||||
PACKAGECONFIG ??= "python"
|
||||
PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native"
|
||||
PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native"
|
||||
PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd"
|
||||
|
||||
inherit autotools-brokensep pkgconfig manpages
|
||||
inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'distutils3-base', '', d)}
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native"
|
||||
PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd"
|
||||
|
||||
EXTRA_OECONF_append_libc-musl = " --disable-backtrace "
|
||||
EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}"
|
||||
EXTRA_PYTHON_CFLAGS_class-native = ""
|
||||
@@ -41,7 +44,9 @@ do_configure_prepend() {
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install_append() {
|
||||
oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python
|
||||
if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then
|
||||
oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python
|
||||
fi
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
Reference in New Issue
Block a user