Linux Driver Makefile Example for 2.6
稍微記錄一下,沒什麼特別之處,只是以後要改的時候有地方抄就是了。感謝 Parrot~
KDIR = /home/irenej/20111122/asngw_svnview/trunk/build/mogli/kernel/linux-2.6.17.14-intel
PWDDIR = /home/irenej/linux/b44-1.00g
CROSS = i686-linux-
ARCH = i386
VERBOSE = 0
ifneq ($(KERNELRELEASE),)
obj-m += b44.o
else
all:
make -C $(KDIR) ARCH=$(ARCH) M=$(PWDDIR) CROSS_COMPILE=$(CROSS) V=$(VERBOSE) modules
clean:
make -C $(KDIR) ARCH=$(ARCH) M=$(PWDDIR) CROSS_COMPILE=$(CROSS) V=$(VERBOSE) clean
endif
留言
張貼留言