ia64/xen-unstable

changeset 16914:f605f35bd6ba

Do not special-case native architecture in mkchecker.py.
From: Bastian Blank <waldi@debian.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jan 27 13:03:10 2008 +0000 (2008-01-27)
parents 240d78e0bb0b
children f26026336462
files tools/include/xen-foreign/Makefile xen/include/public/foreign/mkchecker.py
line diff
     1.1 --- a/tools/include/xen-foreign/Makefile	Sun Jan 27 12:59:30 2008 +0000
     1.2 +++ b/tools/include/xen-foreign/Makefile	Sun Jan 27 13:03:10 2008 +0000
     1.3 @@ -18,7 +18,6 @@ clean:
     1.4  	rm -f checker checker.c
     1.5  	rm -f *.pyc *.o *~
     1.6  
     1.7 -ifeq ($(CROSS_COMPILE)$(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
     1.8  checker: checker.c $(headers)
     1.9  	$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
    1.10  
    1.11 @@ -26,10 +25,6 @@ check-headers: checker
    1.12  	./checker > tmp.size
    1.13  	diff -u $(ROOT)/foreign/reference.size tmp.size
    1.14  	rm tmp.size
    1.15 -else
    1.16 -check-headers:
    1.17 -	@echo "cross build: skipping check"
    1.18 -endif
    1.19  
    1.20  x86_32.h: $(MKHEADER_PY) $(ROOT)/arch-x86/xen-x86_32.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
    1.21  	python $< $* $@ $(filter %.h,$^)
    1.22 @@ -41,4 +36,4 @@ ia64.h: $(MKHEADER_PY) $(ROOT)/arch-ia64
    1.23  	python $< $* $@ $(filter %.h,$^)
    1.24  
    1.25  checker.c: $(MKCHECKER_PY)
    1.26 -	python $< $(XEN_TARGET_ARCH) $@ $(architectures)
    1.27 +	python $< $@ $(architectures)
     2.1 --- a/xen/include/public/foreign/mkchecker.py	Sun Jan 27 12:59:30 2008 +0000
     2.2 +++ b/xen/include/public/foreign/mkchecker.py	Sun Jan 27 13:03:10 2008 +0000
     2.3 @@ -4,9 +4,8 @@ import sys;
     2.4  from structs import structs;
     2.5  
     2.6  # command line arguments
     2.7 -arch    = sys.argv[1];
     2.8 -outfile = sys.argv[2];
     2.9 -archs   = sys.argv[3:];
    2.10 +outfile = sys.argv[1];
    2.11 +archs   = sys.argv[2:];
    2.12  
    2.13  f = open(outfile, "w");
    2.14  f.write('''
    2.15 @@ -38,10 +37,7 @@ f.write('\tprintf("\\n");');
    2.16  for struct in structs:
    2.17      f.write('\tprintf("%%-25s |", "%s");\n' % struct);
    2.18      for a in archs:
    2.19 -        if a == arch:
    2.20 -            s = struct; # native
    2.21 -        else:
    2.22 -            s = struct + "_" + a;
    2.23 +        s = struct + "_" + a;
    2.24          f.write('#ifdef %s_has_no_%s\n' % (a, struct));
    2.25          f.write('\tprintf("%8s", "-");\n');
    2.26          f.write("#else\n");