I try to compile the source code of DHT11 module given in [https://www.endian.se/content/?p=127] . I have followed the step of KERNEL compilation in [[http://bchavez.bitarmory.com/archive/2013/01/16/compiling-kernel-modules-for-raspberry-pi.aspx ] and succeed. whene I try to compile the file dht11km.c I get error :
make arch=ARM CROSS_COMPILE=/home/makhlouf/rpi/tools-master/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi- -C /home/makhlouf/rpi/linux M=/home/makhlouf/temperature modules
make[1]: Entering directory `/home/makhlouf/rpi/linux'
/home/makhlouf/rpi/linux/arch/x86/Makefile:98: stack protector enabled but no compiler support
CC [M] /home/makhlouf/temperature/dht11km.o
arm-bcm2708-linux-gnueabi-gcc: error: unrecognized command line option '-m64'
arm-bcm2708-linux-gnueabi-gcc: error: unrecognized command line option '-mno-mmx'
arm-bcm2708-linux-gnueabi-gcc: error: unrecognized command line option '-mno-sse'
arm-bcm2708-linux-gnueabi-gcc: error: unrecognized command line option '-mno-red-zone'
arm-bcm2708-linux-gnueabi-gcc: error: unrecognized command line option '-mcmodel=kernel'
arm-bcm2708-linux-gnueabi-gcc: error: unrecognized command line option '-maccumulate-outgoing-args'
make[2]: *** [/home/makhlouf/temperature/dht11km.o] Error 1
make[1]: *** [_module_/home/makhlouf/temperature] Error 2
make[1]: Leaving directory `/home/makhlouf/rpi/linux'
make: *** [all] Error 2
Makefile :
obj-m += dht11km.o
all:
make arch=ARM CROSS_COMPILE=${CCPREFIX} -C /home/makhlouf/rpi/linux M=$(PWD) modules
clean:
make -C /home/makhlouf/rpi/linux M=$(PWD) clean
linux source is in /home/makhlouf/rpi/linux