1 # Setup environment parameters
6 # The target tool-chain prefix
7 #CROSS_COMPILE=/media/Data/KERNEL/tools-master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
9 # Directory where compiled modukes are installed
10 #INSTALL_MOD_PATH=/target/lib/modules/$(shell uname -r)/extra
12 #MY_KERNEL_VERSION=$(shell uname -r)
13 #MY_KERNEL_BUILD=/lib/modules/$(MY_KERNEL_VERSION)/build
15 MY_KERNEL_BUILD=/home/pi/projects/rpi/linux/_build/arm-rpi-3.18-rt
18 make -C $(MY_KERNEL_BUILD) M=`pwd` modules
21 obj-m = zynq_gpio_irc_module.o
23 #clear compilation outputs
25 rm -rf Module.symvers *.o *.ko *.mod.c modules.order .*.cmd .tmp_versions