python: add an option to make the ossaudiodev module optional for the target
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 10 Jan 2015 15:19:26 +0000 (16:19 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 10 Jan 2015 15:19:26 +0000 (16:19 +0100)
Now that we have a configure option in Python to enable/disable the
ossaudiodev module, this commit adds a configuration option to the
target Python to explicitly enable/disable this module.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python/Config.in
package/python/python.mk

index 8b27630d7c2a86ec331c3c03bf454c9ee1c5c877..87defad812db306185b75f5ecc492f2a3593f10c 100644 (file)
@@ -60,6 +60,11 @@ config BR2_PACKAGE_PYTHON_CURSES
        help
          curses module for Python.
 
+config BR2_PACKAGE_PYTHON_OSSAUDIODEV
+       bool "ossaudiodev module"
+       help
+         ossaudiodev module for Python.
+
 config BR2_PACKAGE_PYTHON_PYEXPAT
        select BR2_PACKAGE_EXPAT
        bool "pyexpat"
index bf063e9506c2b73d6f88bcc9285e01c35607675d..4a3e71c8a4b3660d2b8812eb9a329624df24144a 100644 (file)
@@ -120,6 +120,12 @@ ifeq ($(BR2_PACKAGE_PYTHON_HASHLIB),y)
 PYTHON_DEPENDENCIES += openssl
 endif
 
+ifeq ($(BR2_PACKAGE_PYTHON_OSSAUDIODEV),y)
+PYTHON_CONF_OPTS += --enable-ossaudiodev
+else
+PYTHON_CONF_OPTS += --disable-ossaudiodev
+endif
+
 PYTHON_CONF_ENV += \
        ac_cv_have_long_long_format=yes \
        ac_cv_file__dev_ptmx=yes \