The configuration checks should only be done when building so that make allyespackageconfig && make source works. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
@@ -6,7 +6,7 @@
# mesa3d-headers is inherently incompatible with mesa3d, so error out
# if both are enabled.
-ifeq ($(BR2_PACKAGE_MESA3D)$(BR2_PACKAGE_MESA3D_HEADERS),yy)
+ifeq ($(BR_BUILDING)$(BR2_PACKAGE_MESA3D)$(BR2_PACKAGE_MESA3D_HEADERS),yyy)
$(error mesa3d-headers enabled, but mesa3d enabled too)
endif