X86驱动的Makefile:
obj-m := hello_driver.o
KDIR :=/home/zyb/linux-2.6.22.10
all:
make -C $(KDIR) M=$(shell pwd) modules
clean:
make -C $(KDIR) M=$(shell pwd) clean
嵌入式产品的Makefile:
obj-m := hello_driver.o
KDIR :=/home/zyb/linux-2.6.22.10
all:
make -C $(KDIR) M=$(shell pwd) modules ARCH=arm CROSS_COMPILE=arm-linux-
clean:
make -C $(KDIR) M=$(shell pwd) clean