* kbuild- sub directroy makefile
@ 2015-04-22 15:41 ratheesh kannoth
2015-04-22 16:06 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: ratheesh kannoth @ 2015-04-22 15:41 UTC (permalink / raw)
To: kernelnewbies
******************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
^ permalink raw reply [flat|nested] 4+ messages in thread
* kbuild- sub directroy makefile
2015-04-22 15:41 kbuild- sub directroy makefile ratheesh kannoth
@ 2015-04-22 16:06 ` Greg KH
2015-04-22 16:12 ` ratheesh kannoth
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2015-04-22 16:06 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* kbuild- sub directroy makefile
2015-04-22 16:06 ` Greg KH
@ 2015-04-22 16:12 ` ratheesh kannoth
2015-04-22 17:12 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: ratheesh kannoth @ 2015-04-22 16:12 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* kbuild- sub directroy makefile
2015-04-22 16:12 ` ratheesh kannoth
@ 2015-04-22 17:12 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2015-04-22 17:12 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-22 17:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-22 15:41 kbuild- sub directroy makefile ratheesh kannoth
2015-04-22 16:06 ` Greg KH
2015-04-22 16:12 ` ratheesh kannoth
2015-04-22 17:12 ` Greg KH
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).