fbdev: vesafb: Allow to be built if COMPILE_TEST is enabled
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 5 May 2022 12:04:18 +0000 (14:04 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Fri, 13 May 2022 12:05:19 +0000 (14:05 +0200)
The driver has runtime but no build time dependency with X86, so it can
be built for testing purposes if the COMPILE_TEST option is enabled.

This is useful to have more build coverage and make sure that the driver
is not affected by changes that could cause build regressions.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220505120419.314136-1-javierm@redhat.com
drivers/video/fbdev/Kconfig

index f2a6b81e45c41334db71cca35f4fa5a827f728fe..bd849013f16fc4911ce6ed09e3ec0486e19dfc9a 100644 (file)
@@ -616,7 +616,7 @@ config FB_UVESA
 
 config FB_VESA
        bool "VESA VGA graphics support"
-       depends on (FB = y) && X86
+       depends on (FB = y) && (X86 || COMPILE_TEST)
        select FB_CFB_FILLRECT
        select FB_CFB_COPYAREA
        select FB_CFB_IMAGEBLIT