From: Ville Syrjälä <[email protected]>

Allow NOUVEAU_PLATFORM_DRIVER to be built with COMPILE_TEST=y for
greater coverage. Builds fine on x86, x86_64, arm and arm64 at least.

Cc: Lyude Paul <[email protected]>
Cc: Danilo Krummrich <[email protected]>
Cc: [email protected]
Signed-off-by: Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/nouveau/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig
index 3b5757aed9c8..d7b432c839e5 100644
--- a/drivers/gpu/drm/nouveau/Kconfig
+++ b/drivers/gpu/drm/nouveau/Kconfig
@@ -34,7 +34,7 @@ config DRM_NOUVEAU
 
 config NOUVEAU_PLATFORM_DRIVER
        bool "Nouveau (NVIDIA) SoC GPUs"
-       depends on DRM_NOUVEAU && ARCH_TEGRA
+       depends on DRM_NOUVEAU && (ARCH_TEGRA || COMPILE_TEST)
        default y
        help
          Support for Nouveau platform driver, used for SoC GPUs as found
-- 
2.56.0

Reply via email to