ia64/xen-unstable

view buildconfigs/mk.netbsd-2.0-xenU @ 3017:d0006e7baa9a

bitkeeper revision 1.1159.170.41 (419b5697bEIXHXiSbTxwpjfvjHraWw)

Reassert 2.1-devel after push to 2.0 tree.
author kaf24@freefall.cl.cam.ac.uk
date Wed Nov 17 13:48:07 2004 +0000 (2004-11-17)
parents 2a69594a92dc
children ae14fa1d3691 8b969ff555c1 d8ba911dce48 0dc3b8b8c298
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=$(INSTALL_DIR) 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)