From: "Jan Beulich" Subject: Re: [PATCH 2/4] x86/mm: allow for building without shadow mode support Date: Fri, 30 Jan 2015 09:28:26 +0000 Message-ID: <54CB5CCA020000780005B283@mail.emea.novell.com> References: <54C8A524020000780005A27E@mail.emea.novell.com> <54C8A7AB020000780005A2D2@mail.emea.novell.com> <54C8C393.5010000@citrix.com> <20150129173456.GB30359@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YH7sL-0006zD-PC for xen-devel@lists.xenproject.org; Fri, 30 Jan 2015 09:28:29 +0000 In-Reply-To: <20150129173456.GB30359@deinos.phlegethon.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , Tim Deegan Cc: xen-devel , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 29.01.15 at 18:34, wrote: > At 11:10 +0000 on 28 Jan (1422439811), Andrew Cooper wrote: >> On 28/01/15 08:11, Jan Beulich wrote: >> > --- a/xen/arch/x86/mm/shadow/Makefile >> > +++ b/xen/arch/x86/mm/shadow/Makefile >> > @@ -1,4 +1,5 @@ >> > -obj-$(x86_64) += common.o guest_2.o guest_3.o guest_4.o >> > +obj-y := none.o >> > +obj-$(shadow-paging) := common.o guest_2.o guest_3.o guest_4.o >> > >> >> Can this be >> >> ifeq($(shadow-paging),y) >> obj-y := common.o guest_2.o guest_3.o guest_4.o >> else >> obj-y := none.o >> endif >> >> Rather than relying on the double := to clobber none.o and prevent a >> link failure ? > > +1 to this too, for readability. As you both ask for it I'll do it, but very reluctantly, as to me this makes it worse to read, not better. Jan