kbuild- sub directroy makefile

Greg KH greg at kroah.com
Wed Apr 22 13:12:15 EDT 2015


On Wed, Apr 22, 2015 at 09:42:59PM +0530, ratheesh kannoth wrote:
> On Wed, Apr 22, 2015 at 9:36 PM, Greg KH <greg at kroah.com> wrote:
> > Nope, why do you want to do that?  The kernel build will show you that
> > hello.o is being built, when it is built.
> 
> Greg,
> There was some problem with env variables ( that i exported to shell
> from top ) that my makefile is using.

Kernel makefiles should not be using any environment variables.  Your
makefile should be almost exactly what you posted, just a list of the .o
files it takes to build the module.  Nothing else is needed.

If it is, you are making things much harder than they should be :)

thanks,

greg k-h



More information about the Kernelnewbies mailing list