******************Start of Makfile*********** ccflags += "-D DEXI" obj-m := hello.o ************End***************** Is there any way i can echo a string ...like "Hey i am building hello.o now " in this makefile ? I tries targets like genbin as per http://lxr.free-electrons.com/source/Documentation/kbuild/modules.txt?v=3.9. I dont think other targets would work as this is a sub-directory level makefile which is being called from top directroy. Any help is really appreciated Thanks, Ratheesh
On Wed, Apr 22, 2015 at 09:11:36PM +0530, ratheesh kannoth wrote:
******************Start of Makfile*********** ccflags += "-D DEXI" obj-m := hello.o
************End*****************
Is there any way i can echo a string ...like "Hey i am building hello.o now " in this makefile ?
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 k-h
On Wed, Apr 22, 2015 at 9:36 PM, Greg KH <greg@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. inorder to debug that i thought of adding some "echo " statements. -Ratheesh
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@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
participants (2)
-
Greg KH -
ratheesh kannoth