mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Bruno Thomsen <bruno.thomsen@gmail.com>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 1/2] host-system-python3: add dtschema
Date: Fri, 4 Sep 2026 09:17:11 +0200	[thread overview]
Message-ID: <appwd1LL23jwgOJE@pengutronix.de> (raw)
In-Reply-To: <20260831131159.11771-2-bruno.thomsen@gmail.com>

On Mon, Aug 31, 2026 at 03:11:58PM +0200, Bruno Thomsen wrote:
> Used for device tree validation.
> 
> Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
> ---
> v1 -> v2 changed:
> - host-system-python{,3}
> ---
>  rules/host-system-python3.in   | 4 ++++
>  rules/host-system-python3.make | 9 +++++++++
>  2 files changed, 13 insertions(+)
> 
> diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in
> index 4d6ea7d1d..2d8296852 100644
> --- a/rules/host-system-python3.in
> +++ b/rules/host-system-python3.in
> @@ -15,6 +15,10 @@ config HOST_SYSTEM_PYTHON3_CRYPTOGRAPHY
>  config HOST_SYSTEM_PYTHON3_DEV
>  	bool
>  
> +config HOST_SYSTEM_PYTHON3_DTSCHEMA
> +	select HOST_SYSTEM_PYTHON3_SYSTEM_PACKAGES
> +	bool
> +
>  config HOST_SYSTEM_PYTHON3_NUMPY
>  	select HOST_SYSTEM_PYTHON3_SYSTEM_PACKAGES
>  	bool
> diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make
> index 6de4466d0..8923acfd6 100644
> --- a/rules/host-system-python3.make
> +++ b/rules/host-system-python3.make
> @@ -42,6 +42,15 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON3_DEV
>  		ptxd_bailout "Python development files module not found! \
>  	Please install python3-dev (debian)";
>  endif
> +ifdef PTXCONF_HOST_SYSTEM_PYTHON3_DTSCHEMA
> +	@echo "Checking for Python dtschema ..."
> +	@$(SYSTEMPYTHON3) -c 'import dtschema' 2>/dev/null || \
> +		ptxd_bailout "Python dtschema module not found! \
> +	Please install python3-dtschema (debian)";
> +	@dt-validate --version >/dev/null 2>&1 || \
> +		ptxd_bailout "'dt-validate' not found in PATH! \
> +	Please install python3-dtschema (debian)";

The Debian package is dt-schema. I'll fix it while applying the patch.

Michael

> +endif
>  ifdef PTXCONF_HOST_SYSTEM_PYTHON3_NUMPY
>  	@echo "Checking for Python Numpy ..."
>  	@$(SYSTEMPYTHON3) -c 'import numpy' 2>/dev/null || \
> -- 
> 2.55.0
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2026-09-04  7:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 13:11 [ptxdist] [PATCH v2 0/2] Run DT schema check on selected device trees Bruno Thomsen
2026-08-31 13:11 ` [ptxdist] [PATCH v2 1/2] host-system-python3: add dtschema Bruno Thomsen
2026-09-04  7:17   ` Michael Olbrich [this message]
2026-08-31 13:11 ` [ptxdist] [PATCH v2 2/2] kernel: validate device trees against the DT schema Bruno Thomsen

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=appwd1LL23jwgOJE@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=bruno.thomsen@gmail.com \
    --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