[Buildroot] [git commit] core/show-info: 'name' only applies to packages
From: Yann E. MORIN <hidden>
Date: 2021-12-04 19:10:38
Subsystem:
the rest · Maintainer:
Linus Torvalds
commit: https://git.buildroot.net/buildroot/commit/?id=471ecea5eeb053d7bd956c8ff7605bd015b24b51 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master Commit 0cfa1659487f (package/pkg-utils.mk: introduce "name" field in show-info output) did what it said, but did so in the generic show-info part, thus it was also added to filesystems (rootfs), the other kind of entity that show-info reports on. Only packages have a "name"; filesystems do not. Instead, they already have an 'image_name'. Move the 'name' field to the package-related part of show-info. Signed-off-by: Yann E. MORIN <redacted> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Yann E. MORIN <redacted> --- package/pkg-utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
index b2f0b8cebf..973eabe437 100644
--- a/package/pkg-utils.mk
+++ b/package/pkg-utils.mk@@ -96,7 +96,6 @@ endef # $(1): upper-case package or filesystem name define json-info "$($(1)_NAME)": { - "name": "$($(1)_RAWNAME)", "type": "$($(1)_TYPE)", $(if $(filter rootfs,$($(1)_TYPE)), \ $(call _json-info-fs,$(1)), \
@@ -108,6 +107,7 @@ endef # _json-info-pkg, _json-info-pkg-details, _json-info-fs: private helpers # for json-info, above define _json-info-pkg + "name": "$($(1)_RAWNAME)", $(if $($(1)_IS_VIRTUAL), \ "virtual": true$(comma), "virtual": false$(comma)
_______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot