ia64/xen-unstable

changeset 16894:b9004e222fde

Move generation of public header hierarchy into the tools.

This patch merges the two versions of public header generation
currently used in the build into one.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 10:38:44 2008 +0000 (2008-01-26)
parents 3d71b7bf06ea
children 4fd33f77be6b
files .hgignore tools/Makefile tools/Rules.mk tools/blktap/drivers/Makefile tools/blktap/lib/Makefile tools/console/Makefile tools/flask/libflask/Makefile tools/flask/loadpolicy/Makefile tools/include/Makefile tools/include/xen-foreign/Makefile tools/ioemu/Makefile.target tools/libxc/Makefile tools/misc/Makefile tools/python/setup.py tools/xcutils/Makefile tools/xenmon/Makefile tools/xenstat/libxenstat/Makefile tools/xenstore/Makefile tools/xentrace/Makefile xen/Makefile xen/include/public/foreign/Makefile
line diff
     1.1 --- a/.hgignore	Sat Jan 26 10:17:33 2008 +0000
     1.2 +++ b/.hgignore	Sat Jan 26 10:38:44 2008 +0000
     1.3 @@ -118,6 +118,9 @@
     1.4  ^tools/firmware/vmxassist/offsets\.h$
     1.5  ^tools/firmware/vmxassist/vmxassist$
     1.6  ^tools/flask/loadpolicy/flask-loadpolicy$
     1.7 +^tools/include/\.dir$
     1.8 +^tools/include/xen-foreign/.*\.(c|h|size)$
     1.9 +^tools/include/xen-foreign/checker$
    1.10  ^tools/ioemu/\.pc/.*$
    1.11  ^tools/ioemu/config-host\.h$
    1.12  ^tools/ioemu/config-host\.mak$
    1.13 @@ -227,8 +230,6 @@
    1.14  ^xen/include/asm-ia64/asm-xsi-offsets\.h$
    1.15  ^xen/include/compat/.*$
    1.16  ^xen/include/hypervisor-ifs/arch$
    1.17 -^xen/include/public/foreign/.*\.(c|h|size)$
    1.18 -^xen/include/public/foreign/checker$
    1.19  ^xen/include/public/public$
    1.20  ^xen/include/xen/.*\.new$
    1.21  ^xen/include/xen/acm_policy\.h$
     2.1 --- a/tools/Makefile	Sat Jan 26 10:17:33 2008 +0000
     2.2 +++ b/tools/Makefile	Sat Jan 26 10:38:44 2008 +0000
     2.3 @@ -2,6 +2,7 @@ XEN_ROOT = ../
     2.4  include $(XEN_ROOT)/tools/Rules.mk
     2.5  
     2.6  SUBDIRS-y :=
     2.7 +SUBDIRS-y += include
     2.8  SUBDIRS-y += libxc
     2.9  SUBDIRS-y += flask
    2.10  SUBDIRS-y += xenstore
     3.1 --- a/tools/Rules.mk	Sat Jan 26 10:17:33 2008 +0000
     3.2 +++ b/tools/Rules.mk	Sat Jan 26 10:38:44 2008 +0000
     3.3 @@ -5,6 +5,7 @@ all:
     3.4  
     3.5  include $(XEN_ROOT)/Config.mk
     3.6  
     3.7 +XEN_INCLUDE        = $(XEN_ROOT)/tools/include
     3.8  XEN_XC             = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
     3.9  XEN_LIBXC          = $(XEN_ROOT)/tools/libxc
    3.10  XEN_XENSTORE       = $(XEN_ROOT)/tools/xenstore
    3.11 @@ -37,26 +38,3 @@ check-$(CONFIG_X86) = $(call cc-ver-chec
    3.12  %.o: %.cc
    3.13  	$(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
    3.14  
    3.15 -.PHONY: mk-symlinks
    3.16 -
    3.17 -mk-symlinks:
    3.18 -	mkdir -p xen/sys
    3.19 -	( cd xen/sys && \
    3.20 -	  ln -sf ../../$(XEN_ROOT)/tools/include/$(XEN_OS)/*.h . )
    3.21 -	mkdir -p xen
    3.22 -	( cd xen && ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
    3.23 -	mkdir -p xen/hvm
    3.24 -	( cd xen/hvm && ln -sf ../../$(XEN_ROOT)/xen/include/public/hvm/*.h . )
    3.25 -	mkdir -p xen/io
    3.26 -	( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
    3.27 -	mkdir -p xen/xsm
    3.28 -	( cd xen/xsm && ln -sf ../../$(XEN_ROOT)/xen/include/public/xsm/*.h . )
    3.29 -	mkdir -p xen/arch-x86
    3.30 -	( cd xen/arch-x86 && ln -sf ../../$(XEN_ROOT)/xen/include/public/arch-x86/*.h . )
    3.31 -	mkdir -p xen/arch-ia64
    3.32 -	( cd xen/arch-ia64 && ln -sf ../../$(XEN_ROOT)/xen/include/public/arch-ia64/*.h . )
    3.33 -	mkdir -p xen/foreign
    3.34 -	( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/Makefile . )
    3.35 -	( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/reference.size . )
    3.36 -	( cd xen/foreign && ln -sf ../../$(XEN_ROOT)/xen/include/public/foreign/*.py . )
    3.37 -	$(MAKE) -C xen/foreign
     4.1 --- a/tools/blktap/drivers/Makefile	Sat Jan 26 10:17:33 2008 +0000
     4.2 +++ b/tools/blktap/drivers/Makefile	Sat Jan 26 10:38:44 2008 +0000
     4.3 @@ -1,7 +1,7 @@
     4.4  XEN_ROOT = ../../..
     4.5  include $(XEN_ROOT)/tools/Rules.mk
     4.6  
     4.7 -INCLUDES += -I.. -I../lib
     4.8 +INCLUDES += -I.. -I../lib -I$(XEN_INCLUDE)
     4.9  
    4.10  IBIN         = blktapctrl tapdisk
    4.11  QCOW_UTIL    = img2qcow qcow2raw qcow-create
     5.1 --- a/tools/blktap/lib/Makefile	Sat Jan 26 10:17:33 2008 +0000
     5.2 +++ b/tools/blktap/lib/Makefile	Sat Jan 26 10:38:44 2008 +0000
     5.3 @@ -5,7 +5,7 @@ MAJOR    = 3.0
     5.4  MINOR    = 0
     5.5  SONAME   = libblktap.so.$(MAJOR)
     5.6  
     5.7 -INCLUDES += -I. -I.. -I $(XEN_LIBXC) -I $(XEN_XENSTORE)
     5.8 +INCLUDES += -I. -I.. -I $(XEN_LIBXC) -I $(XEN_XENSTORE) -I$(XEN_INCLUDE)
     5.9  
    5.10  LIBS     := -lxenstore
    5.11  
     6.1 --- a/tools/console/Makefile	Sat Jan 26 10:17:33 2008 +0000
     6.2 +++ b/tools/console/Makefile	Sat Jan 26 10:38:44 2008 +0000
     6.3 @@ -8,6 +8,7 @@ CFLAGS  += -Werror
     6.4  
     6.5  CFLAGS  += -I $(XEN_LIBXC)
     6.6  CFLAGS  += -I $(XEN_XENSTORE)
     6.7 +CFLAGS  += -I $(XEN_INCLUDE)
     6.8  
     6.9  BIN      = xenconsoled xenconsole
    6.10  
     7.1 --- a/tools/flask/libflask/Makefile	Sat Jan 26 10:17:33 2008 +0000
     7.2 +++ b/tools/flask/libflask/Makefile	Sat Jan 26 10:38:44 2008 +0000
     7.3 @@ -11,7 +11,7 @@ SRCS       += flask_op.c
     7.4  
     7.5  CFLAGS   += -Werror
     7.6  CFLAGS   += -fno-strict-aliasing
     7.7 -CFLAGS   += $(INCLUDES) -I./include -I$(XEN_LIBXC) 
     7.8 +CFLAGS   += $(INCLUDES) -I./include -I$(XEN_LIBXC) -I$(XEN_INCLUDE)
     7.9  
    7.10  # Get gcc to generate the dependencies for us.
    7.11  CFLAGS   += -Wp,-MD,.$(@F).d
     8.1 --- a/tools/flask/loadpolicy/Makefile	Sat Jan 26 10:17:33 2008 +0000
     8.2 +++ b/tools/flask/loadpolicy/Makefile	Sat Jan 26 10:38:44 2008 +0000
     8.3 @@ -15,6 +15,7 @@ BASECFLAGS+= $(PROFILE)
     8.4  BASECFLAGS+= -I$(LIBXC_ROOT)
     8.5  BASECFLAGS+= -I$(LIBFLASK_ROOT)/include
     8.6  BASECFLAGS+= -I.
     8.7 +BASECFLAGS+= -I$(XEN_INCLUDE)
     8.8  
     8.9  CFLAGS  += $(BASECFLAGS)
    8.10  LDFLAGS += $(PROFILE) -L$(XEN_LIBXC) -L$(LIBFLASK_ROOT)
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/tools/include/Makefile	Sat Jan 26 10:38:44 2008 +0000
     9.3 @@ -0,0 +1,40 @@
     9.4 +XEN_ROOT = ../..
     9.5 +include $(XEN_ROOT)/tools/Rules.mk
     9.6 +
     9.7 +.PHONY: all
     9.8 +all:
     9.9 +	$(MAKE) .dir
    9.10 +
    9.11 +.dir:
    9.12 +	@rm -rf xen
    9.13 +	mkdir xen
    9.14 +	ln -sf ../$(XEN_ROOT)/xen/include/public/COPYING xen
    9.15 +	ln -sf $(addprefix ../,$(wildcard $(XEN_ROOT)/xen/include/public/*.h)) xen
    9.16 +	ln -sf $(addprefix ../$(XEN_ROOT)/xen/include/public/,arch-ia64 arch-x86 hvm io xsm) xen
    9.17 +	ln -sf ../$(XEN_OS) xen/sys
    9.18 +	$(MAKE) -C xen-foreign
    9.19 +	ln -s ../xen-foreign xen/foreign
    9.20 +	touch $@
    9.21 +
    9.22 +.PHONY: install
    9.23 +install: all
    9.24 +	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/arch-ia64
    9.25 +	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/arch-x86
    9.26 +	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/foreign
    9.27 +	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/hvm
    9.28 +	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/io
    9.29 +	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/xsm
    9.30 +	$(INSTALL_DATA) xen/COPYING $(DESTDIR)$(INCLUDEDIR)/xen
    9.31 +	$(INSTALL_DATA) xen/*.h $(DESTDIR)$(INCLUDEDIR)/xen
    9.32 +	$(INSTALL_DATA) xen/arch-ia64/*.h $(DESTDIR)$(INCLUDEDIR)/xen/arch-x86
    9.33 +	$(INSTALL_DATA) xen/arch-x86/*.h $(DESTDIR)$(INCLUDEDIR)/xen/arch-x86
    9.34 +	$(INSTALL_DATA) xen/foreign/*.h $(DESTDIR)$(INCLUDEDIR)/xen/foreign
    9.35 +	$(INSTALL_DATA) xen/hvm/*.h $(DESTDIR)$(INCLUDEDIR)/xen/hvm
    9.36 +	$(INSTALL_DATA) xen/io/*.h $(DESTDIR)$(INCLUDEDIR)/xen/io
    9.37 +	$(INSTALL_DATA) xen/xsm/*.h $(DESTDIR)$(INCLUDEDIR)/xen/xsm
    9.38 +
    9.39 +.PHONY: clean
    9.40 +clean:
    9.41 +	rm -rf xen .dir
    9.42 +	$(MAKE) -C xen-foreign clean
    9.43 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/tools/include/xen-foreign/Makefile	Sat Jan 26 10:38:44 2008 +0000
    10.3 @@ -0,0 +1,45 @@
    10.4 +XEN_ROOT=../../..
    10.5 +include $(XEN_ROOT)/Config.mk
    10.6 +
    10.7 +ROOT = $(XEN_ROOT)/xen/include/public/foreign
    10.8 +#VPATH = $(ROOT)
    10.9 +HOSTCFLAGS += -I$(ROOT)
   10.10 +
   10.11 +MKHEADER_PY = $(ROOT)/mkheader.py
   10.12 +
   10.13 +architectures := x86_32 x86_64 ia64
   10.14 +headers := $(patsubst %, %.h, $(architectures))
   10.15 +scripts := $(wildcard *.py)
   10.16 +
   10.17 +.PHONY: all clean check-headers
   10.18 +all: $(headers) check-headers
   10.19 +
   10.20 +clean:
   10.21 +	rm -f $(headers)
   10.22 +	rm -f checker checker.c
   10.23 +	rm -f *.pyc *.o *~
   10.24 +
   10.25 +ifeq ($(CROSS_COMPILE)$(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
   10.26 +checker: checker.c $(headers)
   10.27 +	$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
   10.28 +
   10.29 +check-headers: checker
   10.30 +	./checker > tmp.size
   10.31 +	diff -u $(ROOT)/reference.size tmp.size
   10.32 +	rm tmp.size
   10.33 +else
   10.34 +check-headers:
   10.35 +	@echo "cross build: skipping check"
   10.36 +endif
   10.37 +
   10.38 +x86_32.h: $(ROOT)/mkheader.py ../xen/arch-x86/xen-x86_32.h ../xen/arch-x86/xen.h ../xen/xen.h
   10.39 +	python $< $* $@ $(filter %.h,$^)
   10.40 +
   10.41 +x86_64.h: $(ROOT)/mkheader.py ../xen/arch-x86/xen-x86_64.h ../xen/arch-x86/xen.h ../xen/xen.h
   10.42 +	python $< $* $@ $(filter %.h,$^)
   10.43 +
   10.44 +ia64.h: $(ROOT)/mkheader.py ../xen/arch-ia64.h ../xen/xen.h
   10.45 +	python $< $* $@ $(filter %.h,$^)
   10.46 +
   10.47 +checker.c: $(ROOT)/mkchecker.py
   10.48 +	python $< $(XEN_TARGET_ARCH) $@ $(architectures)
    11.1 --- a/tools/ioemu/Makefile.target	Sat Jan 26 10:17:33 2008 +0000
    11.2 +++ b/tools/ioemu/Makefile.target	Sat Jan 26 10:38:44 2008 +0000
    11.3 @@ -18,6 +18,7 @@ VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_P
    11.4  CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH)
    11.5  CPPFLAGS+= -I$(XEN_ROOT)/tools/libxc
    11.6  CPPFLAGS+= -I$(XEN_ROOT)/tools/xenstore
    11.7 +CPPFLAGS+= -I$(XEN_ROOT)/tools/include
    11.8  ifdef CONFIG_DARWIN_USER
    11.9  VPATH+=:$(SRC_PATH)/darwin-user
   11.10  CPPFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
    12.1 --- a/tools/libxc/Makefile	Sat Jan 26 10:17:33 2008 +0000
    12.2 +++ b/tools/libxc/Makefile	Sat Jan 26 10:38:44 2008 +0000
    12.3 @@ -50,7 +50,7 @@ GUEST_SRCS-$(CONFIG_POWERPC) += xc_dom_p
    12.4  -include $(XEN_TARGET_ARCH)/Makefile
    12.5  
    12.6  CFLAGS   += -Werror -Wmissing-prototypes
    12.7 -CFLAGS   += $(INCLUDES) -I. -I../xenstore
    12.8 +CFLAGS   += $(INCLUDES) -I. -I../xenstore -I../include
    12.9  
   12.10  # Needed for posix_fadvise64() in xc_linux.c
   12.11  CFLAGS-$(CONFIG_Linux) += -D_GNU_SOURCE
   12.12 @@ -80,7 +80,7 @@ LIB += libxenguest.so libxenguest.so.$(M
   12.13  all: build
   12.14  
   12.15  .PHONY: build
   12.16 -build: check-for-zlib mk-symlinks
   12.17 +build: check-for-zlib
   12.18  	$(MAKE) $(LIB)
   12.19  
   12.20  .PHONY: check-for-zlib
   12.21 @@ -114,7 +114,7 @@ TAGS:
   12.22  
   12.23  .PHONY: clean
   12.24  clean:
   12.25 -	rm -rf *.rpm $(LIB) *~ $(DEPS) xen \
   12.26 +	rm -rf *.rpm $(LIB) *~ $(DEPS) \
   12.27              $(CTRL_LIB_OBJS) $(CTRL_PIC_OBJS) \
   12.28              $(GUEST_LIB_OBJS) $(GUEST_PIC_OBJS)
   12.29  
    13.1 --- a/tools/misc/Makefile	Sat Jan 26 10:17:33 2008 +0000
    13.2 +++ b/tools/misc/Makefile	Sat Jan 26 10:38:44 2008 +0000
    13.3 @@ -5,6 +5,7 @@ CFLAGS   += -Werror
    13.4  
    13.5  INCLUDES += -I $(XEN_XC)
    13.6  INCLUDES += -I $(XEN_LIBXC)
    13.7 +INCLUDES += -I $(XEN_INCLUDE)
    13.8  CFLAGS   += $(INCLUDES)
    13.9  
   13.10  HDRS     = $(wildcard *.h)
    14.1 --- a/tools/python/setup.py	Sat Jan 26 10:17:33 2008 +0000
    14.2 +++ b/tools/python/setup.py	Sat Jan 26 10:38:44 2008 +0000
    14.3 @@ -8,6 +8,7 @@ extra_compile_args  = [ "-fno-strict-ali
    14.4  
    14.5  include_dirs = [ XEN_ROOT + "/tools/libxc",
    14.6                   XEN_ROOT + "/tools/xenstore",
    14.7 +                 XEN_ROOT + "/tools/include",
    14.8                   ]
    14.9  
   14.10  library_dirs = [ XEN_ROOT + "/tools/libxc",
    15.1 --- a/tools/xcutils/Makefile	Sat Jan 26 10:17:33 2008 +0000
    15.2 +++ b/tools/xcutils/Makefile	Sat Jan 26 10:38:44 2008 +0000
    15.3 @@ -13,7 +13,7 @@ include $(XEN_ROOT)/tools/Rules.mk
    15.4  
    15.5  PROGRAMS_INSTALL_DIR = $(LIBDIR)/xen/bin
    15.6  
    15.7 -INCLUDES += -I $(XEN_LIBXC) -I $(XEN_XENSTORE)
    15.8 +INCLUDES += -I $(XEN_LIBXC) -I $(XEN_XENSTORE) -I$(XEN_INCLUDE)
    15.9  
   15.10  CFLAGS += -Werror
   15.11  CFLAGS += $(INCLUDES)
    16.1 --- a/tools/xenmon/Makefile	Sat Jan 26 10:17:33 2008 +0000
    16.2 +++ b/tools/xenmon/Makefile	Sat Jan 26 10:38:44 2008 +0000
    16.3 @@ -16,6 +16,7 @@ include $(XEN_ROOT)/tools/Rules.mk
    16.4  CFLAGS  += -Werror
    16.5  CFLAGS  += -I $(XEN_XC)
    16.6  CFLAGS  += -I $(XEN_LIBXC)
    16.7 +CFLAGS  += -I $(XEN_INCLUDE)
    16.8  LDFLAGS += -L $(XEN_LIBXC)
    16.9  
   16.10  BIN = xentrace_setmask xenbaked
    17.1 --- a/tools/xenstat/libxenstat/Makefile	Sat Jan 26 10:17:33 2008 +0000
    17.2 +++ b/tools/xenstat/libxenstat/Makefile	Sat Jan 26 10:38:44 2008 +0000
    17.3 @@ -36,7 +36,7 @@ SONAME_FLAGS=-Wl,$(SONAME_LDFLAG) -Wl,li
    17.4  
    17.5  WARN_FLAGS=-Wall -Werror
    17.6  
    17.7 -CFLAGS+=-Isrc -I$(XEN_LIBXC) -I$(XEN_XENSTORE)
    17.8 +CFLAGS+=-Isrc -I$(XEN_LIBXC) -I$(XEN_XENSTORE) -I$(XEN_INCLUDE)
    17.9  LDFLAGS+=-Lsrc -L$(XEN_XENSTORE)/ -L$(XEN_LIBXC)/
   17.10  LDLIBS-y = -lxenstore -lxenctrl
   17.11  LDLIBS-$(CONFIG_SunOS) += -lkstat
    18.1 --- a/tools/xenstore/Makefile	Sat Jan 26 10:17:33 2008 +0000
    18.2 +++ b/tools/xenstore/Makefile	Sat Jan 26 10:38:44 2008 +0000
    18.3 @@ -13,6 +13,7 @@ PROG_DEP = .*.d
    18.4  BASECFLAGS+= $(PROFILE)
    18.5  BASECFLAGS+= -I$(XEN_ROOT)/tools/libxc
    18.6  BASECFLAGS+= -I.
    18.7 +BASECFLAGS+= -I$(XEN_INCLUDE)
    18.8  
    18.9  CFLAGS  += $(BASECFLAGS)
   18.10  LDFLAGS += $(PROFILE) -L$(XEN_LIBXC)
    19.1 --- a/tools/xentrace/Makefile	Sat Jan 26 10:17:33 2008 +0000
    19.2 +++ b/tools/xentrace/Makefile	Sat Jan 26 10:38:44 2008 +0000
    19.3 @@ -5,6 +5,7 @@ CFLAGS  += -Werror
    19.4  
    19.5  CFLAGS  += -I $(XEN_XC)
    19.6  CFLAGS  += -I $(XEN_LIBXC)
    19.7 +CFLAGS  += -I $(XEN_INCLUDE)
    19.8  
    19.9  HDRS     = $(wildcard *.h)
   19.10  OBJS     = $(patsubst %.c,%.o,$(wildcard *.c))
    20.1 --- a/xen/Makefile	Sat Jan 26 10:17:33 2008 +0000
    20.2 +++ b/xen/Makefile	Sat Jan 26 10:38:44 2008 +0000
    20.3 @@ -22,30 +22,13 @@ build install debug clean distclean csco
    20.4  _build: $(TARGET).gz
    20.5  
    20.6  .PHONY: _install
    20.7 -_install: $(TARGET).gz build-headers
    20.8 +_install: $(TARGET).gz
    20.9  	[ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
   20.10  	$(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz
   20.11  	ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz
   20.12  	ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz
   20.13  	ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz
   20.14  	$(INSTALL_DATA) $(TARGET)-syms $(DESTDIR)/boot/$(notdir $(TARGET))-syms-$(XEN_FULLVERSION)
   20.15 -	[ -d $(DESTDIR)/usr/include/xen/arch-x86 ] || \
   20.16 -		$(INSTALL_DIR) $(DESTDIR)/usr/include/xen/arch-x86
   20.17 -	[ -d $(DESTDIR)/usr/include/xen/hvm ] || \
   20.18 -		$(INSTALL_DIR) $(DESTDIR)/usr/include/xen/hvm
   20.19 -	[ -d $(DESTDIR)/usr/include/xen/io ] || \
   20.20 -		$(INSTALL_DIR) $(DESTDIR)/usr/include/xen/io
   20.21 -	[ -d $(DESTDIR)/usr/include/xen/xsm ] || \
   20.22 -		$(INSTALL_DIR) $(DESTDIR)/usr/include/xen/xsm
   20.23 -	[ -d $(DESTDIR)/usr/include/xen/foreign ] || \
   20.24 -		$(INSTALL_DIR) $(DESTDIR)/usr/include/xen/foreign
   20.25 -	$(INSTALL_DATA) include/public/*.h $(DESTDIR)/usr/include/xen
   20.26 -	$(INSTALL_DATA) include/public/arch-x86/*.h $(DESTDIR)/usr/include/xen/arch-x86
   20.27 -	$(INSTALL_DATA) include/public/hvm/*.h $(DESTDIR)/usr/include/xen/hvm
   20.28 -	$(INSTALL_DATA) include/public/io/*.h $(DESTDIR)/usr/include/xen/io
   20.29 -	$(INSTALL_DATA) include/public/xsm/*.h $(DESTDIR)/usr/include/xen/xsm
   20.30 -	$(INSTALL_DATA) include/public/foreign/*.h $(DESTDIR)/usr/include/xen/foreign
   20.31 -	$(INSTALL_DATA) include/public/COPYING $(DESTDIR)/usr/include/xen
   20.32  
   20.33  .PHONY: _debug
   20.34  _debug:
   20.35 @@ -54,7 +37,6 @@ build install debug clean distclean csco
   20.36  .PHONY: _clean
   20.37  _clean: delete-unfresh-files
   20.38  	$(MAKE) -C tools clean
   20.39 -	$(MAKE) -C include/public/foreign clean
   20.40  	$(MAKE) -f $(BASEDIR)/Rules.mk -C include clean
   20.41  	$(MAKE) -f $(BASEDIR)/Rules.mk -C common clean
   20.42  	$(MAKE) -f $(BASEDIR)/Rules.mk -C drivers clean
   20.43 @@ -71,7 +53,7 @@ build install debug clean distclean csco
   20.44  	gzip -f -9 < $< > $@.new
   20.45  	mv $@.new $@
   20.46  
   20.47 -$(TARGET): delete-unfresh-files build-headers
   20.48 +$(TARGET): delete-unfresh-files
   20.49  	$(MAKE) -C tools
   20.50  	$(MAKE) -f $(BASEDIR)/Rules.mk include/xen/compile.h
   20.51  	[ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm
   20.52 @@ -120,11 +102,6 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h
   20.53  	  echo ""; \
   20.54  	  echo "#endif") <$< >$@
   20.55  
   20.56 -# generate header files
   20.57 -.PHONY: build-headers
   20.58 -build-headers:
   20.59 -	$(MAKE) -C include/public/foreign
   20.60 -
   20.61  SUBDIRS = xsm arch/$(TARGET_ARCH) common drivers
   20.62  define all_sources
   20.63      ( find include/asm-$(TARGET_ARCH) -name '*.h' -print; \
    21.1 --- a/xen/include/public/foreign/Makefile	Sat Jan 26 10:17:33 2008 +0000
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,37 +0,0 @@
    21.4 -XEN_ROOT=../../../..
    21.5 -include $(XEN_ROOT)/Config.mk
    21.6 -
    21.7 -architectures := x86_32 x86_64 ia64
    21.8 -headers := $(patsubst %, %.h, $(architectures))
    21.9 -scripts := $(wildcard *.py)
   21.10 -
   21.11 -.PHONY: all clean check-headers
   21.12 -all: $(headers) check-headers
   21.13 -
   21.14 -clean:
   21.15 -	rm -f $(headers)
   21.16 -	rm -f checker checker.c $(XEN_TARGET_ARCH).size
   21.17 -	rm -f *.pyc *.o *~
   21.18 -
   21.19 -ifeq ($(CROSS_COMPILE)$(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
   21.20 -check-headers: checker
   21.21 -	./checker > $(XEN_TARGET_ARCH).size
   21.22 -	diff -u reference.size $(XEN_TARGET_ARCH).size
   21.23 -checker: checker.c $(headers)
   21.24 -	$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
   21.25 -else
   21.26 -check-headers:
   21.27 -	@echo "cross build: skipping check"
   21.28 -endif
   21.29 -
   21.30 -x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts)
   21.31 -	python mkheader.py $* $@ $(filter %.h,$^)
   21.32 -
   21.33 -x86_64.h: ../arch-x86/xen-x86_64.h ../arch-x86/xen.h ../xen.h $(scripts)
   21.34 -	python mkheader.py $* $@ $(filter %.h,$^)
   21.35 -
   21.36 -ia64.h: ../arch-ia64.h ../xen.h $(scripts)
   21.37 -	python mkheader.py $* $@ $(filter %.h,$^)
   21.38 -
   21.39 -checker.c: $(scripts)
   21.40 -	python mkchecker.py $(XEN_TARGET_ARCH) $@ $(architectures)