summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2014-12-03 15:38:32 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-12-04 17:29:46 +0100
commitdbd740eca61007b7d76ba92f1c12808f7b568bfc (patch)
treed5c115ba09110354535473c3714c7066ce1482c6
parentb87c66a17958e669d0f62e9c7a0b52105c5cc825 (diff)
downloadptxdist-dbd740eca61007b7d76ba92f1c12808f7b568bfc.tar.gz
ptxdist-dbd740eca61007b7d76ba92f1c12808f7b568bfc.tar.xz
host-system-python: Add python-bz2 moduleptxdist-2014.12.0
Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-system-python.in3
-rw-r--r--rules/host-system-python.make6
2 files changed, 9 insertions, 0 deletions
diff --git a/rules/host-system-python.in b/rules/host-system-python.in
index 064f3e042..300b078e7 100644
--- a/rules/host-system-python.in
+++ b/rules/host-system-python.in
@@ -11,4 +11,7 @@ config HOST_SYSTEM_PYTHON_XML2
config HOST_SYSTEM_PYTHON_ARGPARSE
bool
+config HOST_SYSTEM_PYTHON_BZ2
+ bool
+
endif
diff --git a/rules/host-system-python.make b/rules/host-system-python.make
index 6edccab81..84be5b2dd 100644
--- a/rules/host-system-python.make
+++ b/rules/host-system-python.make
@@ -34,6 +34,12 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON_ARGPARSE
ptxd_bailout "Python argparse module not found! \
Please install python-argparse (debian)";
endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON_BZ2
+ @echo "Checking for Python bz2 ..."
+ @python -c 'import bz2' 2>/dev/null || \
+ ptxd_bailout "Python bz2 module not found! \
+ Please install python-bz2";
+endif
@echo
@$(call touch)