[Buildroot] [git commit branch/2022.02.x] package/pkg-generic.mk: only check for virtual package conflicts when building

Peter Korsgaard peter at korsgaard.com
Thu Feb 23 19:08:49 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=421f58cfa996a27d85b01775521b3c52125de264
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x

The configuration checks should only be done when building so that
make allyespackageconfig && make source works.

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 7231701a290ba447fde9807ba9d260022ddfc8e4)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/pkg-generic.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index a88934b866..6c3b64b4c8 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -1182,10 +1182,12 @@ ifeq ($$($$($(2)_KCONFIG_VAR)),y)
 
 # Ensure the calling package is the declared provider for all the virtual
 # packages it claims to be an implementation of.
+ifeq ($(BR_BUILDING),y)
 ifneq ($$($(2)_PROVIDES),)
 $$(foreach pkg,$$($(2)_PROVIDES),\
 	$$(eval $$(call virt-provides-single,$$(pkg),$$(call UPPERCASE,$$(pkg)),$(1))$$(sep)))
 endif
+endif
 
 # Register package as a reverse-dependencies of all its dependencies
 $$(eval $$(foreach p,$$($(2)_FINAL_ALL_DEPENDENCIES),\



More information about the buildroot mailing list