kernel Makefile- help needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need some help with Makefiles. I have my directory(kernel module) under the kernel source and have an include directory in it.

|-kernel/
      |-Mydir/
              |-include/*.h

So to include the headers in the include path, I add them to  the variable CPPFLAGS (similar to the HPATH variable in the top Makefile) as:
MY_HPATH = $(TOPDIR)/Mydir/include
CPPFLAGS += -I$(MY_HPATH)

I also do the "make depend" and it creates the .depend successfully. But when I do "make modules", it is not able to find any of the  files in my include path.  So, please tell me what am I missing here?

rgds
Arun

--
"There are 10 people in the world - those who understand binary and those who dont !"

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux