[Buildroot] [PATCH v2 03/11] package/python-jsonschema: add host variant

François Perrad francois.perrad at gadz.org
Fri Dec 15 19:41:41 UTC 2023


Le mer. 13 déc. 2023 à 17:44, Dario Binacchi <
dario.binacchi at amarulasolutions.com> a écrit :

> Recent version of U-Boot use binman to provide a mechanism for building
> images, from simple SPL + U-Boot combinations, to more complex
> arrangements with many parts. This package is required by binman.
>
> Co-developed-by: Michael Trimarchi <michael at amarulasolutions.com>
> Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
> ---
>  package/Config.in.host                         | 1 +
>  package/python-jsonschema/Config.in.host       | 6 ++++++
>

Adding an Config.in.host for this kind of package is not useful, see
documentation section 18.2.2. Config.in.host file

François

 package/python-jsonschema/python-jsonschema.mk | 6 ++++++
>  3 files changed, 13 insertions(+)
>  create mode 100644 package/python-jsonschema/Config.in.host
>
> diff --git a/package/Config.in.host b/package/Config.in.host
> index c80842c33a2f..5d2121de02a4 100644
> --- a/package/Config.in.host
> +++ b/package/Config.in.host
> @@ -85,6 +85,7 @@ menu "Host utilities"
>         source "package/python-cython/Config.in.host"
>         source "package/python-greenlet/Config.in.host"
>         source "package/python-iniparse/Config.in.host"
> +       source "package/python-jsonschema/Config.in.host"
>         source "package/python-kflash/Config.in.host"
>         source "package/python-lxml/Config.in.host"
>         source "package/python-pyyaml/Config.in.host"
> diff --git a/package/python-jsonschema/Config.in.host
> b/package/python-jsonschema/Config.in.host
> new file mode 100644
> index 000000000000..fd275a41b200
> --- /dev/null
> +++ b/package/python-jsonschema/Config.in.host
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_HOST_PYTHON_JSONSCHEMA
> +       bool "host python-jsonschema"
> +       help
> +         The host implementation of JSON Schema validation for Python.
> +
> +         https://github.com/python-jsonschema/jsonschema
> diff --git a/package/python-jsonschema/python-jsonschema.mk
> b/package/python-jsonschema/python-jsonschema.mk
> index dee87e8f9d9b..6f2206f3a03c 100644
> --- a/package/python-jsonschema/python-jsonschema.mk
> +++ b/package/python-jsonschema/python-jsonschema.mk
> @@ -15,4 +15,10 @@ PYTHON_JSONSCHEMA_DEPENDENCIES = \
>         host-python-hatch-fancy-pypi-readme \
>         host-python-hatch-vcs
>
> +HOST_PYTHON_JSONSCHEMA_DEPENDENCIES = \
> +       host-python-hatchling \
> +       host-python-hatch-fancy-pypi-readme \
> +       host-python-hatch-vcs
> +
>  $(eval $(python-package))
> +$(eval $(host-python-package))
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20231215/04d5d0f1/attachment-0001.html>


More information about the buildroot mailing list