diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 03:38:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:29 -0400 |
commit | b2f594fd7adff7aae2d1664e72044926b0b906aa (patch) | |
tree | 94ebe01c6bc44e9c4b4101cd604c62c069187bae /drivers/video | |
parent | 22d832edcace45b26ced76efef6c863449e4e060 (diff) |
fbdev: link vgastate.o using Kconfig
Instead of directly linking vgastate.o by individual drivers, create a Kconfig
option VGASTATE which can be 'SELECT'ed by individual drivers instead.
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/Kconfig | 11 | ||||
-rw-r--r-- | drivers/video/Makefile | 14 |
2 files changed, 18 insertions, 7 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index bc9a12be1e33..d9aed1033442 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
@@ -7,6 +7,10 @@ menu "Graphics support" | |||
7 | source "drivers/video/backlight/Kconfig" | 7 | source "drivers/video/backlight/Kconfig" |
8 | source "drivers/video/display/Kconfig" | 8 | source "drivers/video/display/Kconfig" |
9 | 9 | ||
10 | config VGASTATE | ||
11 | tristate | ||
12 | default n | ||
13 | |||
10 | config FB | 14 | config FB |
11 | tristate "Support for frame buffer devices" | 15 | tristate "Support for frame buffer devices" |
12 | ---help--- | 16 | ---help--- |
@@ -481,6 +485,7 @@ config FB_VGA16 | |||
481 | select FB_CFB_FILLRECT | 485 | select FB_CFB_FILLRECT |
482 | select FB_CFB_COPYAREA | 486 | select FB_CFB_COPYAREA |
483 | select FB_CFB_IMAGEBLIT | 487 | select FB_CFB_IMAGEBLIT |
488 | select VGASTATE | ||
484 | help | 489 | help |
485 | This is the frame buffer device driver for VGA 16 color graphic | 490 | This is the frame buffer device driver for VGA 16 color graphic |
486 | cards. Say Y if you have such a card. | 491 | cards. Say Y if you have such a card. |
@@ -716,6 +721,7 @@ config FB_NVIDIA | |||
716 | select FB_CFB_COPYAREA | 721 | select FB_CFB_COPYAREA |
717 | select FB_CFB_IMAGEBLIT | 722 | select FB_CFB_IMAGEBLIT |
718 | select BITREVERSE | 723 | select BITREVERSE |
724 | select VGASTATE | ||
719 | help | 725 | help |
720 | This driver supports graphics boards with the nVidia chips, TNT | 726 | This driver supports graphics boards with the nVidia chips, TNT |
721 | and newer. For very old chipsets, such as the RIVA128, then use | 727 | and newer. For very old chipsets, such as the RIVA128, then use |
@@ -754,6 +760,7 @@ config FB_RIVA | |||
754 | select FB_CFB_COPYAREA | 760 | select FB_CFB_COPYAREA |
755 | select FB_CFB_IMAGEBLIT | 761 | select FB_CFB_IMAGEBLIT |
756 | select BITREVERSE | 762 | select BITREVERSE |
763 | select VGASTATE | ||
757 | help | 764 | help |
758 | This driver supports graphics boards with the nVidia Riva/Geforce | 765 | This driver supports graphics boards with the nVidia Riva/Geforce |
759 | chips. | 766 | chips. |
@@ -800,6 +807,7 @@ config FB_I810 | |||
800 | select FB_CFB_FILLRECT | 807 | select FB_CFB_FILLRECT |
801 | select FB_CFB_COPYAREA | 808 | select FB_CFB_COPYAREA |
802 | select FB_CFB_IMAGEBLIT | 809 | select FB_CFB_IMAGEBLIT |
810 | select VGASTATE | ||
803 | help | 811 | help |
804 | This driver supports the on-board graphics built in to the Intel 810 | 812 | This driver supports the on-board graphics built in to the Intel 810 |
805 | and 815 chipsets. Say Y if you have and plan to use such a board. | 813 | and 815 chipsets. Say Y if you have and plan to use such a board. |
@@ -1150,6 +1158,7 @@ config FB_S3 | |||
1150 | select FB_CFB_IMAGEBLIT | 1158 | select FB_CFB_IMAGEBLIT |
1151 | select FB_TILEBLITTING | 1159 | select FB_TILEBLITTING |
1152 | select FB_SVGALIB | 1160 | select FB_SVGALIB |
1161 | select VGASTATE | ||
1153 | ---help--- | 1162 | ---help--- |
1154 | Driver for graphics boards with S3 Trio / S3 Virge chip. | 1163 | Driver for graphics boards with S3 Trio / S3 Virge chip. |
1155 | 1164 | ||
@@ -1160,6 +1169,7 @@ config FB_SAVAGE | |||
1160 | select FB_CFB_FILLRECT | 1169 | select FB_CFB_FILLRECT |
1161 | select FB_CFB_COPYAREA | 1170 | select FB_CFB_COPYAREA |
1162 | select FB_CFB_IMAGEBLIT | 1171 | select FB_CFB_IMAGEBLIT |
1172 | select VGASTATE | ||
1163 | help | 1173 | help |
1164 | This driver supports notebooks and computers with S3 Savage PCI/AGP | 1174 | This driver supports notebooks and computers with S3 Savage PCI/AGP |
1165 | chips. | 1175 | chips. |
@@ -1226,6 +1236,7 @@ config FB_NEOMAGIC | |||
1226 | select FB_CFB_FILLRECT | 1236 | select FB_CFB_FILLRECT |
1227 | select FB_CFB_COPYAREA | 1237 | select FB_CFB_COPYAREA |
1228 | select FB_CFB_IMAGEBLIT | 1238 | select FB_CFB_IMAGEBLIT |
1239 | select VGASTATE | ||
1229 | help | 1240 | help |
1230 | This driver supports notebooks with NeoMagic PCI chips. | 1241 | This driver supports notebooks with NeoMagic PCI chips. |
1231 | Say Y if you have such a graphics card. | 1242 | Say Y if you have such a graphics card. |
diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 1e1845d7ecce..cd94375c3fc1 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | # Each configuration option enables a list of files. | 5 | # Each configuration option enables a list of files. |
6 | 6 | ||
7 | obj-$(CONFIG_VGASTATE) += vgastate.o | ||
7 | obj-y += fb_notify.o | 8 | obj-y += fb_notify.o |
8 | obj-$(CONFIG_FB) += fb.o | 9 | obj-$(CONFIG_FB) += fb.o |
9 | fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \ | 10 | fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \ |
@@ -31,18 +32,17 @@ obj-$(CONFIG_FB_PM2) += pm2fb.o | |||
31 | obj-$(CONFIG_FB_PM3) += pm3fb.o | 32 | obj-$(CONFIG_FB_PM3) += pm3fb.o |
32 | 33 | ||
33 | obj-$(CONFIG_FB_MATROX) += matrox/ | 34 | obj-$(CONFIG_FB_MATROX) += matrox/ |
34 | obj-$(CONFIG_FB_RIVA) += riva/ vgastate.o | 35 | obj-$(CONFIG_FB_RIVA) += riva/ |
35 | obj-$(CONFIG_FB_NVIDIA) += nvidia/ vgastate.o | 36 | obj-$(CONFIG_FB_NVIDIA) += nvidia/ |
36 | obj-$(CONFIG_FB_ATY) += aty/ macmodes.o | 37 | obj-$(CONFIG_FB_ATY) += aty/ macmodes.o |
37 | obj-$(CONFIG_FB_ATY128) += aty/ macmodes.o | 38 | obj-$(CONFIG_FB_ATY128) += aty/ macmodes.o |
38 | obj-$(CONFIG_FB_RADEON) += aty/ | 39 | obj-$(CONFIG_FB_RADEON) += aty/ |
39 | obj-$(CONFIG_FB_SIS) += sis/ | 40 | obj-$(CONFIG_FB_SIS) += sis/ |
40 | obj-$(CONFIG_FB_KYRO) += kyro/ | 41 | obj-$(CONFIG_FB_KYRO) += kyro/ |
41 | obj-$(CONFIG_FB_SAVAGE) += savage/ vgastate.o | 42 | obj-$(CONFIG_FB_SAVAGE) += savage/ |
42 | obj-$(CONFIG_FB_GEODE) += geode/ | 43 | obj-$(CONFIG_FB_GEODE) += geode/ |
43 | obj-$(CONFIG_FB_MBX) += mbx/ | 44 | obj-$(CONFIG_FB_MBX) += mbx/ |
44 | obj-$(CONFIG_FB_I810) += vgastate.o | 45 | obj-$(CONFIG_FB_NEOMAGIC) += neofb.o |
45 | obj-$(CONFIG_FB_NEOMAGIC) += neofb.o vgastate.o | ||
46 | obj-$(CONFIG_FB_3DFX) += tdfxfb.o | 46 | obj-$(CONFIG_FB_3DFX) += tdfxfb.o |
47 | obj-$(CONFIG_FB_CONTROL) += controlfb.o | 47 | obj-$(CONFIG_FB_CONTROL) += controlfb.o |
48 | obj-$(CONFIG_FB_PLATINUM) += platinumfb.o | 48 | obj-$(CONFIG_FB_PLATINUM) += platinumfb.o |
@@ -52,7 +52,7 @@ obj-$(CONFIG_FB_IMSTT) += imsttfb.o | |||
52 | obj-$(CONFIG_FB_FM2) += fm2fb.o | 52 | obj-$(CONFIG_FB_FM2) += fm2fb.o |
53 | obj-$(CONFIG_FB_CYBLA) += cyblafb.o | 53 | obj-$(CONFIG_FB_CYBLA) += cyblafb.o |
54 | obj-$(CONFIG_FB_TRIDENT) += tridentfb.o | 54 | obj-$(CONFIG_FB_TRIDENT) += tridentfb.o |
55 | obj-$(CONFIG_FB_S3) += s3fb.o vgastate.o | 55 | obj-$(CONFIG_FB_S3) += s3fb.o |
56 | obj-$(CONFIG_FB_STI) += stifb.o | 56 | obj-$(CONFIG_FB_STI) += stifb.o |
57 | obj-$(CONFIG_FB_FFB) += ffb.o sbuslib.o | 57 | obj-$(CONFIG_FB_FFB) += ffb.o sbuslib.o |
58 | obj-$(CONFIG_FB_CG6) += cg6.o sbuslib.o | 58 | obj-$(CONFIG_FB_CG6) += cg6.o sbuslib.o |
@@ -108,7 +108,7 @@ obj-$(CONFIG_FB_SM501) += sm501fb.o | |||
108 | # Platform or fallback drivers go here | 108 | # Platform or fallback drivers go here |
109 | obj-$(CONFIG_FB_VESA) += vesafb.o | 109 | obj-$(CONFIG_FB_VESA) += vesafb.o |
110 | obj-$(CONFIG_FB_IMAC) += imacfb.o | 110 | obj-$(CONFIG_FB_IMAC) += imacfb.o |
111 | obj-$(CONFIG_FB_VGA16) += vga16fb.o vgastate.o | 111 | obj-$(CONFIG_FB_VGA16) += vga16fb.o |
112 | obj-$(CONFIG_FB_OF) += offb.o | 112 | obj-$(CONFIG_FB_OF) += offb.o |
113 | 113 | ||
114 | # the test framebuffer is last | 114 | # the test framebuffer is last |