ia64/xen-unstable

changeset 15239:1f1d1b43951e

Check for mismatch between headers shared by Linux and Xen.

This is only enabled for the linux-2.6-xen tree and is intended to
ensure that the separate Linux tree stays up to date once we
switch away from the sparse tree.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed May 30 13:10:20 2007 +0100 (2007-05-30)
parents 63211a8027fa
children 1f8fb764f843
files buildconfigs/mk.linux-2.6-native buildconfigs/mk.linux-2.6-paravirt buildconfigs/mk.linux-2.6-xen buildconfigs/mk.linux-2.6.5-SLES-xen buildconfigs/mk.linux-2.6.9-RHEL-xen
line diff
     1.1 --- a/buildconfigs/mk.linux-2.6-native	Wed May 30 11:55:38 2007 +0100
     1.2 +++ b/buildconfigs/mk.linux-2.6-native	Wed May 30 13:10:20 2007 +0100
     1.3 @@ -1,4 +1,7 @@
     1.4  EXTRAVERSION = -native
     1.5  IMAGE_TARGET = bzImage
     1.6  INSTALL_BOOT_PATH = $(DESTDIR)/boot
     1.7 +
     1.8 +XEN_LINUX_ALLOW_INTERFACE_MISMATCH := y
     1.9 +
    1.10  include buildconfigs/mk.linux-2.6-xen
     2.1 --- a/buildconfigs/mk.linux-2.6-paravirt	Wed May 30 11:55:38 2007 +0100
     2.2 +++ b/buildconfigs/mk.linux-2.6-paravirt	Wed May 30 13:10:20 2007 +0100
     2.3 @@ -6,6 +6,8 @@ LINUX_VER ?= 2.6-paravirt
     2.4  XEN_TARGET_ARCH = x86_32
     2.5  IMAGE_TARGET ?= vmlinux bzImage
     2.6  
     2.7 +XEN_LINUX_ALLOW_INTERFACE_MISMATCH := y
     2.8 +
     2.9  EXTRAVERSION ?=
    2.10  
    2.11  include buildconfigs/mk.linux-2.6-xen
     3.1 --- a/buildconfigs/mk.linux-2.6-xen	Wed May 30 11:55:38 2007 +0100
     3.2 +++ b/buildconfigs/mk.linux-2.6-xen	Wed May 30 13:10:20 2007 +0100
     3.3 @@ -27,6 +27,15 @@ include buildconfigs/src.$(XEN_LINUX_SOU
     3.4  # The real action starts here!
     3.5  .PHONY: build
     3.6  build: $(LINUX_DIR)/include/linux/autoconf.h
     3.7 +ifneq ($(XEN_LINUX_ALLOW_INTERFACE_MISMATCH),y)
     3.8 +	@if ! diff -urN -x '*.size' $(LINUX_SRCDIR)/include/xen/interface xen/include/public ; then \
     3.9 +		echo "" 1>&2 ; \
    3.10 +		echo " *** $(LINUX_SRCDIR)/include/xen/interface is out of date " 1>&2 ; \
    3.11 +		echo " *** relative to $(XEN_ROOT)/xen/include/public." 1>&2 ; \
    3.12 +		echo "" 1>&2 ; \
    3.13 +		exit 1 ; \
    3.14 +	fi
    3.15 +endif
    3.16  	if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
    3.17  	    $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules ; \
    3.18  	    $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
     4.1 --- a/buildconfigs/mk.linux-2.6.5-SLES-xen	Wed May 30 11:55:38 2007 +0100
     4.2 +++ b/buildconfigs/mk.linux-2.6.5-SLES-xen	Wed May 30 13:10:20 2007 +0100
     4.3 @@ -2,6 +2,8 @@
     4.4  XEN_TARGET_ARCH = x86_32
     4.5  XEN_TARGET_X86_PAE = y
     4.6  
     4.7 +XEN_LINUX_ALLOW_INTERFACE_MISMATCH := y
     4.8 +
     4.9  EXTRAVERSION = -xen
    4.10  LINUX_VER = 2.6.5-SLES
    4.11  
     5.1 --- a/buildconfigs/mk.linux-2.6.9-RHEL-xen	Wed May 30 11:55:38 2007 +0100
     5.2 +++ b/buildconfigs/mk.linux-2.6.9-RHEL-xen	Wed May 30 13:10:20 2007 +0100
     5.3 @@ -2,6 +2,8 @@
     5.4  XEN_TARGET_ARCH = x86_32
     5.5  XEN_TARGET_X86_PAE = y
     5.6  
     5.7 +XEN_LINUX_ALLOW_INTERFACE_MISMATCH := y
     5.8 +
     5.9  EXTRAVERSION = -xen
    5.10  LINUX_VER = 2.6.9-RHEL
    5.11