mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Marco Felsch <m.felsch@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/3] host-system-python3: add ply and pyyaml option
Date: Thu,  1 Sep 2022 10:59:40 +0200	[thread overview]
Message-ID: <20220901085941.2597793-2-m.felsch@pengutronix.de> (raw)
In-Reply-To: <20220901085941.2597793-1-m.felsch@pengutronix.de>

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 rules/host-system-python3.in   |  6 ++++++
 rules/host-system-python3.make | 12 ++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in
index 4be968f43..21d02e9e7 100644
--- a/rules/host-system-python3.in
+++ b/rules/host-system-python3.in
@@ -23,9 +23,15 @@ config HOST_SYSTEM_PYTHON3_SETUPTOOLS
 config HOST_SYSTEM_PYTHON3_SIX
 	bool
 
+config HOST_SYSTEM_PYTHON3_PLY
+	bool
+
 config HOST_SYSTEM_PYTHON3_PYELFTOOLS
 	bool
 
+config HOST_SYSTEM_PYTHON3_PYYAML
+	bool
+
 config HOST_SYSTEM_PYTHON3_CRYPTOGRAPHY
 	bool
 
diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make
index 02e9da141..217f1f56d 100644
--- a/rules/host-system-python3.make
+++ b/rules/host-system-python3.make
@@ -60,12 +60,24 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON3_SIX
 		ptxd_bailout "Python six module not found! \
 	Please install python3-six (debian)";
 endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_PLY
+	@echo "Checking for Python ply ..."
+	@$(SYSTEMPYTHON3) -c 'import ply' 2>/dev/null || \
+		ptxd_bailout "Python ply module not found! \
+	Please install python3-ply (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_PYYAML
+	@echo "Checking for Python pyyaml ..."
+	@$(SYSTEMPYTHON3) -c 'import yaml' 2>/dev/null || \
+		ptxd_bailout "Python pyyaml module not found! \
+	Please install python3-yaml (debian)";
+endif
 ifdef PTXCONF_HOST_SYSTEM_PYTHON3_CRYPTOGRAPHY
 	@echo "Checking for Python Cryptography ..."
 	@$(SYSTEMPYTHON3) -c 'import cryptography' 2>/dev/null || \
-- 
2.30.2




  reply	other threads:[~2022-09-01  9:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-01  8:59 [ptxdist] [PATCH 1/3] blspec-entry: add linux-appendroot support Marco Felsch
2022-09-01  8:59 ` Marco Felsch [this message]
2022-09-11  7:10   ` [ptxdist] [APPLIED] host-system-python3: add ply and pyyaml option Michael Olbrich
2022-09-01  8:59 ` [ptxdist] [PATCH 3/3] host-system-python3: order options alphabetical Marco Felsch
2022-09-11  7:10   ` [ptxdist] [APPLIED] " Michael Olbrich
2022-09-02  7:20 ` [ptxdist] [PATCH 1/3] blspec-entry: add linux-appendroot support Michael Olbrich
2022-09-02  8:03   ` Marco Felsch
2022-09-02  9:22     ` Michael Olbrich
2022-09-02 10:37       ` Marco Felsch

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=20220901085941.2597793-2-m.felsch@pengutronix.de \
    --to=m.felsch@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