From mboxrd@z Thu Jan 1 00:00:00 1970 From: arunkr.linux@gmail.com (Arun M Kumar) Date: Wed, 08 Jan 2014 02:54:52 +0530 Subject: Error in Make for Kernel Module Message-ID: <52CC70A4.7050309@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org I am starting with Device Drivers for Linux System Details: Linux linux-nwya.site 3.10.25-2.10-desktop #2 SMP PREEMPT Tue Jan 7 00:25:03 IST 2014 i686 i686 i386 GNU/Linux I created a Simple Hello_world Kernel Module. "Hello_World.c" //--------------------------------------------------------- /* My first kernel Module */ #include #include static init my_init(void){ printk(KERN_ALERT "Hello World\n"); return 0; } static void my_exit(void){ printk(KERN_ALERT "Exit\n"); } MODULE_LICENSE("GPL"); module_init(my_init); module_exit(my_exit); //--------------------------------------------------------------------- The Makefile is as follows: The file name is "Makefile" //--------------------------------------------------------------------- obj-m := Hello_World.o //--------------------------------------------------------------------- on running the make command i get the following error. //---------------------------------------------------------------------------- make: Entering directory `/home/arun/Linux_Source' ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. make: *** No rule to make target `Device'. Stop. make: Leaving directory `/home/arun/Linux_Source' //------------------------------------------------------------------------------- I have tried "make prepare" but the issue remains.... any suggestions would be appreciated. Thanks in advance.