From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Wed, 22 Apr 2015 19:12:15 +0200 Subject: kbuild- sub directroy makefile In-Reply-To: References: <20150422160600.GA942@kroah.com> Message-ID: <20150422171215.GC2551@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Wed, Apr 22, 2015 at 09:42:59PM +0530, ratheesh kannoth wrote: > On Wed, Apr 22, 2015 at 9:36 PM, Greg KH 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