]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3: add PACKAGECONFIG for bluetooth
authorRoss Burton <ross.burton@intel.com>
Tue, 11 Sep 2018 15:41:48 +0000 (16:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Sep 2018 23:27:55 +0000 (00:27 +0100)
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>
meta/recipes-devtools/python/python3.inc

index 3207f91ab858b95e4692d7673959712b4c3295ca..f565b3f17149568be7d96ed093cc968c38f0839e 100644 (file)
@@ -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' \