@echo ' <pkg>-depends - Build <pkg>'\''s dependencies'
@echo ' <pkg>-configure - Build <pkg> up to the configure step'
@echo ' <pkg>-build - Build <pkg> up to the build step'
+ @echo ' <pkg>-show-info - generate info about <pkg>, as a JSON blurb'
@echo ' <pkg>-show-depends - List packages on which <pkg> depends'
@echo ' <pkg>-show-rdepends - List packages which have <pkg> as a dependency'
@echo ' <pkg>-show-recursive-depends'
rootfs-common-show-depends:
@echo $(ROOTFS_COMMON_DEPENDENCIES)
+.PHONY: rootfs-common-show-info
+rootfs-common-show-info:
+ @:
+ $(info $(call clean-json,{ $(call json-info,ROOTFS_COMMON) }))
+
# Since this function will be called from within an $(eval ...)
# all variable references except the arguments must be $$-quoted.
define inner-rootfs
rootfs-$(1)-show-depends:
@echo $$(ROOTFS_$(2)_DEPENDENCIES)
+rootfs-$(1)-show-info:
+ @:
+ $$(info $$(call clean-json,{ $$(call json-info,ROOTFS_$(2)) }))
+
rootfs-$(1): $$(BINARIES_DIR)/$$(ROOTFS_$(2)_FINAL_IMAGE_NAME)
-.PHONY: rootfs-$(1) rootfs-$(1)-show-depends
+.PHONY: rootfs-$(1) rootfs-$(1)-show-depends rootfs-$(1)-show-info
ifeq ($$(BR2_TARGET_ROOTFS_$(2)),y)
TARGETS_ROOTFS += rootfs-$(1)
$$(info $(1): $(4) $$(if $$($(2)_IS_VIRTUAL),virtual,$$($(2)_DL_VERSION)))
$$(info $(1) -> $$($(2)_FINAL_ALL_DEPENDENCIES))
+$(1)-show-info:
+ @:
+ $$(info $$(call clean-json,{ $$(call json-info,$(2)) }))
+
$(1)-graph-depends: graph-depends-requirements
$(call pkg-graph-depends,$(1),--direct)
$(1)-rsync \
$(1)-show-dependency-tree \
$(1)-show-depends \
+ $(1)-show-info \
$(1)-show-version \
$(1)-source