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

linux 2.6 ÄÚºËÄ£¿éµÄMakefile



 
Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
ÊÕ²Ø



Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
# Makefile 2.6
obj-m += hello.o
KDIR:=/lib/modules/$(shell uname -r)/build
# PWD=$(shell pwd)
all:
        make -C $(KDIR) M=$(PWD) modules
clean:
        make -C $(KDIR) M=$(PWD) clean
obj-m := hello.o±íʾ±àÒëºóÉú³Éhello.oÄ£¿é¡£
$(KDIR) Ö¸¶¨ÁËÄÚºËÔ´ÂëµÄ·¾¶£¬“M=”±íʾÕâÊǸöÍⲿģ¿é£¬M=$(PWD) Ö¸¶¨Á˸ÃÄ£¿éÎļþËùÔڵķ¾¶¡£
×¢£º makefile
Ô¤¶¨ÒåÁË$(PWD)
±äÁ¿£¬´Ë´¦¿ÉÒÔ²»±ØÖظ´¶¨Òå¡£
Èç¹ûÊǶà¸öÔ´Îļþ±àÒë³öÒ»¸öÄ£¿é£¬¼ÙÉèÄ£¿éÃûÊÇtest.ko£¬ÄÇôԴÎļþÃû²»ÄÜÓÐtest.c
obj-m := test.o
test-objs := file1.o file2.o file3.o
KDIR := /lib/modules/$(shell uname -r)/build
#PWD := $(shell pwd)
all:
        make -C $(KDIR) M=$(PWD) modules
clean:
Ò»¸ö¼òµ¥µÄÄÚºËÄ£¿éʾÀý£ºhello.c
#include <linux/module.h>
#include <linux/init.h>
MODULE_LICENSE("GPL");
static int  __iinit  hello_init(void)
{
   printk("hello, world\n");
   return 0;
}
static void  __exit hello_exit(void)
{
   printk("goodbe\n");
}
module_init(hello_init);
module_exit(hello_exit);


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

Linux×î»ù±¾µÄ²Ù×÷¼¼ÇÉ

ת×Ôhttp://blog.chinaunix.net/u/30619/showart.php?id=249558
1 linuxĿ¼¼Ü¹¹
/       ¸ùĿ¼
/bin         ³£ÓõÄÃüÁî   binary   file   µÄÄ¿錄
/boot       ´æ·ÅÏµÍ ......

linux BASH»ù´¡ÖªÊ¶¼¯½õ

1£¬shell export ×÷ÓÃ
http://blog.sina.com.cn/s/blog_62945c360100ffvk.html
2£¬alias ls="ls --color=auto"
    °²×°ÁËarchlinuxºó£¬·¢ÏÖʹÓÃlsÃüÁîʱ£¬Ä¿Â¼ºÍÎļþ²¢Ã»ÓÐÒÔÑÕÉ«Çø·Ö¿ªÀ´£¬¾õµÃºÜ²»·½±ã£¬ËùÒԾ͵½ÍøÉÏËÑÁËһϣ¬·¢ÏÖ¿ÉÒÔʹÓÃaliasÃüÁÔÚ/etc/profileµÄĩβ¼ÓÈëalias ls="ls ......

linux°²×°samba

µ½¹ÙÍøÏÂÔØsamba,samba-3.4.5.tar.gz
½âѹËõ£¬ºó£¬½øÈësource3.
./autogen.sh
./configure
make
make install
Æô¶¯/usr/local/samba/sbin/smbd
´Ë´¦¿ÉÄÜ»áÌáʾ£¬
error while loading shared libraries: libtalloc.so.1
Ö´ÐÐ
LD_DEBUG=libs /usr/local/samba/sbin/smbd -D
¼ì²éÄÄЩlibÎÞ·¨ÕÒµ½£¬ÏàÓ¦µÄÓÃln&nbs ......

Linux É豸Îļþ




document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text&qu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ