win-pvdrivers

view common/include/public/foreign/Makefile @ 1106:2d392ecdd366

Fix race is xenvbd causing 30 second freeze under high load
author James Harper <james.harper@bendigoit.com.au>
date Tue Nov 11 23:08:11 2014 +1100 (2014-11-11)
parents 5712dede5a1b
children
line source
1 XEN_ROOT=../../../..
2 include $(XEN_ROOT)/Config.mk
4 architectures := x86_32 x86_64 ia64
5 headers := $(patsubst %, %.h, $(architectures))
6 scripts := $(wildcard *.py)
8 .PHONY: all clean check-headers
9 all: $(headers) check-headers
11 clean:
12 rm -f $(headers)
13 rm -f checker checker.c $(XEN_TARGET_ARCH).size
14 rm -f *.pyc *.o *~
16 ifeq ($(CROSS_COMPILE)$(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
17 check-headers: checker
18 ./checker > $(XEN_TARGET_ARCH).size
19 diff -u reference.size $(XEN_TARGET_ARCH).size
20 checker: checker.c $(headers)
21 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
22 else
23 check-headers:
24 @echo "cross build: skipping check"
25 endif
27 x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts)
28 python mkheader.py $* $@ $(filter %.h,$^)
30 x86_64.h: ../arch-x86/xen-x86_64.h ../arch-x86/xen.h ../xen.h $(scripts)
31 python mkheader.py $* $@ $(filter %.h,$^)
33 ia64.h: ../arch-ia64.h ../xen.h $(scripts)
34 python mkheader.py $* $@ $(filter %.h,$^)
36 checker.c: $(scripts)
37 python mkchecker.py $(XEN_TARGET_ARCH) $@ $(architectures)