# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1170143511 -32400 # Node ID 94c3db4748b2bf5867a1e3585c5edeb595875de2 # Parent 5bb0840984936749b4e99f53931d72a8579d302c fix cross-compile failure ia64 on x86 of c/s 13636:583441e296a1. When cross-compiling ia64 on x86 box, compiling checker.c fails without this patch. PATCHNAME: cross_compilation_fix_13636_583441e296a1 Signed-off-by: Isaku Yamahata diff -r 5bb084098493 -r 94c3db4748b2 xen/include/public/foreign/Makefile --- a/xen/include/public/foreign/Makefile Mon Jan 29 13:22:21 2007 +0000 +++ b/xen/include/public/foreign/Makefile Tue Jan 30 16:51:51 2007 +0900 @@ -14,12 +14,8 @@ clean: rm -f *.pyc *.o *~ check-headers: checker -ifeq ($(CROSS_COMPILE),) ./checker > $(XEN_TARGET_ARCH).size diff -u reference.size $(XEN_TARGET_ARCH).size -else - @echo "cross build: skipping check" -endif x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts) python mkheader.py $* $@ $(filter %.h,$^) diff -r 5bb084098493 -r 94c3db4748b2 xen/include/public/foreign/mkchecker.py --- a/xen/include/public/foreign/mkchecker.py Mon Jan 29 13:22:21 2007 +0000 +++ b/xen/include/public/foreign/mkchecker.py Tue Jan 30 16:51:51 2007 +0900 @@ -38,10 +38,7 @@ for struct in structs: for struct in structs: f.write('\tprintf("%%-20s |", "%s");\n' % struct); for a in archs: - if a == arch: - s = struct; # native - else: - s = struct + "_" + a; + s = struct + "_" + a; f.write('#ifdef %s_has_no_%s\n' % (a, struct)); f.write('\tprintf("%8s", "-");\n'); f.write("#else\n");