direct-io.hg

changeset 13797:249e7e32dec8

Fix cross-compile: ia64 build on x86.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kfraser@localhost.localdomain
date Fri Feb 02 15:54:42 2007 +0000 (2007-02-02)
parents a39a2f18429c
children 2d930873f56d
files xen/include/public/foreign/Makefile
line diff
     1.1 --- a/xen/include/public/foreign/Makefile	Fri Feb 02 15:52:30 2007 +0000
     1.2 +++ b/xen/include/public/foreign/Makefile	Fri Feb 02 15:54:42 2007 +0000
     1.3 @@ -13,9 +13,16 @@ clean:
     1.4  	rm -f checker checker.c $(XEN_TARGET_ARCH).size
     1.5  	rm -f *.pyc *.o *~
     1.6  
     1.7 +ifeq ($(CROSS_COMPILE),)
     1.8  check-headers: checker
     1.9  	./checker > $(XEN_TARGET_ARCH).size
    1.10  	diff -u reference.size $(XEN_TARGET_ARCH).size
    1.11 +checker: checker.c $(headers)
    1.12 +	$(HOSTCC) $(CFLAGS) -o $@ $<
    1.13 +else
    1.14 +check-headers:
    1.15 +	@echo "cross build: skipping check"
    1.16 +endif
    1.17  
    1.18  x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts)
    1.19  	python mkheader.py $* $@ $(filter %.h,$^)
    1.20 @@ -26,8 +33,5 @@ x86_64.h: ../arch-x86/xen-x86_64.h ../ar
    1.21  ia64.h: ../arch-ia64.h ../xen.h $(scripts)
    1.22  	python mkheader.py $* $@ $(filter %.h,$^)
    1.23  
    1.24 -checker: checker.c $(headers)
    1.25 -	$(HOSTCC) $(CFLAGS) -o $@ $<
    1.26 -
    1.27  checker.c: $(scripts)
    1.28  	python mkchecker.py $(XEN_TARGET_ARCH) $@ $(architectures)