2012年6月20日 星期三

[Driver][qf9700.c] USB Ethernet Driver  --  Makefile

[Driver][qf9700.c] USB Ethernet Driver  --  Makefile



Please save it as Makefile



Download






KERNEL_DIR    := /lib/modules/$(shell uname -r)/build

TARGET    = qf9700

#KERNEL_DIR    := /usr/src/linux-2.6.29/linux-2.6.29.i686/

CURRENT    := $(shell uname -r)

MDIR    := drivers/net/usb

DEST := /lib/modules/$(CURRENT)/kernel/$(MDIR)

KERNEL_VERSION    := $(shell uname -r)

PWD        := $(shell pwd)

MODULE_NAME := qf9700

obj-m        := $(MODULE_NAME).o



all:

    @echo "Building QF9700 USB2NET chip driver..."

    @(cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules)



install:

    su -c "cp -v $(TARGET).ko $(DEST) && /sbin/depmod -a"



clean:

    -rm -f *.o *.ko .*.cmd .*.flags .mii.mod.o.d *.mod.c Module.symvers Module.markers modules.order version.h

    -rm -rf .tmp_versions







[Driver][qf9700.c] USB Ethernet Driver  --  C code


 Download



[Driver][qf9700.c] USB Ethernet Driver  --  h code


Download

Related Posts:

0 意見:

張貼留言