Hi , I am trying to build the driver as module . And my driver file includes a header files placed in current working directory.
---------------------------------- /* driver.c */ #include "head.h" ............. ------------------------------------ And there are macros defined under header file. When i build my driver, i am getting error as the MACROS under header files are unresolved. Example : /home/bgh11183/driver.c:3851: error: 'LCD_INT' undeclared (first use in this function) I tried google, but unable to get the pointer for this problem. Here is my Makefile -------------------------------------------------------------------------- KERNELDIR=/home/bgh11183/mipsandroid/kernel ARM_TOOLCHAIN=/opt/mips-4.3/bin/mips-linux-gnu- CC= $(CROSS_COMPILE)gcc obj-m := driver.o default: make -C ${KERNELDIR} CROSS_COMPILE=${ARM_TOOLCHAIN} ARCH=mips M=$(PWD) modules clean: rm -rf *.o *.ko -------------------------------------------------------------------------- Can anyone help me to resolve this issue ? -- With Regards, ShankarGanesh K . "The most beautiful thing we can experience is the mysterious. It is the source of all true art and science."