summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2022-03-23 12:06:37 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2022-03-24 16:15:51 +0100
commitaa468000b9cb29760665bd014fbc8e42e29068c1 (patch)
tree1be69f33d7f8b124b397d80c1ebc14a04af64acd
parent0a39c7702ac3d475b183815bae2e4bb550275a6d (diff)
downloadptxdist-aa468000b9cb29760665bd014fbc8e42e29068c1.tar.gz
ptxdist-aa468000b9cb29760665bd014fbc8e42e29068c1.tar.xz
host-python3: add pyelftools, cryptography checks
Add the checks for python3 cryptgraphy and pyelftools. These will be required for bumping the OP-TEE release. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Message-Id: <20220323110640.1124214-1-r.czerwinski@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-system-python3.in6
-rw-r--r--rules/host-system-python3.make12
2 files changed, 18 insertions, 0 deletions
diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in
index baafc1572..4be968f43 100644
--- a/rules/host-system-python3.in
+++ b/rules/host-system-python3.in
@@ -23,4 +23,10 @@ config HOST_SYSTEM_PYTHON3_SETUPTOOLS
config HOST_SYSTEM_PYTHON3_SIX
bool
+config HOST_SYSTEM_PYTHON3_PYELFTOOLS
+ bool
+
+config HOST_SYSTEM_PYTHON3_CRYPTOGRAPHY
+ bool
+
endif
diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make
index a44767c50..02e9da141 100644
--- a/rules/host-system-python3.make
+++ b/rules/host-system-python3.make
@@ -60,6 +60,18 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON3_SIX
ptxd_bailout "Python six module not found! \
Please install python3-six (debian)";
endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_PYELFTOOLS
+ @echo "Checking for Python Pyelftools ..."
+ @$(SYSTEMPYTHON3) -c 'import elftools' 2>/dev/null || \
+ ptxd_bailout "Python elftools module not found! \
+ Please install python3-pyelftools (debian)";
+endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_CRYPTOGRAPHY
+ @echo "Checking for Python Cryptography ..."
+ @$(SYSTEMPYTHON3) -c 'import cryptography' 2>/dev/null || \
+ ptxd_bailout "Python cryptography module not found! \
+ Please install python3-cryptography (debian)";
+endif
@$(call touch)
# vim: syntax=make