All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Goldstein <cardoe@cardoe.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>, Tim Deegan <tim@xen.org>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCHv6] 01/28] build: import Kbuild/Kconfig from Linux 4.2
Date: Mon, 30 Nov 2015 09:34:19 -0600	[thread overview]
Message-ID: <565C6C7B.4060600@cardoe.com> (raw)
In-Reply-To: <565C645C02000078000BA3AD@prv-mh.provo.novell.com>


[-- Attachment #1.1: Type: text/plain, Size: 4550 bytes --]

On 11/30/15 7:59 AM, Jan Beulich wrote:
>>>> On 24.11.15 at 18:51, <cardoe@cardoe.com> wrote:
>> --- /dev/null
>> +++ b/xen/include/linux/kconfig.h
>> @@ -0,0 +1,54 @@
>> +#ifndef __LINUX_KCONFIG_H
>> +#define __LINUX_KCONFIG_H
> 
> Neither placement in the source tree nor guard variable should say
> "Linux".

This file gets removed later in the series. I meant to squash that into
this patch.

> 
>> --- /dev/null
>> +++ b/xen/scripts/Makefile.host
>> @@ -0,0 +1,128 @@
> 
> We already have ways to build host programs. Do we really need a
> second mechanism, the more an abstract one? I'd prefer a more
> minimalistic approach (confined to the xen/scripts/kconfig/ subtree,
> which imo actually should be xen/tools/kconfig/). In any even I'd
> expect, for everything outside of the actual kconfig/ subtree, a
> few words in the commit message towards the rationale for including
> those pieces. That'll help future cleanup by clarifying what certain
> pieces are actually needed for.

I can move it into xen/scripts/kconfig. The Xen make rules to build host
programs leave things to be desired and its actually necessary to use
these to build the different config variants. Earlier in the review
process (or really the RFC) I suggested bringing those parts of Kbuild
into Xen, which would have the effect of providing the ability to build
all the necessary pieces but I was told not to. So I'll just move this
file into xen/scripts/kconfig.

I can also move everything to xen/tools/kconfig.

> 
>> --- /dev/null
>> +++ b/xen/scripts/kconfig/.gitignore
>> @@ -0,0 +1,22 @@
> 
> Does the top level one (perhaps suitably adjusted) not fit the needs?

The whole point here was to bring in the kconfig bits from Linux 4.2
untouched for traceability for where the code came from. By doing it
this way it allows Xen to rebase kconfig support to a newer version much
easier since its all self-contained.

> 
>> --- /dev/null
>> +++ b/xen/scripts/kconfig/Makefile.linux
>> @@ -0,0 +1,317 @@
> 
> This doesn't seem to be referenced anywhere.

Its the central file for building kconfig. Its refereinced in
xen/scripts/kconfig/Makefile on line 63. This is the only file I've
renamed from its original name in the Linux source tree.

> 
>> --- /dev/null
>> +++ b/xen/scripts/kconfig/POTFILES.in
>> @@ -0,0 +1,12 @@
> 
> Do we really need this?

If we don't expect to provide localization of kconfig, then no. Granted
I didn't wire up the other localization bits.

> 
>> +void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken)
>> +{
>> +	if (!e) {
>> +		fn(data, NULL, "y");
>> +		return;
>> +	}
>> +
>> +	if (expr_compare_type(prevtoken, e->type) > 0)
>> +		fn(data, NULL, "(");
>> +	switch (e->type) {
>> +	case E_SYMBOL:
>> +		if (e->left.sym->name)
>> +			fn(data, e->left.sym, e->left.sym->name);
>> +		else
>> +			fn(data, NULL, "<choice>");
>> +		break;
>> +	case E_NOT:
>> +		fn(data, NULL, "!");
>> +		expr_print(e->left.expr, fn, data, E_NOT);
>> +		break;
>> +	case E_EQUAL:
>> +		if (e->left.sym->name)
>> +			fn(data, e->left.sym, e->left.sym->name);
>> +		else
>> +			fn(data, NULL, "<choice>");
>> +		fn(data, NULL, "=");
>> +		fn(data, e->right.sym, e->right.sym->name);
>> +		break;
>> +	case E_LEQ:
>> +	case E_LTH:
>> +		if (e->left.sym->name)
>> +			fn(data, e->left.sym, e->left.sym->name);
>> +		else
>> +			fn(data, NULL, "<choice>");
>> +		fn(data, NULL, e->type == E_LEQ ? "<=" : "<");
>> +		fn(data, e->right.sym, e->right.sym->name);
>> +		break;
>> +	case E_GEQ:
>> +	case E_GTH:
>> +		if (e->left.sym->name)
>> +			fn(data, e->left.sym, e->left.sym->name);
>> +		else
>> +			fn(data, NULL, "<choice>");
>> +		fn(data, NULL, e->type == E_LEQ ? ">=" : ">");
> 
> Please eliminate the copy-and-paste mistake here right away (see
> Linux commit f6aad2615c).

In an effort to keep the history clean at 4.2, I'll pull this in as an
additional patch to the series.

> 
>> --- /dev/null
>> +++ b/xen/scripts/kconfig/gconf.c
>> @@ -0,0 +1,1521 @@
> 
> I think I had asked before, and with us not wanting any user visible
> prompts for now I wonder even more: Do we really need [gmnq]conf?
> All I think we really need is conf.
> 
> Jan
> 

Well as you (and others) have commented about the fact that KEXEC and
the ARM UARTs should be user configurable which is why I included those.
So I'll continue to leave those in ok?

-- 
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

  reply	other threads:[~2015-11-30 15:34 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24 17:51 [PATCHv6] 00/28] Kconfig conversion Doug Goldstein
2015-11-24 17:51 ` [PATCHv6] 01/28] build: import Kbuild/Kconfig from Linux 4.2 Doug Goldstein
2015-11-30 13:59   ` Jan Beulich
2015-11-30 15:34     ` Doug Goldstein [this message]
2015-11-30 15:42       ` Ian Jackson
2015-11-30 17:03         ` Jan Beulich
2015-11-30 17:16           ` Ian Jackson
2015-11-30 17:21             ` Ian Campbell
2015-12-01 11:00             ` Jan Beulich
2015-12-02 10:39               ` Ian Campbell
2015-12-03 16:04                 ` Doug Goldstein
2015-11-30 15:55       ` Jan Beulich
2015-11-30 17:00         ` Doug Goldstein
2015-11-30 17:04           ` Ian Jackson
2015-11-30 17:10             ` Doug Goldstein
2015-11-30 17:19           ` Ian Campbell
2015-12-01 20:04             ` Doug Goldstein
2015-12-02  9:38               ` Jan Beulich
2015-12-02 14:34                 ` Doug Goldstein
2015-12-02  9:47               ` Ian Campbell
2015-12-02 14:33                 ` Doug Goldstein
2015-12-01 11:01           ` Jan Beulich
2015-11-24 17:51 ` [PATCHv6] 02/28] build: build Kconfig and config rules Doug Goldstein
2015-11-30 14:36   ` Jan Beulich
2015-11-30 17:53     ` Doug Goldstein
2015-12-01 11:22       ` Jan Beulich
2015-12-03  0:34         ` Doug Goldstein
2015-12-03  8:57           ` Jan Beulich
2015-12-07 21:27             ` Doug Goldstein
2015-12-08  7:32               ` Jan Beulich
2015-12-08 14:16                 ` Doug Goldstein
2015-12-08 14:25                   ` Jan Beulich
2015-12-08 17:59                     ` Doug Goldstein
2015-12-08 18:04                       ` Andrew Cooper
2015-12-09 10:13                         ` Ian Campbell
2015-11-24 17:51 ` [PATCHv6] 03/28] build: use generated Kconfig options for Xen Doug Goldstein
2015-11-30 14:45   ` Jan Beulich
2015-12-08 19:53     ` Doug Goldstein
2015-12-09  8:40       ` Jan Beulich
2015-12-09 20:34         ` Doug Goldstein
2015-12-09 20:53           ` Doug Goldstein
2015-12-10 11:45             ` Jan Beulich
2015-12-10 11:43           ` Jan Beulich
2015-11-24 17:51 ` [PATCHv6] 04/28] build: convert HAS_PASSTHROUGH use to Kconfig Doug Goldstein
2015-11-30 14:50   ` Jan Beulich
2015-12-03  0:36     ` Doug Goldstein
2015-12-03  8:58       ` Jan Beulich
2015-11-24 17:51 ` [PATCHv6] 05/28] build: convert HAS_DEVICE_TREE " Doug Goldstein
2015-11-24 17:51 ` [PATCHv6] 06/28] build: convert HAS_PCI " Doug Goldstein
2015-11-24 17:51 ` [PATCHv6] 07/28] build: convert HAS_NS16550 " Doug Goldstein
2015-11-30 14:55   ` Jan Beulich
2015-11-24 17:51 ` [PATCHv6] 08/28] build: convert HAS_IOPORTS " Doug Goldstein
2015-11-30 14:56   ` Jan Beulich
2015-11-30 15:01     ` Jan Beulich
2015-12-03  0:39       ` Doug Goldstein
2015-12-03  9:06         ` Jan Beulich
2015-11-24 17:51 ` [PATCHv6] 09/28] build: convert HAS_ACPI " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 10/28] build: convert HAS_VIDEO " Doug Goldstein
2015-11-30 15:03   ` Jan Beulich
2015-11-24 17:52 ` [PATCHv6] 11/28] build: convert HAS_VGA " Doug Goldstein
2015-11-30 15:04   ` Jan Beulich
2015-11-24 17:52 ` [PATCHv6] 12/28] build: convert HAS_CPUFREQ " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 13/28] build: convert HAS_GDBSX " Doug Goldstein
2015-11-30 15:06   ` Jan Beulich
2015-11-24 17:52 ` [PATCHv6] 14/28] build: convert HAS_PDX " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 15/28] build: convert HAS_KEXEC " Doug Goldstein
2015-11-30 15:10   ` Jan Beulich
2015-11-24 17:52 ` [PATCHv6] 16/28] build: convert HAS_ARM_HDLCD " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 17/28] build: convert HAS_CADENCE_UART " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 18/28] build: convert HAS_PL011 " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 19/28] build: convert HAS_EXYNOS4210 " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 20/28] build: convert HAS_OMAP " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 21/28] build: convert HAS_SCIF " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 22/28] build: convert HAS_EHCI " Doug Goldstein
2015-11-30 15:13   ` Jan Beulich
2015-11-24 17:52 ` [PATCHv6] 23/28] build: convert HAS_MEM_ACCESS " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 24/28] build: convert HAS_MEM_PAGING " Doug Goldstein
2015-11-30 15:16   ` Jan Beulich
2015-11-24 17:52 ` [PATCHv6] 25/28] build: convert HAS_MEM_SHARING " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 26/28] build: convert HAS_GICV3 " Doug Goldstein
2015-11-24 17:52 ` [PATCHv6] 27/28] build: convert CONFIG_COMPAT " Doug Goldstein
2015-11-30 15:18   ` Jan Beulich
2015-12-03 12:52     ` Doug Goldstein
2015-12-03 12:54       ` Jan Beulich
2015-11-24 17:52 ` [PATCHv6] 28/28] build: convert kexec options to CONFIG_KEXEC Doug Goldstein
2015-11-30 15:51 ` [PATCHv6] 00/28] Kconfig conversion Julien Grall
2015-11-30 17:05   ` Doug Goldstein
2015-11-30 17:13     ` Julien Grall
2015-12-03  3:02 ` Doug Goldstein
2015-12-03  8:29   ` Jan Beulich
2015-12-03  9:50     ` Ian Campbell
2015-12-03 11:00       ` Jan Beulich
2015-12-03 11:10         ` Ian Campbell

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=565C6C7B.4060600@cardoe.com \
    --to=cardoe@cardoe.com \
    --cc=JBeulich@suse.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=keir@xen.org \
    --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.