package/python-esptool: fix zlib module for python3
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 17 Jan 2021 11:21:45 +0000 (12:21 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 17 Jan 2021 14:25:55 +0000 (15:25 +0100)
Fixes config with BR2_PACKAGE_PYTHON3=y

WARNING: unmet direct dependencies detected for BR2_PACKAGE_PYTHON_ZLIB
  Depends on [n]: BR2_PACKAGE_PYTHON [=n]
  Selected by [y]:
  - BR2_PACKAGE_PYTHON_ESPTOOL [=y] && (BR2_PACKAGE_PYTHON [=n] || BR2_PACKAGE_PYTHON3 [=y])

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/python-esptool/Config.in

index 7d3579abdcd4c6bfc7d691631418d2779f429baf..570f9aa42f922b18a26f957515adbe2cc34f832f 100644 (file)
@@ -3,7 +3,8 @@ config BR2_PACKAGE_PYTHON_ESPTOOL
        select BR2_PACKAGE_PYTHON_ECDSA # runtime
        select BR2_PACKAGE_PYTHON_PYAES # runtime
        select BR2_PACKAGE_PYTHON_SERIAL # runtime
-       select BR2_PACKAGE_PYTHON_ZLIB # runtime
+       select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON
+       select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3
        help
          A serial utility to communicate & flash code to Espressif
          ESP8266 & ESP32 chips.