Skip to content

Commit

Permalink
arch: Select fbdev helpers with CONFIG_VIDEO
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Sam Ravnborg <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Andreas Larsson <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: [email protected]
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
Thomas Zimmermann authored and arndb committed May 3, 2024
1 parent 9c313cc commit f25eae2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arch/parisc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions arch/sparc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/video/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only

obj-$(CONFIG_FB_CORE) += fbdev.o
obj-y += fbdev.o
2 changes: 1 addition & 1 deletion arch/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion arch/x86/video/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_FB_CORE) += fbdev.o

obj-y += fbdev.o

0 comments on commit f25eae2

Please sign in to comment.