Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux Kconfig¼°Makefileѧϰ


ÄÚºËÔ´ÂëÊ÷µÄĿ¼Ï¶¼ÓÐÁ½¸öÎĵµKconfig £¨2.4°æ±¾ÊÇConfig.in£©ºÍMakefile¡£·Ö²¼µ½¸÷Ŀ¼µÄKconfig¹¹³ÉÁËÒ»¸ö·Ö²¼Ê½µÄÄÚºËÅäÖÃÊý¾Ý¿â£¬Ã¿¸öKconfig·Ö±ðÃèÊöÁËËùÊôĿ¼ԴÎĵµÏà¹ØµÄÄÚºËÅäÖò˵¥¡£ÔÚÄÚºËÅäÖÃmake menuconfigʱ£¬´ÓKconfigÖжÁ³ö²Ëµ¥£¬Óû§Ñ¡Ôñºó±£´æµ½.configµÄÄÚºËÅäÖÃÎĵµÖС£ÔÚÄں˱àÒëʱ£¬Ö÷Makefileµ÷ÓÃÕâ¸ö.config£¬¾ÍÖªµÀÁËÓû§µÄÑ¡Ôñ¡£
ÉÏÃæµÄÄÚÈÝ˵Ã÷ÁË£¬Kconfig¾ÍÊǶÔÓ¦×ÅÄں˵ÄÅäÖò˵¥¡£¼ÙÈçÒªÏëÌí¼ÓеÄÇý¶¯µ½Äں˵ÄÔ´ÂëÖУ¬Äܹ»ÐÞ¸ÄKconfig,ÕâÑù¾ÍÄܹ»Ñ¡ÔñÕâ¸öÇý¶¯£¬¼ÙÈçÏëʹÕâ¸öÇý¶¯±»±àÒ룬ҪÐÞ¸ÄMakefile¡£ËùÒÔ£¬Ìí¼ÓеÄÇý¶¯Ê±ÐèÒªÐ޸ĵÄÎĵµÓÐÁ½ÖÖ£¨×¢Òâ²»Ö»ÊÇÁ½¸ö£©
*Kconfig
*Makefile
---------------------------------------------------------------------------------------------
Kconfig
1.ÏÈÁ˽âÒ»ÏÂKconfigµÄÓï·¨£º
Ò»¸öµäÐ͵ÄÄÚºËÅäÖò˵¥ÈçÏ£º
menu "Network device support"
config NETDEVICES
        bool "Enable Net Devices"
        depends on NET
        default y
       help
               This is help desciption¡£
...
endmenu
°üº¬ÔÚmenu/endmenuÖеÄÄÚÈÝ»á³ÉΪNetwork device supportµÄ×Ӳ˵¥¡£Ã¿Ò»¸ö×Ӳ˵¥ÏÊÇÓÉconfigÀ´¶¨ÒåµÄ¡£congfigÏ·½µÄÄÇЩbool¡¢depends on¡¢default¡¢helpµÈΪconfigµÄÊôÐÔ£¬ÓÃÓÚ¶¨Òå¸Ã²Ëµ¥ÏîµÄÀàÐÍ¡¢ÒÀÀµÏĬÈÏÖµ¡¢°ïÖúÐÅÏ¢µÈ¡£
2. ²¹³ä˵Ã÷Ò»ÏÂÀàÐͶ¨Ò岿·Ö£º
ÿ¸öconfig²Ëµ¥ÏҪÓÐÀàÐͶ¨Òå: bool²¼¶ûÀàÐÍ¡¢ tristateÈý̬(ÄÚ½¨¡¢Ä£¿é¡¢ÒƳý)¡¢string×Ö·û´®¡¢ hexÊ®Áù½øÖÆ¡¢ integerÕûÐÍ¡£
ÀýÈ磺
config HELLO_MODULE
bool "hello test module"
bool ÀàÐ͵ÄÖ»ÄÜÑ¡Öлò²»Ñ¡ÖУ¬ÏÔʾΪ[ ]; tristateÀàÐ͵IJ˵¥Ïî¶àÁ˱àÒë³ÉÄÚºËÄ£¿éµÄÑ¡ÏÏÔʾΪ< > , ¼ÙÈçÑ¡Ôñ±àÒë³ÉÄÚºËÄ£¿é£¬Ôò»áÔÚ.configÖÐÉú³ÉÒ»¸ö CONFIG_HELLO_MODULE=mµÄÅäÖ㬼ÙÈçÑ¡ÔñÄÚ½¨£¬¾ÍÊÇÖ±½Ó±àÒë³ÉÄÚºËÓ°Ï죬¾Í»áÔÚ.configÖÐÉú³ÉÒ»¸ö CONFIG_HELLO_MODULE=yµÄÅäÖÃ. hexÊ®Áù½øÖÆÀàÐÍÏÔʾΪ£¨ £©¡£
3. Ŀ¼²ã´Îµü´ú
ÔÚKconfigÖÐÓÐÀàËÆÓï¾ä£ºsource "drivers/usb/Kconfig"
ÓÃÀ´°üº¬£¨»òǶÌ×£©ÐµÄKconfigÎļþ£¬ÕâÑù±ã¿ÉÒÔʹ¸


Ïà¹ØÎĵµ£º

linux vi ÃüÁî´óÈ«


½øÈëviµÄÃüÁî
vi filename :´ò¿ª»òн¨Îļþ£¬²¢½«¹â±êÖÃÓÚµÚÒ»ÐÐÊ×
vi +n filename £º´ò¿ªÎļþ£¬²¢½«¹â±êÖÃÓÚµÚnÐÐÊ×
vi + filename £º´ò¿ªÎļþ£¬²¢½«¹â±êÖÃÓÚ×îºóÒ»ÐÐÊ×
vi +/pattern filename£º´ò¿ªÎļþ£¬²¢½«¹â±êÖÃÓÚµÚÒ»¸öÓëpatternÆ¥ÅäµÄ´®´¦
vi -r filename £ºÔÚÉÏ´ÎÕýÓÃvi±à¼­Ê±·¢Éúϵͳ±ÀÀ££¬»Ö¸´filen ......

Linux ¹²Ïí¿â£º LD_LIBRARY_PATH Óëld.so.conf

Linux ÔËÐеÄʱºò£¬ÊÇÈçºÎ¹ÜÀí¹²Ïí¿â(*.so)µÄ£¿ÔÚ Linux ÏÂÃ棬¹²Ïí¿âµÄÑ°ÕҺͼÓÔØÊÇÓÉ /lib/ld.so ʵÏֵġ£ ld.so ÔÚ±ê׼·¾­(/lib, /usr/lib) ÖÐÑ°ÕÒÓ¦ÓóÌÐòÓõ½µÄ¹²Ïí¿â¡£
µ«ÊÇ£¬Èç¹ûÐèÒªÓõ½µÄ¹²Ïí¿âÔڷDZê׼·¾­£¬ld.so ÔõôÕÒµ½ËüÄØ£¿
Ä¿Ç°£¬Linux ͨÓõÄ×ö·¨Êǽ«·Ç±ê׼·¾­¼ÓÈë /etc/ld.so.conf£¬È»ºóÔËÐÐ ldconf ......

LINUXÏÂPHP¶ÔÃüÃû¹ÜµÀ²Ù×÷ȨÏÞÎÊÌâ½â¾öС¼Ç

ÕâÁ½ÌìÅöµ½Ò»¸öСÎÊÌ⿨ÁËÎÒÀÏ°ëÌì……¾ÍÊÇLINUXÏÂPHP³ÌÐòÓëÆäËû³ÌÐòͨÐÅ¡£
ÎÒÃÇÐèҪʵÏÖÓû§ÔÚWEBÒ³ÃæÉϽøÐвÙ×÷ʱ¿ÉÒÔÆôÓÃÎÒÃÇÔÚ·þÎñÆ÷¶ËµÄºǫ́³ÌÐò£¨ÓÃC¡¢C++±àд£©¡£
֮ǰÔÚwindowsÏ£¬ÒѾ­Ê¹ÓÃÃüÃû¹ÜµÀʵÏÖ£¨Çë¼ûÎÒ֮ǰµÄ²©ÎÄhttp://blog.csdn.net/rcfalcon/archive/2010/02/09/5303142.aspx£©£¬Õâ´Î½«· ......

Linux Ï°²×°jdk£¬ MyEclipseºÍWebLogic±Ê¼Ç

1£¬ Ê×ÏÈ×¼±¸Linux»·¾³£¬ RedHat5.3µÄϵͳ£¬ jdkÊÇ1.6°æ±¾µÄ£¬MyEclipseÊÇ7.0µÄ£¬ Á¬½Óʱ¿ÉÒÔʹÓÃssh»òÊÇcrt½øÐÐwindowsÓëLinuxµÄ½»Á÷¡£
 
2£¬ÎªÁËÉÏ´«·½±ã£¬ ÔÚʱʹÓÃcrt£¬Ëû¿ÉÒÔʹÉÏ´«£¬ÏÂÔصÄËٶȸü¿ì¡£
 
3£¬ ÔÚLinuxÏ´´½¨±ÈÈç˵ÊÇjdkĿ¼£¬ ʹÓÃrzÉÏ´«¹¤¾ß½øÐÐÉÏ´«£¬ ÉÏ´«ÒԺ󣬸³ÓèÎļþ¼ÐµÃȨÏÞ£¬²¢ÇÒ ......

linuxÖÐ jdk µÄжÔغͰ²×°

zz http://yushan.javaeye.com/blog/261148
Ò».jdk1.4жÔØ
ÓÉÓÚredhat Enterprise 5 ÖÐ×Ô´ø°²×°ÁËjdk1.4µÄ£¬ËùÒÔÔÚ°²×°jdk1.6Ç°ÎÒ°Ñjdk1.4µÄжÁË£¬²½ÖèÈçÏ£º
1.´ò¿ªÖÕ¶ËÊäÈë#rpm -qa | grep gcj
£¬ÆäÏÖʵÄÚÈÝÓУº
  java
-1.4.2-gci-compat.........
  java
-1.4.2-gcj-compat-devel.....(¾ßÌåÍüÁËÊÇʲà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ