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 16:10:35 +0100 Message-ID: <54414D8B020000780003FAE9@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> <54412E3A.6020005@citrix.com> 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 1Xf9Aq-0007rZ-5F for xen-devel@lists.xenproject.org; Fri, 17 Oct 2014 15:10:36 +0000 In-Reply-To: <54412E3A.6020005@citrix.com> 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 Cc: Juergen Gross , keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, Daniel Kiper , 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 16:56, wrote: > On 17/10/14 15:11, Daniel Kiper wrote: >> reloc.S is not rebuild if header included >> in reloc.c is updated. Fix this issue. >> >> Signed-off-by: Daniel Kiper >> --- >> xen/arch/x86/boot/Makefile | 6 +++++- >> xen/arch/x86/boot/build32.mk | 3 ++- >> 2 files changed, 7 insertions(+), 2 deletions(-) >> >> diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile >> index 13f4a66..3cab36a 100644 >> --- 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 > > What is wrong with the normal gcc method of using "-MMD -MF" ? It would > avoid duplicating the list of includes in the Makefile. The main one being that build32.mk doesn't get invoked with the full build machinery in place, but just via "$(MAKE) -f". Jan