ia64/xen-unstable

view buildconfigs/mk.netbsd-2.0-xenU @ 4750:efa6730ad90e

bitkeeper revision 1.1159.258.112 (4277a730mvnFSFXrxJpVRNk8hjD4Vg)

[PATCH] Mkbuildtree little fix

Hi, here is a really small fix for mkbuildtree.

With my 'find' version [1], I get many of these warning when using mkbuildtree:

find: warning: you have specified the -maxdepth option after a
non-option argument -type, but options are not positional (-maxdepth
affects tests specified before it as well as those specified after it).
Please specify options before other arguments.

My patch just correct the ordering of the options, it should be
harmless, but I didn't test with other versions of find.

Regards

[1] find --version
GNU find version 4.2.20
Features enabled: D_TYPE O_NOFOLLOW(enabled)

xen-unstable-mkbuildtree-find-maxpath.patch:
author ydroneaud@mandriva.com[kaf24]
date Tue May 03 16:30:40 2005 +0000 (2005-05-03)
parents 7a898f4725b2
children 77fbd1da5611 0dc3b8b8c298 33066831d434
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)