From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 23 Mar 2022 12:07:48 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nWyq8-003YLu-FU for lore@lore.pengutronix.de; Wed, 23 Mar 2022 12:07:48 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nWyqA-0007eg-JC; Wed, 23 Mar 2022 12:07:46 +0100 Received: from magratgarlick.emantor.de ([78.46.208.201]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWypL-0007di-2G; Wed, 23 Mar 2022 12:06:55 +0100 Received: by magratgarlick.emantor.de (Postfix, from userid 114) id 1EC5593416; Wed, 23 Mar 2022 12:06:54 +0100 (CET) Received: from localhost (unknown [IPv6:2001:9e8:217c:bb01:c0d3:dbff:fefe:ff70]) by magratgarlick.emantor.de (Postfix) with ESMTPSA id 87E6493409; Wed, 23 Mar 2022 12:06:53 +0100 (CET) From: Rouven Czerwinski To: ptxdist@pengutronix.de Date: Wed, 23 Mar 2022 12:06:37 +0100 Message-Id: <20220323110640.1124214-1-r.czerwinski@pengutronix.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 1/4] host-python3: add pyelftools, cryptography checks X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Rouven Czerwinski Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Add the checks for python3 cryptgraphy and pyelftools. These will be required for bumping the OP-TEE release. Signed-off-by: Rouven Czerwinski --- 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 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 @@ -59,6 +59,18 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON3_SIX @$(SYSTEMPYTHON3) -c 'import six' 2>/dev/null || \ 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) -- 2.35.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de