From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Rouven Czerwinski Date: Thu, 25 Jul 2019 10:25:25 +0200 Message-Id: <3c5f8f1031723bdbacee0fd7b254389a6c44a7fc.1564043079.git-series.r.czerwinski@pengutronix.de> In-Reply-To: References: MIME-Version: 1.0 Subject: [ptxdist] [PATCH 1/4] host-system-python3: add pyelftools List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Rouven Czerwinski 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 --- 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