arch: Select fbdev helpers with CONFIG_VIDEO
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 29 Mar 2024 20:32:10 +0000 (21:32 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 May 2024 15:07:50 +0000 (17:07 +0200)
Various Kconfig options selected the per-architecture helpers for
fbdev. But none of the contained code depends on fbdev. Standardize
on CONFIG_VIDEO, which will allow to add more general helpers for
video functionality.

CONFIG_VIDEO protects each architecture's video/ directory. This
allows for the use of more fine-grained control for each directory's
files, such as the use of CONFIG_STI_CORE on parisc.

v2:
- sparc: rebased onto Makefile changes

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/parisc/Makefile
arch/sparc/Makefile
arch/sparc/video/Makefile
arch/x86/Makefile
arch/x86/video/Makefile

index 316f84f1d15c8f8c6e65dd3862dc5db1144f95bb..21b8166a68839424bffaf36e8af90696b86f4584 100644 (file)
@@ -119,7 +119,7 @@ export LIBGCC
 
 libs-y += arch/parisc/lib/ $(LIBGCC)
 
-drivers-y += arch/parisc/video/
+drivers-$(CONFIG_VIDEO) += arch/parisc/video/
 
 boot   := arch/parisc/boot
 
index 2a03daa68f2857df85df97b5b632d6154e76496f..757451c3ea1df63b948e68a45988c78f5974f9ea 100644 (file)
@@ -59,8 +59,8 @@ endif
 libs-y                 += arch/sparc/prom/
 libs-y                 += arch/sparc/lib/
 
-drivers-$(CONFIG_PM) += arch/sparc/power/
-drivers-$(CONFIG_FB_CORE) += arch/sparc/video/
+drivers-$(CONFIG_PM)    += arch/sparc/power/
+drivers-$(CONFIG_VIDEO) += arch/sparc/video/
 
 boot := arch/sparc/boot
 
index d4d83f1702c61f09e3dceac24c494ecd1632f3e5..9dd82880a027a6b43177eda7fc918032c4f7b104 100644 (file)
@@ -1,3 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
-obj-$(CONFIG_FB_CORE) += fbdev.o
+obj- += fbdev.o
index 5ab93fcdd691dcf2d58e3c5c5e4dff67838ed951..e71e5252763f051e86f260bcd83eaee294464f7f 100644 (file)
@@ -258,7 +258,7 @@ drivers-$(CONFIG_PCI)            += arch/x86/pci/
 # suspend and hibernation support
 drivers-$(CONFIG_PM) += arch/x86/power/
 
-drivers-$(CONFIG_FB_CORE) += arch/x86/video/
+drivers-$(CONFIG_VIDEO) += arch/x86/video/
 
 ####
 # boot loader support. Several targets are kept for legacy purposes
index 5ebe48752ffc4fa62d9eae3e094382fdf08eb2a6..9dd82880a027a6b43177eda7fc918032c4f7b104 100644 (file)
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_FB_CORE)          += fbdev.o
+
+obj-y  += fbdev.o