ia64/xen-unstable

view buildconfigs/mk.netbsd-2.0-xenU @ 3856:0fe3bb5ed3aa

bitkeeper revision 1.1205.1.1 (42150936fR3KSFT51o4AFy0i4Fg7Vg)

Merge burn.cl.cam.ac.uk:/local/scratch-1/maf46/xen-unstable.bk/tmp
into burn.cl.cam.ac.uk:/local/scratch-1/maf46/xen-unstable.bk
author maf46@burn.cl.cam.ac.uk
date Thu Feb 17 21:14:30 2005 +0000 (2005-02-17)
parents 0a4b76b6b5a0
children 77fbd1da5611 a13b9052d91d a01199a95070
line source
2 NETBSD_RELEASE ?= 2.0
3 NETBSD_CVSSNAP ?= 20041103
5 EXTRAVERSION = xenU
7 FULLVERSION = $(NETBSD_VER)-$(EXTRAVERSION)
9 NETBSD_DIR = netbsd-$(FULLVERSION)
11 .PHONY: build clean mrproper mkpatch
13 include buildconfigs/Rules.mk
15 build: netbsd-$(EXTRAVERSION)
17 netbsd-%-tools.tar.bz2:
18 @echo "Cannot find netbsd-$(NETBSD_VER)-tools.tar.gz in path $(NETBSD_SRC_PATH)"
19 wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/netbsd-$*-tools.tar.bz2 -O./$@
21 netbsd-%-tools: netbsd-%-tools.tar.bz2
22 tar -jxf $<
23 touch $@ # update timestamp to avoid rebuild
25 $(NETBSD_DIR)/.valid: pristine-netbsd-$(NETBSD_VER)
26 $(RM) -rf $(NETBSD_DIR)
27 cp -al $< $(NETBSD_DIR)
28 # Apply arch-xen patches
29 ( cd netbsd-$(NETBSD_VER)-xen-sparse ; \
30 ./mkbuildtree ../$(NETBSD_DIR) )
31 @touch $(NETBSD_DIR)/.valid
33 # build the specified netbsd tree
34 netbsd-xen%: $(NETBSD_DIR)/.valid netbsd-$(NETBSD_RELEASE)-tools
35 $(MAKE) -C netbsd-$(FULLVERSION) config
36 $(MAKE) -C netbsd-$(FULLVERSION) netbsd
37 $(MAKE) -C netbsd-$(FULLVERSION) INSTALL_PATH=$(DESTDIR) INSTALL_NAME=boot/netbsd-$(NETBSD_VER)-xen$* install
39 clean:
40 $(MAKE) -C netbsd-$(FULLVERSION) clean
42 delete:
43 rm -rf tmp-netbsd-$(NETBSD_VER) $(NETBSD_DIR)