aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/Makefile
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:28 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:28 +0000
commit8589463a257a56c0316b002b7d8affc5709e4672 (patch)
treee4d8b0b664e55eab662d7d88bffcd71a080e22c7 /xen/include/Makefile
parent6224725e9357f6056cff046ba5da4c52f0bace8c (diff)
downloadxen-8589463a257a56c0316b002b7d8affc5709e4672.tar.gz
xen-8589463a257a56c0316b002b7d8affc5709e4672.tar.bz2
xen-8589463a257a56c0316b002b7d8affc5709e4672.zip
Handle the creation of startup info for compatibility mode guests. This
includes a script to auto-generate checking or translation code between native and compatibility mode hypercall argument structures. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/Makefile')
-rw-r--r--xen/include/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/xen/include/Makefile b/xen/include/Makefile
index 1cc0d79baf..57d8fe93de 100644
--- a/xen/include/Makefile
+++ b/xen/include/Makefile
@@ -4,7 +4,7 @@ compat-arch-$(CONFIG_X86) := x86_32
headers-y := $(shell echo public/*.h | sed -e 's,[^[:space:]]*-[^[:space:]]*,,g' -e 's,public/,compat/,g')
headers-y := $(filter-out %/dom0_ops.h,$(headers-y))
-headers-y += compat/arch-$(compat-arch-y).h
+headers-y += compat/arch-$(compat-arch-y).h compat/xlat.h
cppflags-y := -include public/xen-compat.h
cppflags-$(CONFIG_X86) += -m32
@@ -53,5 +53,12 @@ compat/%.c: public/%.h Makefile
>$@.new
mv -f $@.new $@
+compat/xlat.h: xlat.lst $(filter-out compat/xlat.h,$(headers-y)) $(BASEDIR)/tools/get-fields.sh Makefile
+ grep -v '^[[:space:]]*#' xlat.lst | \
+ while read what name hdr; do \
+ $(SHELL) $(BASEDIR)/tools/get-fields.sh "$$what" compat_$$name $$(echo compat/$$hdr | sed 's,@arch@,$(compat-arch-y),g') || exit $$?; \
+ done >$@.new
+ mv -f $@.new $@
+
clean::
rm -rf compat