summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-09-11 16:41:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-13 00:27:55 +0100
commitfd5b497cc8a2f9f93f732070123b073bfb6d2eca (patch)
treec9061153debd0a4838191a4bcf17113bbc6ae59d
parent12626b26aca281d0d5ee90dc15627083a517fa3b (diff)
downloadopenembedded-core-contrib-fd5b497cc8a2f9f93f732070123b073bfb6d2eca.tar.gz
python3: add PACKAGECONFIG for bluetooth
Instead of forcibly disabling Bluetooth (support for Bluetooth sockets in the socket module), add a PACKAGECONFIG. The default remains disabled for consistency. Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-devtools/python/python3.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3.inc b/meta/recipes-devtools/python/python3.inc
index 3207f91ab8..f565b3f171 100644
--- a/meta/recipes-devtools/python/python3.inc
+++ b/meta/recipes-devtools/python/python3.inc
@@ -23,7 +23,7 @@ PYTHON_BINABI = "${PYTHON_MAJMIN}m"
S = "${WORKDIR}/Python-${PV}"
-inherit autotools pkgconfig
+inherit autotools bluetooth pkgconfig
EXTRA_OECONF = "\
--with-threads \
@@ -32,9 +32,10 @@ EXTRA_OECONF = "\
--with-signal-module \
--enable-shared \
--enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \
- ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \
"
+PACKAGECONFIG[bluetooth] = ",ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no,${BLUEZ}"
+
do_install_append () {
sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \
-e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \