aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/Makefile
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:29 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:29 +0000
commitfa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863 (patch)
treeb30f57e0f20a6a5b52e621ed967a0d9004a74d5d /xen/include/Makefile
parent8589463a257a56c0316b002b7d8affc5709e4672 (diff)
downloadxen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.tar.gz
xen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.tar.bz2
xen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.zip
Handle shared info (having different layout for native and compatibility
mode guests) accesses. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/Makefile')
-rw-r--r--xen/include/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/xen/include/Makefile b/xen/include/Makefile
index 57d8fe93de..416c3a8fee 100644
--- a/xen/include/Makefile
+++ b/xen/include/Makefile
@@ -29,6 +29,7 @@ compat/%.h: compat/%.i Makefile
sed -e 's,__InClUdE__,#include,' \
-e 's,"xen-compat.h",<public/xen-compat.h>,' \
-e 's,\(struct\|union\|enum\)[[:space:]]\+\(xen_\?\)\?\([[:alpha:]_]\),\1 compat_\3,g' \
+ -e 's,@KeeP@,,g' \
-e 's,_t\([^[:alnum:]_]\|$$\),_compat_t\1,g' \
-e 's,\(8\|16\|32\|64\)_compat_t\([^[:alnum:]_]\|$$\),\1_t\2,g' \
-e 's,\(^\|[^[:alnum:]_]\)xen_\?\([[:alnum:]_]*\)_compat_t\([^[:alnum:]_]\|$$\),\1compat_\2_t\3,g' \
@@ -43,13 +44,15 @@ compat/%.h: compat/%.i Makefile
compat/%.i: compat/%.c Makefile
$(CPP) $(CFLAGS) $(cppflags-y) -o $@ $<
-compat/%.c: public/%.h Makefile
+compat/%.c: public/%.h xlat.lst Makefile
mkdir -p $(@D)
grep -v 'DEFINE_XEN_GUEST_HANDLE(long)' $< | \
sed -e 's,^[[:space:]]*#[[:space:]]*include[[:space:]]\+,__InClUdE__ ,' \
-e 's,^[[:space:]]*#[[:space:]]*define[[:space:]]\+\([[:upper:]_]*_GUEST_HANDLE\),#define HIDE_\1,' \
-e 's,^[[:space:]]*#[[:space:]]*define[[:space:]]\+\([[:lower:]_]*_guest_handle\),#define hide_\1,' \
-e 's,XEN_GUEST_HANDLE\(_[[:xdigit:]]\+\)\?,COMPAT_HANDLE,g' \
+ $(foreach n,$(shell sed -n 's,^[[:space:]]*?[[:space:]]\+\([[:alnum:]_]*\)[[:space:]].*,\1,p' xlat.lst), \
+ -e 's,\(struct\|union\)[[:space:]]\+\(xen_\?\)\?$n[[:space:]]\+\([[:alpha:]_]\),\1 @KeeP@\2$n \3,g') \
>$@.new
mv -f $@.new $@