LinuxÄÚºËÖÐÌṩÁ˺ܶàÉ豸µÄÇý¶¯´úÂ룬µ«Ã¿¸öÏîÄ¿ÖÐ×Ü»áÐèÒªÌí¼ÓÎÒÃÇ×Ô¼ºµÄÇý¶¯£¬±ÈÈçÎÒÃÇÐèÒªÌí¼ÓºìÍâÒ£¿ØÇý¶¯¡£ÎÒÃÇ¿ÉÒÔÏȶÀÁ¢È¥±àдºÍµ÷ÊÔÕâ¸öÇý¶¯£¬µÈ³ÉÊìºóÓ¦¸Ã·Åµ½ÄÚºËĿ¼Ê÷ÖУ¬Ê¹ÓÃmake modulesÃüÁîͳһ±àÒë¡£¶øÇÒÒªÔÚÅäÖÃÑ¡ÏîÖÐÌåÏÖ³öÀ´£¬Óû§¿ÉÒÔʹÓÃmake menuconfigÃüÁîÈ¥ÅäÖñàÒëÓë·ñ¡£²½Öè±È½Ï¼òµ¥£¬²»¹ý¿ÉÄÜÓÐЩÈ˲»Çå³þ£¬ÏÖд³öÀ´×÷Ϊ²Î¿¼¡£
Ò»£ºÄÚºËÅäÖ÷½·¨£º
Ò»°ãʹÓÃmake config ºÍmake menuconfigÈ¥ÅäÖÃÄںˡ£ËûÃÇ·Ö±ðʹÓÃscripts/ConfigureºÍscripts/Menuconfig½Å±¾½âÊ͹¤¾ßÈ¥Ö´Ðнű¾¡£ÔÚ2.4ÄÚºËÖнű¾Îª¸÷¼¶Ä¿Â¼ÏµÄConfig.in,¶øÔÚ2.6ÄÚºËÖбäΪKconfig¡£ÔÚÅäÖÃÍêºó»áÉú³É.configÎļþ£¬ÆäÄÚÈÝΪÏàÓ¦µÄºê¶¨Òå¡£
ÒªÈÃÎÒÃǵÄÇý¶¯ÏîÏÔʾµ½ÅäÖÃÑ¡ÏîÉÏ£¬±ØÐëÐÞ¸ÄÏàÓ¦µÄKconfigÎļþ£¨ÒÔ2.6ÄÚºËΪÀý£©£¬´ËÎļþÓÐÒ»¶¨µÄÓï·¨¹æÔò£¬±È½Ï¼òµ¥£¬Ôٴ˲»¶àÃèÊö¡£
¶þ£ºÊµÀý½²½â²½Öè
ÎÒÃÇÒÔÌí¼ÓoloirºìÍâÇý¶¯ÎªÀý½²½â£º
1£ºÏÈÑ¡ÔñÒ»¸ö·ÅÖÃÇý¶¯´úÂëµÄλÖãºdrivers/olo_ir,°Ñ´úÂë·Åµ½Õâ¸öĿ¼ÖС£
2£ºÔÚdrivers/olo_irÌí¼ÓKconfigÎļþ£¬ÄÚÈÝÈçÏ£º
menu "OLO ir support"
config OLOIR
tristate "OLO ir support"
---help---
olo ir use gpio as ir input .
If you want olo ir support, you should say Y here and also to the
specific driver for your bus adapter(s) below.
This olo ir support can be built as a module.
endmenu
3£º±àдmakefile,ÄÚÈݺܼòµ¥£º
obj-$(CONFIG_OLOIR) += oloir.o
4£ºÐÞ¸ÄÉÏÒ»¼¶MakefileºÍKconfig
ÔÚMakefileÖÐÌí¼Ó£ºobj-$(CONFIG_OLOIR) += olo_ir/
ÔÚKconfigÖÐÌí¼Ó £ºsource "drivers/olo_ir/Kconfig"
5£ºÔÚarch/armµÄKconfigÖÐÌí¼Ó
source "drivers/olo_ir/Kconfig"
Õâ¸öλÖð´ÕÕÄãµÄƽ̨µÄ¼Ü¹¹¶ø¶¨¡£
jian9158101 ÓÚ 2010-07-01 18:16:45·¢±í:
ÕýºÃÐèÒª£¬ºÇºÇ£¬Ð»Ð»Å¶
shenhao0129 ÓÚ 2009-09-27 13:19:11·¢±í:
ºÃÏñÄǸöʲôÖÐǶµÄʱÆÀÉÏÓн²
shentianguo1985 ÓÚ 2009-09-26 14:52:51·¢±í:
obj-$(CONFIG_OLOIR) += oloir.o
Õâ¸öÃüÁîÊÇʲô ×÷ÓÃ
Â¥Ö÷£¬ÄÜ˵Ã÷°×µãÂð