1
2
3
4
5
6
7
8
9
# Absolute path to be sure it pointed correctly...
# this is the first "alternative" of makefile...
KERN_SRC=/home/lorenzo/YP-R0_DEV/linux-2.6.24-2.4.2-base
obj-m := si4709.o
 
all:
        make -C $(KERN_SRC) ARCH=arm CROSS_COMPILE=arm-ypr0-linux-gnueabi-gcc M=`pwd` modules
clean:
        make -C $(KERN_SRC) ARCH=arm CROSS_COMPILE=arm-ypr0-linux-gnueabi-gcc M=`pwd` clean