From 73e28a747256ff3a881d2bc2da744ebdcde90339 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Fri, 12 Aug 2022 19:52:23 +0200 Subject: Makefile: print dependency versions When a library is found, then print its version in the config target. Change-Id: Ie1ff8107311247fba9e5caa252d559447c871867 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/66695 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.include') diff --git a/Makefile.include b/Makefile.include index fbd84569..a55f6f55 100644 --- a/Makefile.include +++ b/Makefile.include @@ -48,6 +48,10 @@ define find_dependency $(call debug_shell, $(if $(PKG_CONFIG_LIBDIR),PKG_CONFIG_LIBDIR=$(PKG_CONFIG_LIBDIR),) $(PKG_CONFIG) --exists $1 && echo yes || echo no) endef +define dependency_version +$(call debug_shell, $(if $(PKG_CONFIG_LIBDIR),PKG_CONFIG_LIBDIR=$(PKG_CONFIG_LIBDIR),) $(PKG_CONFIG) --modversion $1 2>/dev/null) +endef + define dependency_cflags $(call debug_shell, $(if $(PKG_CONFIG_LIBDIR),PKG_CONFIG_LIBDIR=$(PKG_CONFIG_LIBDIR),) $(PKG_CONFIG) --cflags $1 2>/dev/null) endef -- cgit v1.2.3