From 28ec008230ed5eed3240744ea404277b474e524e Mon Sep 17 00:00:00 2001 From: "Fiona Klute (WIWA)" Date: Wed, 6 Aug 2025 18:15:54 +0200 Subject: [PATCH] package/pkg-utils.mk: include package directory in show-info output The new package_dir element contains the path of the package directory. For Buildroot packages this is a path relative to the main Buildroot directory, for packages from external trees an absolute path. Signed-off-by: Fiona Klute (WIWA) Tested-by: Titouan Christophe Signed-off-by: Peter Korsgaard (cherry picked from commit b10f50399afcdc1cfaed06387b3f51d2dfa27ad0) Signed-off-by: Titouan Christophe --- package/pkg-utils.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk index 0266f66b42..288a202230 100644 --- a/package/pkg-utils.mk +++ b/package/pkg-utils.mk @@ -120,6 +120,7 @@ define _json-info-pkg "virtual": false$(comma) $(call _json-info-pkg-details,$(1)) \ ) + "package_dir": $(call mk-json-str,$(patsubst $(CURDIR)/%,%,$($(1)_PKGDIR))), "stamp_dir": $(call mk-json-str,$(patsubst $(CONFIG_DIR)/%,%,$($(1)_DIR))), "source_dir": $(call mk-json-str,$(patsubst $(CONFIG_DIR)/%,%,$($(1)_DIR))), "build_dir": $(call mk-json-str,$(patsubst $(CONFIG_DIR)/%,%,$($(1)_BUILDDIR))),