mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Added option to libxml2 which allows to install the xmllint tool to the target.
@ 2021-01-24 10:45 Felix Mellmann
  2021-02-03  7:11 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Mellmann @ 2021-01-24 10:45 UTC (permalink / raw)
  To: ptxdist; +Cc: Felix Mellmann

The attached patch adds an option to the libxml2 rules which allows to install the
xmllint tool to the target. xmllint can be used i.e. for validating and formatting XML files.

Signed-off-by: Felix Mellmann <flix.ptxdist@benfm.de>
---
 rules/libxml2.in   | 7 +++++++
 rules/libxml2.make | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/rules/libxml2.in b/rules/libxml2.in
index f7bce0212..9435c9008 100644
--- a/rules/libxml2.in
+++ b/rules/libxml2.in
@@ -273,4 +273,11 @@ config LIBXML2_LZMA
 	help
 	  LZMA (compression) support with liblzma from XZ tools.
 
+config LIBXML2_XMLLINT
+	bool
+	default n
+	prompt "install xmllint"
+	help
+	  Install xmllint tool
+
 endif
diff --git a/rules/libxml2.make b/rules/libxml2.make
index ed8112f30..1da248307 100644
--- a/rules/libxml2.make
+++ b/rules/libxml2.make
@@ -116,6 +116,10 @@ $(STATEDIR)/libxml2.targetinstall:
 
 	@$(call install_lib, libxml2, 0, 0, 0644, libxml2)
 
+ifdef PTXCONF_LIBXML2_XMLLINT
+	@$(call install_copy, libxml2, 0, 0, 0755, -, /usr/bin/xmllint)
+endif
+
 	@$(call install_finish, libxml2)
 
 	@$(call touch)
-- 
2.25.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] Added option to libxml2 which allows to install the xmllint tool to the target.
  2021-01-24 10:45 [ptxdist] [PATCH] Added option to libxml2 which allows to install the xmllint tool to the target Felix Mellmann
@ 2021-02-03  7:11 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-02-03  7:11 UTC (permalink / raw)
  To: ptxdist; +Cc: Felix Mellmann

Thanks, applied as d7ed080323392e6f894a5ec0ffb35165bec087db.

Michael

[sent from post-receive hook]

On Wed, 03 Feb 2021 08:11:31 +0100, Felix Mellmann <flix.ptxdist@benfm.de> wrote:
> The attached patch adds an option to the libxml2 rules which allows to install the
> xmllint tool to the target. xmllint can be used i.e. for validating and formatting XML files.
> 
> Signed-off-by: Felix Mellmann <flix.ptxdist@benfm.de>
> Message-Id: <20210124104537.295702-1-flix.ptxdist@benfm.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/libxml2.in b/rules/libxml2.in
> index f7bce0212e69..9435c90088e9 100644
> --- a/rules/libxml2.in
> +++ b/rules/libxml2.in
> @@ -273,4 +273,11 @@ config LIBXML2_LZMA
>  	help
>  	  LZMA (compression) support with liblzma from XZ tools.
>  
> +config LIBXML2_XMLLINT
> +	bool
> +	default n
> +	prompt "install xmllint"
> +	help
> +	  Install xmllint tool
> +
>  endif
> diff --git a/rules/libxml2.make b/rules/libxml2.make
> index ed8112f3062f..1da248307b18 100644
> --- a/rules/libxml2.make
> +++ b/rules/libxml2.make
> @@ -116,6 +116,10 @@ $(STATEDIR)/libxml2.targetinstall:
>  
>  	@$(call install_lib, libxml2, 0, 0, 0644, libxml2)
>  
> +ifdef PTXCONF_LIBXML2_XMLLINT
> +	@$(call install_copy, libxml2, 0, 0, 0755, -, /usr/bin/xmllint)
> +endif
> +
>  	@$(call install_finish, libxml2)
>  
>  	@$(call touch)

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-03  7:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 10:45 [ptxdist] [PATCH] Added option to libxml2 which allows to install the xmllint tool to the target Felix Mellmann
2021-02-03  7:11 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox