Browse Source

package/pkg-generic.mk: only check for virtual package conflicts when building

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

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 7231701a290ba447fde9807ba9d260022ddfc8e4)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard 2 years ago
parent
commit
bc12f089b6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/pkg-generic.mk

+ 2 - 0
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
 # Ensure the calling package is the declared provider for all the virtual
 # packages it claims to be an implementation of.
 # packages it claims to be an implementation of.
+ifeq ($(BR_BUILDING),y)
 ifneq ($$($(2)_PROVIDES),)
 ifneq ($$($(2)_PROVIDES),)
 $$(foreach pkg,$$($(2)_PROVIDES),\
 $$(foreach pkg,$$($(2)_PROVIDES),\
 	$$(eval $$(call virt-provides-single,$$(pkg),$$(call UPPERCASE,$$(pkg)),$(1))$$(sep)))
 	$$(eval $$(call virt-provides-single,$$(pkg),$$(call UPPERCASE,$$(pkg)),$(1))$$(sep)))
 endif
 endif
+endif
 
 
 # Register package as a reverse-dependencies of all its dependencies
 # Register package as a reverse-dependencies of all its dependencies
 $$(eval $$(foreach p,$$($(2)_FINAL_ALL_DEPENDENCIES),\
 $$(eval $$(foreach p,$$($(2)_FINAL_ALL_DEPENDENCIES),\