From: Tim Deegan Subject: Re: [PATCH 2/2] xen: arm: more flexible scheme for specifying early printk device Date: Thu, 12 Mar 2015 18:35:16 +0100 Message-ID: <20150312173516.GA53334@deinos.phlegethon.org> References: <1426083115-29406-2-git-send-email-ian.campbell@citrix.com> <20150312110356.GB22164@deinos.phlegethon.org> <1426179117.32572.61.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1426179117.32572.61.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: julien.grall@linaro.org, stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 16:51 +0000 on 12 Mar (1426175517), Ian Campbell wrote: > On Thu, 2015-03-12 at 12:03 +0100, Tim Deegan wrote: > > CONFIG_EARLY_PRINTK := $(or $(EARLY_PRINTK_$(CONFIG_EARLY_PRINTK)), $(CONFIG_EARLY_PRINTK) > > EARLY_PRINTK_CFG := $(subst $(COMMA), ,$(CONFIG_EARLY_PRINTK)) > > I didn't know about $(or ...) (but I suppose I could have guessed it > existed, I wonder since when though). Since 3.81 (April 2006), it seems, so OK for debians back to squeeze. We don't specify a gmake version, but that's very slightly newer than GCC 4.1. > In my early testing I found that > CONFIG_EARLY_PRINTK := $(EARLY_PRINTK_$(CONFIG_EARLY_PRINTK)) > didn't do as I expected with CONFIG_EARLY_PRINTK on the make command > line, but it's possible I messed up the trial. > > > Or maybe not, now that I've written it out. :) Either way is probably fine. > > :-) > > I could do: > > EARLY_PRINTK_CFG := $(subst $(COMMA), ,$(or $(EARLY_PRINTK_$(CONFIG_EARLY_PRINTK)), > $(CONFIG_EARLY_PRINTK))) > > Not sure that's better either. Yep, or use another intermediate variable. The bikeshed will look lovely. Tim.