direct-io.hg

view buildconfigs/Rules.mk @ 4258:beb68750d6e0

bitkeeper revision 1.1236.1.110 (4240375cOt3uh22RXHHKXqGhr8yvEg)

Restore "PHYSICAL MEMORY ARRANGEMENT" printk.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Mar 22 15:18:52 2005 +0000 (2005-03-22)
parents a13b9052d91d
children a01199a95070 e7f3366cfafd
line source
2 # We expect these two to already be set if people
3 # are using the top-level Makefile
4 DISTDIR ?= $(CURDIR)/dist
5 DESTDIR ?= $(DISTDIR)/install
7 .PHONY: mkpatches mrproper
9 # Setup pristine search path
10 PRISTINE_SRC_PATH ?= .:..
11 vpath pristine-% $(PRISTINE_SRC_PATH)
13 # Expand Linux series to Linux version
14 LINUX_SERIES ?= 2.6
15 LINUX_VER ?= $(patsubst linux-%-xen-sparse,%,$(wildcard linux-$(LINUX_SERIES)*-xen-sparse))
17 # Setup Linux search path
18 LINUX_SRC_PATH ?= .:..
19 vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
21 # download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
22 linux-%.tar.bz2: override _LINUX_VDIR = $(word 1,$(subst ., ,$*)).$(word 2,$(subst ., ,$*))
23 linux-%.tar.bz2:
24 @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
25 wget http://www.kernel.org/pub/linux/kernel/v$(_LINUX_VDIR)/$@ -O./$@
27 # Expand NetBSD release to NetBSD version
28 NETBSD_RELEASE ?= 2.0
29 NETBSD_VER ?= $(patsubst netbsd-%-xen-sparse,%,$(wildcard netbsd-$(NETBSD_RELEASE)*-xen-sparse))
30 NETBSD_CVSSNAP ?= 20050309
32 # Setup NetBSD search path
33 NETBSD_SRC_PATH ?= .:..
34 vpath netbsd-%.tar.bz2 $(NETBSD_SRC_PATH)
36 # download a pristine NetBSD tarball if there isn't one in NETBSD_SRC_PATH
37 netbsd-%-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2:
38 @echo "Cannot find $@ in path $(NETBSD_SRC_PATH)"
39 wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/$@ -O./$@
41 netbsd-%.tar.bz2: netbsd-%-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2
42 ln -fs $< $@
44 pristine-%: %.tar.bz2
45 rm -rf tmp-$(@F) $@
46 mkdir -p tmp-$(@F)
47 tar -C tmp-$(@F) -jxf $<
48 mv tmp-$(@F)/* $@
49 touch $@ # update timestamp to avoid rebuild
50 touch $@/.bk_skip
51 @rm -rf tmp-$(@F)
52 [ -d patches/$* ] && \
53 for i in patches/$*/*.patch ; do ( cd $@ ; patch -p1 <../$$i ) ; done || \
54 true
56 %-build:
57 $(MAKE) -f buildconfigs/mk.$* build
59 %-delete:
60 $(MAKE) -f buildconfigs/mk.$* delete
62 %-clean:
63 $(MAKE) -f buildconfigs/mk.$* clean
65 %-config:
66 $(MAKE) -f buildconfigs/mk.$* config
68 %-xen.patch: pristine-%
69 rm -rf tmp-$@
70 cp -al $< tmp-$@
71 ( cd $*-xen-sparse && ./mkbuildtree ../tmp-$@ )
72 diff -Nurp $< tmp-$@ > $@ || true
73 rm -rf tmp-$@
75 %-mrproper: %-mrproper-extra
76 rm -rf pristine-$* $*.tar.bz2
77 rm -rf $*-xen.patch
79 netbsd-%-mrproper-extra:
80 rm -rf netbsd-$*-tools netbsd-$*-tools.tar.bz2
81 rm -f netbsd-$*-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2
83 %-mrproper-extra:
84 @: # do nothing
86 # never delete any intermediate files.
87 .SECONDARY: