From: Daniel Kiper Subject: [PATCH for-xen-4.5 v4 02/18] x86/boot: fix reloc.S build dependencies Date: Fri, 17 Oct 2014 16:11:55 +0200 Message-ID: <1413555132-22138-3-git-send-email-daniel.kiper@oracle.com> References: <1413555132-22138-1-git-send-email-daniel.kiper@oracle.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 1Xf8Gz-0003Lv-7j for xen-devel@lists.xenproject.org; Fri, 17 Oct 2014 14:12:53 +0000 In-Reply-To: <1413555132-22138-1-git-send-email-daniel.kiper@oracle.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: xen-devel@lists.xenproject.org Cc: jgross@suse.com, keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, stefano.stabellini@eu.citrix.com, ross.philipson@citrix.com, roy.franz@linaro.org, ning.sun@intel.com, jbeulich@suse.com, qiaowei.ren@intel.com, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org 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 + +export RELOC_DEPS + head.o: reloc.S %.S: %.c $(MAKE) -f build32.mk $@ -reloc.S: head.S +reloc.S: $(RELOC_DEPS) diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk index a36f620..809f296 100644 --- a/xen/arch/x86/boot/build32.mk +++ b/xen/arch/x86/boot/build32.mk @@ -30,5 +30,6 @@ CFLAGS := $(filter-out -flto,$(CFLAGS)) esac; \ done -reloc.o: $(BASEDIR)/include/asm-x86/config.h +reloc.o: $(RELOC_DEPS) + .PRECIOUS: %.bin %.lnk -- 1.7.10.4