3、修改drivers/video 目录下的Makefile 和 Kconfig
copy 完后,下来就是修改 drivers/video 下面的Makefile 和 Kconfig ,这样做的主要目的是为了,将你的驱动加载进 make menuconfig 的
配置菜单中,以便内核编译的时候,讲你的LCD驱动编译进内核。
修改 drivers/video/Makefile 在Makefile 的最后一行添加 obj-$(CONFIG_FB_S3C_EXT)+= samsung/
修改 drivers/video/Kconfig 在倒数第二行,endmenu 前添加: source “drivers/video/samsung/Kconfig”
修改完成后make menuconfig 在
Device Drivers -> Graphics support --->
选中 <*> Support for frame buffer devices ---> // 支持 FB
会发现下面添加了: 按照下面的配置内核:
<*> S3C Frambuffer Support (eXended)
Select LCD Type ( 4.3 inch 480*272 TFT LCD) --->
<*> Advanced options for S3C Frambuffer
Select Bpp(Bits Per Pixel ) ( 16 BPP ) --->
(4) Number of Framebufers
[ ] Enable Virtural Screen
[ * ] Enable Double Buffering.
如果 你配置内核时没有出现上面的选项。请检查是否选中了 FB 支持。如果已经有FB 支持,请检查上面修改的 Makefile 和 Kconfig。
配置支持LOGO
Graphics support --->
<*> Support for frame buffer devices
Console display driver support --->
<*> Framebuffer Console support
Logo configuration --->
[*] Bootup logo
[*] Standard 224-color Linux logo
