Browse Source

core/show-info: also export source and stamp directories in show-info

External tools may need to peek into the source tree (to check what the
list of patches that were applied), or in the stamp directory (to check
and report on the progress of a build)

Currently, both locations are identical, but semantically different
and an internal implementation detail. Exposing both separately will
allow us to change either without breaking users' scripts. Hopefully.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Yann E. MORIN 3 years ago
parent
commit
eb342619e1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/pkg-utils.mk

+ 2 - 0
package/pkg-utils.mk

@@ -113,6 +113,8 @@ define _json-info-pkg
 		"virtual": false$(comma)
 		"virtual": false$(comma)
 		$(call _json-info-pkg-details,$(1)) \
 		$(call _json-info-pkg-details,$(1)) \
 	)
 	)
+	"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))),
 	"build_dir": $(call mk-json-str,$(patsubst $(CONFIG_DIR)/%,%,$($(1)_BUILDDIR))),
 	$(if $(filter target,$($(1)_TYPE)), \
 	$(if $(filter target,$($(1)_TYPE)), \
 		"install_target": $(call yesno-to-bool,$($(1)_INSTALL_TARGET))$(comma) \
 		"install_target": $(call yesno-to-bool,$($(1)_INSTALL_TARGET))$(comma) \