From: Michal Marek <mmarek@suse.com>
To: RaphaelWu@viatech.com.cn
Cc: linux-kbuild@vger.kernel.org
Subject: Re: how to echo $(KBUILD_CFLAGS)
Date: Thu, 20 Aug 2015 13:34:55 +0200 [thread overview]
Message-ID: <55D5BB5F.6020809@suse.com> (raw)
In-Reply-To: <848BD1798F19584EADB3CD55379CFD64665E5A2C@SHMX01.s3graphics.com>
On 2015-08-20 13:03, RaphaelWu@viatech.com.cn wrote:
> Let me show the simplified piece.
>
> obj-m += test.o
> KBUILD_CFLAGS := $(subst -pg,,$(KBUILD_CFLAGS))
>
> all:
> @echo $(KBUILD_CFLAGS)
> $(MAKE) -C /lib/modules/`uname`/build M=$(PWD) modules
>
> So if it's not a kbuild makefile, why the -pg flag can be successful removed through KBUILD_CFLAGS.
There are no all: rules in kbuild files.
Michal
next prev parent reply other threads:[~2015-08-20 11:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 11:03 how to echo $(KBUILD_CFLAGS) RaphaelWu
2015-08-20 11:34 ` Michal Marek [this message]
2015-08-20 17:19 ` Sam Ravnborg
-- strict thread matches above, loose matches on Subject: below --
2015-08-21 1:08 RaphaelWu
2015-08-20 12:04 RaphaelWu
2015-08-20 10:45 RaphaelWu
2015-08-20 10:49 ` Michal Marek
2015-08-20 2:03 RaphaelWu
2015-08-20 8:57 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55D5BB5F.6020809@suse.com \
--to=mmarek@suse.com \
--cc=RaphaelWu@viatech.com.cn \
--cc=linux-kbuild@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).