From: "Jan Beulich" Subject: Re: [PATCH for-xen-4.5 v4 02/18] x86/boot: fix reloc.S build dependencies Date: Fri, 17 Oct 2014 17:22:03 +0100 Message-ID: <54415E4B020000780003FBB4@mail.emea.novell.com> 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> <20141017161049.GG3467@olila.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XfAI0-0003kW-BH for xen-devel@lists.xenproject.org; Fri, 17 Oct 2014 16:22:04 +0000 In-Reply-To: <20141017161049.GG3467@olila.local.net-space.pl> 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: Daniel Kiper 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 17.10.14 at 18:10, wrote: > 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. Yes. Jan