ia64/xen-unstable

view buildconfigs/mk.netbsd-2.0-xenU @ 4547:73ef7f1fc714

bitkeeper revision 1.1307 (42604f23zhUwzxPQ-mNyzol0cpHWlg)

[PATCH] Eliminate kernel version checks from

Eliminate kernel version checks from x86_64/kernel/pci-dma.c as a trivial
first pass cleanup towards merging.

Signed-off-by: Chris Wright <chrisw@osdl.org>
author chrisw@osdl.org[iap10]
date Fri Apr 15 23:32:51 2005 +0000 (2005-04-15)
parents a01199a95070
children e9ca570f9023 d16ae85cb89e
line source
2 NETBSD_RELEASE ?= 2.0
3 NETBSD_CVSSNAP ?= 20050309
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)