Re: how to echo $(KBUILD_CFLAGS)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have seen this VAR used in some kernel module which also forbid ftrace.
but I was curious about whenever I echo $(KBUILD_CFLAGS), it's always empty.

all:
@echo $(KBUILD_CFLAGS)
$(MAKE) -C /path-of-kernel/ M=$(PWD) modules

The modification of the option did works, but in the scope of the deferred truly building
out-of-tree modules process, the VAR's value seems gone.

Thanks for your time.

Raphael

> ----------original
> sender: linux-kbuild-owner@xxxxxxxxxxxxxxx
> [mailto:linux-kbuild-owner@xxxxxxxxxxxxxxx] on behave Michal Marek
> On: 2015-08-20 16:58
> receiver: Raphael Wu
> cc: daniel.baluta@xxxxxxxxx; linux-kbuild@xxxxxxxxxxxxxxx;
> octavian.purdila@xxxxxxxxx; bogdan.m.davidoaia@xxxxxxxxx
> Title: Re: how to echo $(KBUILD_CFLAGS)
>
> On 2015-08-20 04:03, RaphaelWu@xxxxxxxxxxxxxx wrote:
> > Hi,
> >         Recently I wrote a test module, within my module I need remove
> > -pg flag which is defined by host Makefile (which enable -pg, ftrace function).
> >         I used a trick in my module makefile KBUILD_CFLAGS := $(subst
> > -pg,,$(KBUILD_CFLAGS)),
>
> You are probably looking for CLFAGS_REMOVE_<file.o>.
>
> Michal
> --

The information transmitted in this e-mail is intended only for the addressee and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of this information by persons or entities other than the intended recipient is prohibited. If you received this e-mail in error, please notify the sender immediately, and delete this e-mail and any attachments. Thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux