ia64/xen-unstable

view buildconfigs/mk.netbsd-2.0-xenU @ 6726:0c7379b702e5

common/kernel.o contains changeset/compiler info.
Blow away on every build.
author kaf24@firebug.cl.cam.ac.uk
date Fri Sep 09 16:26:20 2005 +0000 (2005-09-09)
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)