From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.benfm.de ([85.214.204.202] helo=h2734822.stratoserver.net) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3cur-0000q6-Nj for ptxdist@pengutronix.de; Sun, 24 Jan 2021 11:46:46 +0100 From: Felix Mellmann Date: Sun, 24 Jan 2021 11:45:38 +0100 Message-Id: <20210124104537.295702-1-flix.ptxdist@benfm.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] Added option to libxml2 which allows to install the xmllint tool to the target. 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: 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 --- 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