All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vadim Kochan <vadim4j@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/1] pkg-infra/show-info: dump install_{staging, target} info
Date: Wed, 31 Jul 2019 18:32:37 +0300	[thread overview]
Message-ID: <20190731153237.13607-1-vadim4j@gmail.com> (raw)

provide info if the package will be installed to staging/target
destinations. Might be useful for analyzing the packages which
installed only for target/staging.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
---
v2:
    1) use oneliner 'if' to dump install_{staging,target} properties

v3:
    1) fix evaluation of true/false value via 'subst' (suggested by Yann E. Morin)

 package/pkg-utils.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
index b7280e930f..ffe198e242 100644
--- a/package/pkg-utils.mk
+++ b/package/pkg-utils.mk
@@ -94,6 +94,8 @@ endef
 define _json-info-pkg-details
 	"version": "$($(1)_DL_VERSION)",
 	"licenses": "$($(1)_LICENSE)",
+	"install-target": $(if $(subst NO,,$($(1)_INSTALL_TARGET)),true,false),
+	"install-staging": $(if $(subst NO,,$($(1)_INSTALL_STAGING)),true,false),
 	"downloads": [
 	$(foreach dl,$(sort $($(1)_ALL_DOWNLOADS)),
 		{
-- 
2.17.1

             reply	other threads:[~2019-07-31 15:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-31 15:32 Vadim Kochan [this message]
2019-08-02 20:42 ` [Buildroot] [PATCH v3 1/1] pkg-infra/show-info: dump install_{staging, target} info Arnout Vandecappelle
2019-08-02 20:43   ` Arnout Vandecappelle
2019-08-03  6:32     ` Yann E. MORIN
2019-08-06  8:51       ` Vadim Kochan

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=20190731153237.13607-1-vadim4j@gmail.com \
    --to=vadim4j@gmail.com \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.