[Buildroot] [PATCH 08/10] infra/fs: introduce rootfs-foo-show-info

Thomas De Schampheleire patrickdepinguin at gmail.com
Wed Apr 10 09:19:07 UTC 2019


El dom., 7 abr. 2019 a las 13:51, Yann E. MORIN
(<yann.morin.1998 at free.fr>) escribió:
>
> Similarly to what we introduced for packages, do the same for
> filesystems.
>
> This will be usefull later, when we are able to dump the complete

useful

> information for a configuration, by also reporting information
> about packages that are dependencies for filesystems.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> Cc: Thomas De Schampheleire <patrickdepinguin at gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> Cc: Arnout Vandecappelle <arnout at mind.be>
> ---
>  fs/common.mk | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/fs/common.mk b/fs/common.mk
> index 4ad51fdd0a..2ec27e8e63 100644
> --- a/fs/common.mk
> +++ b/fs/common.mk
> @@ -47,6 +47,19 @@ ROOTFS_COMMON_DEPENDENCIES = \
>         $(BR2_TAR_HOST_DEPENDENCY) \
>         $(if $(PACKAGES_USERS)$(ROOTFS_USERS_TABLES),host-mkpasswd)
>
> +define ROOTFS_COMMON_SHOW_INFO
> +       "name": "rootfs-common", \
> +       "type": "rootfs", \
> +       "depends on": [ \
> +               $(call make-comma-list,$(ROOTFS_COMMON_DEPENDENCIES)) \
> +       ]
> +endef
> +
> +.PHONY: rootfs-common-show-info
> +rootfs-common-show-info:
> +       @:
> +       $(info { $(strip $(ROOTFS_COMMON_SHOW_INFO)) })
> +
>  rootfs-common-show-dependency-tree: $(patsubst %,%-show-dependency-tree,$(ROOTFS_COMMON_DEPENDENCIES))
>         $(info rootfs-common: host)
>         $(info rootfs-common -> $(foreach d,$(ROOTFS_COMMON_DEPENDENCIES),$(d)))
> @@ -84,6 +97,19 @@ ROOTFS_$(2)_TARGET_DIR = $$(ROOTFS_$(2)_DIR)/target
>
>  ROOTFS_$(2)_DEPENDENCIES += rootfs-common
>
> +define ROOTFS_$(2)_SHOW_INFO
> +       "name": "rootfs-$(1)", \
> +       "type": "rootfs", \
> +       "depends on": [ \
> +               $$(call make-comma-list,$$(ROOTFS_$(2)_DEPENDENCIES)) \
> +       ]
> +endef
> +
> +.PHONY: rootfs-$(1)-show-info
> +rootfs-$(1)-show-info:
> +       @:
> +       $$(info { $$(strip $$(ROOTFS_$(2)_SHOW_INFO)) })
> +
>  rootfs-$(1)-show-dependency-tree: $$(patsubst %,%-show-dependency-tree,$$(ROOTFS_$(2)_DEPENDENCIES))
>         $$(info rootfs-$(1): host)
>         $$(info rootfs-$(1) -> $$(foreach d,$$(ROOTFS_$(2)_DEPENDENCIES),$$(d)))
> --
> 2.14.1
>



More information about the buildroot mailing list