kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* issue with compiling kernel module
@ 2014-01-11  3:33 Arun M Kumar
  2014-01-17 10:07 ` Prabhakar Lad
  0 siblings, 1 reply; 2+ messages in thread
From: Arun M Kumar @ 2014-01-11  3:33 UTC (permalink / raw)
  To: kernelnewbies

I am facing the following error message when i try to compile my kernel 
module.
it is a simple hello world module

make: Entering directory `/usr/src/linux-3.4.6-2.10'

   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 `/usr/src/linux-3.4.6-2.10'



I have tried the said option, of make oldconfig and prepare...

I even recompiled the source using defconfig and am using that kernel, 
but still i get this error.
Please help.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* issue with compiling kernel module
  2014-01-11  3:33 issue with compiling kernel module Arun M Kumar
@ 2014-01-17 10:07 ` Prabhakar Lad
  0 siblings, 0 replies; 2+ messages in thread
From: Prabhakar Lad @ 2014-01-17 10:07 UTC (permalink / raw)
  To: kernelnewbies

Hi Arun,

On Sat, Jan 11, 2014 at 9:03 AM, Arun M Kumar <arunkr.linux@gmail.com> wrote:
> I am facing the following error message when i try to compile my kernel
> module.
> it is a simple hello world module
>
> make: Entering directory `/usr/src/linux-3.4.6-2.10'
>
>    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 `/usr/src/linux-3.4.6-2.10'
>
>
>
> I have tried the said option, of make oldconfig and prepare...
>
> I even recompiled the source using defconfig and am using that kernel,
> but still i get this error.
> Please help.
>
Need more info on this to help..
1: Is your module part of kernel source tree or Independent ?
2: How you  makefile looks ?

Thanks,
--Prabhakar Lad
https://www.linkedin.com/in/prabhakarlad

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-17 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-11  3:33 issue with compiling kernel module Arun M Kumar
2014-01-17 10:07 ` Prabhakar Lad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).