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.

(From OE-Core rev: fd5b497cc8a2f9f93f732070123b073bfb6d2eca)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2018-09-11 16:41:48 +01:00
committed by Richard Purdie
parent 5bf97f6741
commit 529daba874

View 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' \