- KERNELDIR = /linux-2.6.32.2-feng
- PWD := $(shell pwd)
- CROSS_COMPILE = /opt/EmbedSky/4.3.3/bin/arm-linux-
- CC = $(CROSS_COMPILE)gcc
- obj-m := hello.o
- modules:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
- clean:
- rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
- .PHONY: modules clean