From: Daniel Kiper Subject: Re: [PATCH for-xen-4.5 v4 02/18] x86/boot: fix reloc.S build dependencies Date: Fri, 17 Oct 2014 18:10:49 +0200 Message-ID: <20141017161049.GG3467@olila.local.net-space.pl> References: <1413555132-22138-1-git-send-email-daniel.kiper@oracle.com> <1413555132-22138-3-git-send-email-daniel.kiper@oracle.com> <54414917020000780003FAB9@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XfA7S-0002rD-JP for xen-devel@lists.xenproject.org; Fri, 17 Oct 2014 16:11:10 +0000 Content-Disposition: inline In-Reply-To: <54414917020000780003FAB9@mail.emea.novell.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: Jan Beulich Cc: Juergen Gross , keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, roy.franz@linaro.org, ning.sun@intel.com, ross.philipson@citrix.com, xen-devel@lists.xenproject.org, qiaowei.ren@intel.com, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org On Fri, Oct 17, 2014 at 03:51:35PM +0100, Jan Beulich wrote: > >>> On 17.10.14 at 16:11, wrote: > > --- a/xen/arch/x86/boot/Makefile > > +++ b/xen/arch/x86/boot/Makefile > > @@ -1,8 +1,12 @@ > > obj-bin-y += head.o > > > > +RELOC_DEPS = $(BASEDIR)/include/asm-x86/config.h $(BASEDIR)/include/xen/multiboot.h > > + > > +export RELOC_DEPS > > This can be done on one line, but I'd prefer dropping the export > altogether and communicating the setting on just the make > invocation line. I suppose that you think about that one: %.S: %.c $(MAKE) -f build32.mk $@ RELOC_DEPS=$(RELOC_DEPS) However, this is a bit strange because in general rule we pass args for specific build. So, maybe we should do that: reloc.S: reloc.c $(RELOC_DEPS) $(MAKE) -f build32.mk $@ RELOC_DEPS=$(RELOC_DEPS) and simply remove this generic rule from Makefile. > > -reloc.S: head.S > > +reloc.S: $(RELOC_DEPS) > > The dropping of the head.S dependency seems fine, but needs to be > briefly explained in the commit message. OK. Daniel