All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Goldstein <cardoe@cardoe.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Keir Fraser <keir@xen.org>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCHv6] 03/28] build: use generated Kconfig options for Xen
Date: Wed, 9 Dec 2015 14:34:00 -0600	[thread overview]
Message-ID: <56689038.8020000@cardoe.com> (raw)
In-Reply-To: <5667F71F02000078000BD7A0@prv-mh.provo.novell.com>


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

On 12/9/15 2:40 AM, Jan Beulich wrote:
>>>> On 08.12.15 at 20:53, <cardoe@cardoe.com> wrote:
>> On 11/30/15 8:45 AM, Jan Beulich wrote:
>>>>>> On 24.11.15 at 18:51, <cardoe@cardoe.com> wrote:
>>>> @@ -227,9 +230,14 @@ kconfig := silentoldconfig oldconfig config menuconfig defconfig \
>>>>  $(kconfig):
>>>>  	$(MAKE) -f $(BASEDIR)/scripts/kconfig/Makefile ARCH=$(XEN_TARGET_ARCH) $@
>>>>  
>>>> -$(BASEDIR)/include/config/%.conf: $(BASEDIR)/include/config/auto.conf.cmd
>>>> +$(BASEDIR)/include/config/%.conf: $(BASEDIR)/include/config/auto.conf.cmd $(BASEDIR)/.config
>>>>  	$(Q)$(MAKE) -f $(BASEDIR)/scripts/kconfig/Makefile ARCH=$(XEN_TARGET_ARCH) silentoldconfig
>>>>  
>>>>  # Allow people to just run `make` as before and not force them to configure
>>>> -$(BASEDIR)/.config $(BASEDIR)/include/config/auto.conf.cmd: ;
>>>> +$(BASEDIR)/.config:
>>>>  	$(Q)$(MAKE) -f $(BASEDIR)/scripts/kconfig/Makefile ARCH=$(XEN_TARGET_ARCH) defconfig
>>>
>>> This should be one of the oldconfig targets now, shouldn't it?
>>
>> oldconfig uses .config. This is the case when the user has checked out
>> the tree fresh. Its there to not change the workflow of "git clone ...
>> && cd xen/xen && make"
> 
> Okay. But then this is meant to only support the simplest possible
> form, i.e. without honoring any make command line or ./.config
> overrides like debug=y or kexec=n? If that understanding of
> mine is correct, at least the comment should mention such a
> limitation (even better would be if in such cases unexpected
> results would be prevented by - as the most trivial solution -
> failing the build with a meaningful error message).

So you would like me to add code into xen/Makefile to detect if someone
ran "make kexec=X" or added "kexec=X" into top level .config and give
them a meaningful error message to tell them to use "make config" instead?

> 
>>>> +# Break the dependency chain for the first run
>>>> +$(BASEDIR)/include/config/auto.conf.cmd: ;
>>>> +
>>>> +-include $(BASEDIR)/include/config/auto.conf.cmd
>>>
>>> The comment is quite a bit different in Linux, and seems to make more
>>> sense. Also note how Linux has an empty rule for $(KCONFIG_CONFIG),
>>> a variable which iirc you defined in an earlier patch and hence perhaps
>>> you should be using here.
>>
>> I don't see where that's defined.
> 
> "That" may have multiple meanings in this context. The empty
> rule is in ./Makefile:

"That" was KCONFIG_CONFIG. Which was not anywhere in this patchset and
was always .config.

> 
> # To avoid any implicit rule to kick in, define an empty command
> $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
> 
> And if I was wrong with seeing you define KCONFIG_CONFIG
> somewhere, it would kind of imply that you probably should be
> inheriting this level of abstraction from Linux.
> 
> Jan
> 

Ok. I'll add a variable called KCONFIG_CONFIG. It'll default to .config.
Arguably someone can override "make menuconfig
KCONFIG_CONFIG=/some/place/I/stored/my/config" in Linux which they call
"Load Alternate Config". Googling searching doesn't show this is a
commonly used option/behavior since people usually copy their .config in.

The other places this variable matters are in the building of the
dependencies in kbuild but Xen doesn't use kbuild.

-- 
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-12-09 20: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
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 [this message]
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=56689038.8020000@cardoe.com \
    --to=cardoe@cardoe.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@citrix.com \
    --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.