I have finished it.
I used the Makefile like below:
obj-m := hello.o CC = gcc KERNEL_DIR := /myedison/edison-src/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17+gitAUTOINC+6ad20f049a_c03195ed6e-r0/linux-edison-standard-build PWD := $(shell pwd) all: make ARCH=x86 -C $(KERNEL_DIR) M=$(PWD) modules clean: rm *.o *.ko
But,I have a question:the Makefile in Eclipse has a line "CC = i586-poky-linux-gcc -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=$SDKTARGETSYSROOT'' and my Makefile just has "CC = gcc".What is the difference between the lines
The line that you have on Eclipse is a description of the architecture of the target (Edison). The one of your makefile is more generic. Have you tried it on the Edison to see how it behaves?
Can I know which source code you are using inorder to make ,because I'm not finding the above mentioned directories which you have mentioned in the kernel directory .I'm using the yocto image iot-devkit-yp-poky-edison-20160606 and meta-intel-edison image using make.
Can I know much detailed explanation on the header files ,I mean where we should add and from where we are retrieving the info regarding this file
Thanks and Regards,