OP-TEE OS 3.6.0 has a build time dependency on pyelftools, add it to
host-system-python3 to notify the user if it is not available.

Signed-off-by: Rouven Czerwinski <[email protected]>
---
 rules/host-system-python3.in   | 3 +++
 rules/host-system-python3.make | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in
index e0ab5e8..39d6727 100644
--- a/rules/host-system-python3.in
+++ b/rules/host-system-python3.in
@@ -17,4 +17,7 @@ config HOST_SYSTEM_PYTHON3_NUMPY
 config HOST_SYSTEM_PYTHON3_SIX
        bool
 
+config HOST_SYSTEM_PYTHON3_PYELFTOOLS
+       bool
+
 endif
diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make
index f5293be..02a1793 100644
--- a/rules/host-system-python3.make
+++ b/rules/host-system-python3.make
@@ -48,6 +48,12 @@ 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
        @$(call touch)
 
 # vim: syntax=make
-- 
git-series 0.9.1

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to