From: Doug Goldstein <cardoe@cardoe.com>
To: Tim Deegan <tim@xen.org>
Cc: xen-devel@lists.xen.org
Subject: Re: Kbuild and Kconfig
Date: Thu, 3 Sep 2015 09:13:04 -0500 [thread overview]
Message-ID: <55E85570.8010308@cardoe.com> (raw)
In-Reply-To: <20150903095620.GA96995@deinos.phlegethon.org>
[-- Attachment #1.1: Type: text/plain, Size: 2008 bytes --]
On 9/3/15 4:56 AM, Tim Deegan wrote:
> Hi,
>
> At 12:50 -0500 on 02 Sep (1441198200), Doug Goldstein wrote:
>> I just wanted to bring this to a top level post since Jonathan Creekmore
>> and myself have talked with a few maintainers in different threads and
>> on IRC about potentially using Kconfig and/or Kbuild for Xen.
>
> If we're going to need a configure step before building the
> hypervisor, maybe we should consider using the autoconf runes instead.
>
> I'm one of the people who objected to requiring ./configure before
> building the hypervisor, but I think it would be better than having
> _two_ config systems which are not synced with each other, esp. if
> we'll want to enable/disable features with matching tools-side code.
>
> If we do go this way, I think we'd need a ./configure --hypervisor-only,
> or similar, that _only_ makes the various CONFIG_ flags, and doesn't
> do the tedious library & compiler checks that are needed for the
> user-space code.
>
> Cheers,
>
> Tim.
>
I'd only be concerned about the fact that different config switches
would do different things and you would end up with a lot of configure
switches.
e.g. ./configure --with-kexec --without-xenlinux --with-xsm
Currently there is a top level XSM_ENABLE and FLASK_ENABLE and they do
different things in the tools/ and the xen/ directories. For the tools
directory all it does is disable the Flask policy being built (e.g.
XSM_ENABLE=n does that) while XSM bits in the tools appear to always be
built. Then for the xen/ directory XSM_ENABLE=n will actually turn off
XSM support and Flask support while FLASK_ENABLE=n will keep XSM on and
just build the dummy XSM module.
You may also have cases where you want to build functionality into the
tools but not into the hypervisor to ensure that the hypervisor returns
an error and the tools gracefully handle that case which having a top
level configure script would make more difficult.
--
Doug Goldstein
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 959 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-09-03 14:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 17:50 Kbuild and Kconfig Doug Goldstein
2015-09-02 18:29 ` Andrew Cooper
2015-09-02 20:28 ` Doug Goldstein
2015-09-02 20:50 ` Andrew Cooper
2015-09-04 11:54 ` Stefano Stabellini
2015-09-03 9:56 ` Ian Campbell
2015-09-03 10:09 ` Tim Deegan
2015-09-03 10:26 ` Jan Beulich
2015-09-03 13:58 ` Doug Goldstein
2015-09-04 10:59 ` Andrew Cooper
2015-09-04 11:37 ` Ian Campbell
2015-09-03 9:56 ` Tim Deegan
2015-09-03 14:13 ` Doug Goldstein [this message]
2015-09-03 10:31 ` Jan Beulich
2015-09-03 14:04 ` Doug Goldstein
2015-09-03 15:00 ` Jan Beulich
2015-09-18 19:31 ` Doug Goldstein
2015-09-21 8:01 ` Jan Beulich
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=55E85570.8010308@cardoe.com \
--to=cardoe@cardoe.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.