ia64/xen-unstable

view buildconfigs/mk.netbsd-2.0-xenU @ 7886:51f91ef6c3b5

Fix x86-64 build.

Signed-off-by: James Bulpin <james@xensource.com>
author jrb44@plym.cl.cam.ac.uk
date Thu Nov 17 13:32:05 2005 +0100 (2005-11-17)
parents bb2558cbc4f8
children
line source
2 OS = netbsd
4 NETBSD_RELEASE ?= 2.0
5 NETBSD_CVSSNAP ?= 20050309
7 EXTRAVERSION = xenU
9 FULLVERSION = $(NETBSD_VER)-$(EXTRAVERSION)
11 NETBSD_DIR = $(OS)-$(FULLVERSION)
13 .PHONY: build clean mrproper mkpatch
15 include buildconfigs/Rules.mk
17 build: $(OS)-$(EXTRAVERSION)
19 netbsd-%-tools.tar.bz2:
20 @echo "Cannot find netbsd-$(NETBSD_VER)-tools.tar.gz in path $(NETBSD_SRC_PATH)"
21 wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/netbsd-$*-tools.tar.bz2 -O./$@
23 netbsd-%-tools: netbsd-%-tools.tar.bz2
24 tar -jxf $<
25 touch $@ # update timestamp to avoid rebuild
27 $(NETBSD_DIR)/.valid: ref-$(OS)-$(NETBSD_VER)/.valid-ref
28 $(RM) -rf $(NETBSD_DIR)
29 cp -al $(<D) $(NETBSD_DIR)
30 # Apply arch-xen patches
31 ( cd netbsd-$(NETBSD_VER)-xen-sparse ; \
32 ./mkbuildtree ../$(NETBSD_DIR) )
33 @touch $(NETBSD_DIR)/.valid
35 # build the specified netbsd tree
36 netbsd-xen%: $(NETBSD_DIR)/.valid netbsd-$(NETBSD_RELEASE)-tools
37 $(MAKE) -C netbsd-$(FULLVERSION) config
38 $(MAKE) -C netbsd-$(FULLVERSION) netbsd
39 $(MAKE) -C netbsd-$(FULLVERSION) INSTALL_PATH=$(DESTDIR) INSTALL_NAME=boot/netbsd-$(NETBSD_VER)-xen$* install
41 clean::
42 $(MAKE) -C netbsd-$(FULLVERSION) clean
44 delete:
45 rm -rf tmp-$(OS)-$(NETBSD_VER) $(NETBSD_DIR)