]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
targetcli-fb: allow to build with Python 3
authorChristophe Vu-Brugier <cvubrugier@fastmail.fm>
Mon, 27 Oct 2014 09:26:11 +0000 (10:26 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 27 Oct 2014 18:30:53 +0000 (19:30 +0100)
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python-configshell-fb/Config.in
package/python-rtslib-fb/Config.in
package/targetcli-fb/Config.in

index 05de58542d7395dc3b953ada9aa946e4bde8296e..fb9676381138f216cc96c4690730ec6cbfd422c7 100644 (file)
@@ -1,8 +1,9 @@
 config BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
        bool "python-configshell-fb"
-       depends on BR2_PACKAGE_PYTHON
+       depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_PYTHON_PYPARSING
-       select BR2_PACKAGE_PYTHON_READLINE
+       select BR2_PACKAGE_PYTHON3_READLINE if BR2_PACKAGE_PYTHON3
+       select BR2_PACKAGE_PYTHON_READLINE if BR2_PACKAGE_PYTHON
        select BR2_PACKAGE_PYTHON_URWID
        help
          configshell-fb is a Python library that provides a framework
index b2aebcf05575c1b8c5312ffa2bee6d8c382cba38..119b63bf147383953ce3dd41161cd34fbab8f17e 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_PYTHON_RTSLIB_FB
        bool "python-rtslib-fb"
-       depends on BR2_PACKAGE_PYTHON
+       depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
        help
          rtslib-fb is an object-based Python library for configuring
          the LIO generic SCSI target, present in 3.x Linux kernel
index dcc6a542f49d6240418c9bc6b7fde756c113124b..ee241ef9e582b57a924e55a1f869c009530895e7 100644 (file)
@@ -1,9 +1,9 @@
-comment "targetcli-fb depends on python"
-       depends on !BR2_PACKAGE_PYTHON
+comment "targetcli-fb depends on Python"
+       depends on !BR2_PACKAGE_PYTHON && !BR2_PACKAGE_PYTHON3
 
 config BR2_PACKAGE_TARGETCLI_FB
        bool "targetcli-fb"
-       depends on BR2_PACKAGE_PYTHON
+       depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
        select BR2_PACKAGE_PYTHON_RTSLIB_FB
        help