mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [ptxdist] [PATCH 1/4] host-system-python3: add pyelftools
Date: Thu, 25 Jul 2019 10:25:25 +0200	[thread overview]
Message-ID: <3c5f8f1031723bdbacee0fd7b254389a6c44a7fc.1564043079.git-series.r.czerwinski@pengutronix.de> (raw)
In-Reply-To: <cover.2343090925701abd318fb2459926fd9d387826fd.1564043079.git-series.r.czerwinski@pengutronix.de>

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 <r.czerwinski@pengutronix.de>
---
 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
ptxdist@pengutronix.de

  reply	other threads:[~2019-07-25  8:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-25  8:25 [ptxdist] [PATCH 0/4] OP-TEE Bump to 3.6.0 Rouven Czerwinski
2019-07-25  8:25 ` Rouven Czerwinski [this message]
2019-07-25  8:25 ` [ptxdist] [PATCH 2/4] optee: version bump 3.5.0 → 3.6.0 Rouven Czerwinski
2019-07-25  8:53   ` Lucas Stach
2019-07-25  9:05     ` Rouven Czerwinski
2019-08-07 10:57       ` Michael Olbrich
2019-08-07 12:38         ` Rouven Czerwinski
2019-08-07 15:07           ` Michael Olbrich
2019-07-25  8:25 ` [ptxdist] [PATCH 3/4] optee-client: " Rouven Czerwinski
2019-07-25  8:25 ` [ptxdist] [PATCH 4/4] optee-test: " Rouven Czerwinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3c5f8f1031723bdbacee0fd7b254389a6c44a7fc.1564043079.git-series.r.czerwinski@pengutronix.de \
    --to=r.czerwinski@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox