diff options
author | Yegor Yefremov <yegorslists@googlemail.com> | 2016-06-24 14:35:10 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-06-25 15:35:44 +0200 |
commit | c6ba80ccae02fc8e26f6716480c200ed35efa9d6 (patch) | |
tree | 1fdaaa80973570180892155bc36d3a6e1c2c3ee9 | |
parent | 1edf9fc19485f5f133604adde042f4b51dfd75f1 (diff) | |
download | buildroot-c6ba80ccae02fc8e26f6716480c200ed35efa9d6.tar.gz buildroot-c6ba80ccae02fc8e26f6716480c200ed35efa9d6.zip |
libsoc: add Python bindings support
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
[Thomas: add --disable-python, use 'else ifeq'.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/libsoc/libsoc.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/libsoc/libsoc.mk b/package/libsoc/libsoc.mk index 878616b92e..03bef043d9 100644 --- a/package/libsoc/libsoc.mk +++ b/package/libsoc/libsoc.mk @@ -11,4 +11,16 @@ LIBSOC_LICENSE_FILES = LICENCE LIBSOC_AUTORECONF = YES LIBSOC_INSTALL_STAGING = YES +# Install Python 2 bindings +ifeq ($(BR2_PACKAGE_PYTHON),y) +LIBSOC_DEPENDENCIES += python +LIBSOC_CONF_OPTS += --enable-python=2 +# Install Python 3 bindings +else ifeq ($(BR2_PACKAGE_PYTHON3),y) +LIBSOC_DEPENDENCIES += python3 +LIBSOC_CONF_OPTS += --enable-python=3 +else +LIBSOC_CONF_OPTS += --disable-python +endif + $(eval $(autotools-package)) |