From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 25 Apr 2020 15:12:02 +0200 Subject: [Buildroot] [PATCH 8/8] core/show-info: report image name of filesystems In-Reply-To: <0493cfafbdc9dd03d461d8707de2358156f9ad5d.1586592741.git.yann.morin.1998@free.fr> References: <0493cfafbdc9dd03d461d8707de2358156f9ad5d.1586592741.git.yann.morin.1998@free.fr> Message-ID: <20200425151202.5e6f236f@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Sat, 11 Apr 2020 10:12:33 +0200 "Yann E. MORIN" wrote: > The rootfses, unlike packages, do not have stampfiles to represent > whether they are built or not. Indeed, we always rebuild the rootfs, and > there is a single step to do. > > Hpwever, people (and scripts) who want to report on the build progress, > will want to know whether each rootfs has been built already or not. > > Expose in show-info the name of the file that wil contain the rootfs > image. > > Signed-off-by: Yann E. MORIN > Cc: Vadim Kochan > Cc: Thomas Petazzoni > Cc: Arnout Vandecappelle > Cc: eeppeliteloop at gmail.com > --- > package/pkg-utils.mk | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk > index bcdbf568fe..a464b660ef 100644 > --- a/package/pkg-utils.mk > +++ b/package/pkg-utils.mk > @@ -174,6 +174,10 @@ define _json-info-pkg-details > endef > > define _json-info-fs > + "image_name": $(if $($(1)_FINAL_IMAGE_NAME), \ > + "$($(1)_FINAL_IMAGE_NAME)", \ > + null \ > + ), Is the condition needed because of the initramfs case? Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com