From: Wei Liu <wei.liu2@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
Xen-devel <xen-devel@lists.xenproject.org>,
Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Re: [PATCH v2] build: make debug option affect tools only
Date: Thu, 3 Nov 2016 11:11:41 +0000 [thread overview]
Message-ID: <20161103111141.GU30231@citrix.com> (raw)
In-Reply-To: <20161102101327.GH30231@citrix.com>
On Wed, Nov 02, 2016 at 10:13:28AM +0000, Wei Liu wrote:
> On Wed, Nov 02, 2016 at 02:53:32AM -0600, Jan Beulich wrote:
> > >>> On 01.11.16 at 20:22, <wei.liu2@citrix.com> wrote:
> > > The debug option in Config.mk affects hypervisor, tools and stubdom by
> > > appending different flags to CFLAGS. Mini-os under extra is not
> > > affected because it already has its own build system when it is
> > > separated from xen.git.
> > >
> > > It is undesirable because now hypervisor build is affected by both
> > > Kconfig and debug.
> > >
> > > Disentangle the semantics of debug by pushing relevant options to
> > > individual sub-systems.
> > >
> > > For hypervisor, the flags previously added by debug option is now
> > > controlled by CONFIG_DEBUG.
> > >
> > > For tools, flags are moved from config/*.mk into tools/Rules.mk.
> > >
> > > For stubdom, because it unilaterally sets debug=y before including
> > > top-level Config.mk, we only need to move the debug build set of flags
> > > into stubdom Makefile.
> > >
> > > Specifically there are some considerations on what flags are picked:
> > >
> > > 1. we don't need -fno-optimize-sibling-calls anymore because gcc doc
> > > indicates that it is not enabled for -O1, which we already set in the
> > > debug build.
> > > 2. for tools we use -O0 -g3 in Rules.mk because they already take
> > > precedence over the flags set in config/*.mk.
> > > 3. for hypervisor we don't add -fno-omit-frame-pointer to debug build
> > > because that's controlled by CONFIG_FRAME_POINTER.
> > >
> > > This patch doesn't intend to tune those flags, but to provide identical
> > > set of effective flags as before. The debug option in Config.mk will
> > > only affect tools components after this patch is applied.
> > >
> > > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> >
> > Acked-by: Jan Beulich <jbeulich@suse.com>
> >
>
> Thanks.
>
> I will push this patch along with the two other earlier patches after my
> OSSTest patch lands on production. Please speak up if anyone thinks
> that's a bad idea.
>
My osstest patch landed last night, so I've now pushed this patch and
the other two.
Wei.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-11-03 11:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 19:22 [PATCH v2] build: make debug option affect tools only Wei Liu
2016-11-02 8:53 ` Jan Beulich
2016-11-02 10:13 ` Wei Liu
2016-11-03 11:11 ` Wei Liu [this message]
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=20161103111141.GU30231@citrix.com \
--to=wei.liu2@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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).