mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Felix Mellmann <flix.ptxdist@benfm.de>
To: ptxdist@pengutronix.de
Cc: Felix Mellmann <flix.ptxdist@benfm.de>
Subject: [ptxdist] [PATCH] Added option to libxml2 which allows to install the xmllint tool to the target.
Date: Sun, 24 Jan 2021 11:45:38 +0100	[thread overview]
Message-ID: <20210124104537.295702-1-flix.ptxdist@benfm.de> (raw)

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

             reply	other threads:[~2021-01-24 10:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 10:45 Felix Mellmann [this message]
2021-02-03  7:11 ` [ptxdist] [APPLIED] " Michael Olbrich

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=20210124104537.295702-1-flix.ptxdist@benfm.de \
    --to=flix.ptxdist@benfm.de \
    --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