diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-05-15 07:26:20 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-06-23 09:55:16 -0400 |
commit | d1e183c8dd38bfdd07e38a79577fe78124e63ab1 (patch) | |
tree | 7c0b201ff93d0c0d632cfb44d201135d18d5382f /drivers/media/platform/Kconfig | |
parent | 866f321339988293a5bb3ec6634c2c9d8396bf54 (diff) |
console/font: Refactor font support code selection logic
The current Makefile rules to build font support are messy and buggy.
Replace them by Kconfig rules:
- Introduce CONFIG_FONT_SUPPORT, which controls the building of all font
code,
- Select CONFIG_FONT_SUPPORT for all drivers that use fonts,
- Select CONFIG_FONT_8x16 for all drivers that default to the VGA8x16
font,
- Drop the bogus console dependency for CONFIG_VIDEO_VIVI,
- Always process drivers/video/console/Makefile, as some drivers need
fonts even if CONFIG_VT is not set.
This fixes (if CONFIG_SOLO6X10=y and there are no built-in console
drivers):
drivers/built-in.o: In function `solo_osd_print':
drivers/staging/media/solo6x10/solo6x10-enc.c:144: undefined reference to `.find_font'
This fixes (if CONFIG_VT=n):
drivers/built-in.o: In function `vivi_init':
vivi.c:(.init.text+0x1a3da): undefined reference to `find_font'
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com> [original part]
Acked-by: Randy Dunlap <rdunlap@infradead.org> [drivers/video/Makefile]
Diffstat (limited to 'drivers/media/platform/Kconfig')
-rw-r--r-- | drivers/media/platform/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 0494d2769fd7..9f795b583480 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig | |||
@@ -220,7 +220,7 @@ if V4L_TEST_DRIVERS | |||
220 | config VIDEO_VIVI | 220 | config VIDEO_VIVI |
221 | tristate "Virtual Video Driver" | 221 | tristate "Virtual Video Driver" |
222 | depends on VIDEO_DEV && VIDEO_V4L2 && !SPARC32 && !SPARC64 | 222 | depends on VIDEO_DEV && VIDEO_V4L2 && !SPARC32 && !SPARC64 |
223 | depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE | 223 | select FONT_SUPPORT |
224 | select FONT_8x16 | 224 | select FONT_8x16 |
225 | select VIDEOBUF2_VMALLOC | 225 | select VIDEOBUF2_VMALLOC |
226 | default n | 226 | default n |