ia64/xen-unstable

view buildconfigs/Rules.mk @ 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 # We expect these two to already be set if people
3 # are using the top-level Makefile
4 DISTDIR ?= $(CURDIR)/dist
5 DESTDIR ?= $(DISTDIR)/install
7 .PHONY: mkpatches mrproper
9 # Setup pristine search path
10 PRISTINE_SRC_PATH ?= .:..
11 vpath pristine-% $(PRISTINE_SRC_PATH)
13 # Expand Linux series to Linux version
14 LINUX_SERIES ?= 2.6
15 LINUX_VER ?= $(patsubst linux-%-xen-sparse,%,$(wildcard linux-$(LINUX_SERIES)*-xen-sparse))
17 # Setup Linux search path
18 LINUX_SRC_PATH ?= .:..
19 vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
21 # download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
22 linux-%.tar.bz2: override _LINUX_VDIR = $(word 1,$(subst ., ,$*)).$(word 2,$(subst ., ,$*))
23 linux-%.tar.bz2:
24 @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
25 wget http://www.kernel.org/pub/linux/kernel/v$(_LINUX_VDIR)/$@ -O./$@
27 # Expand NetBSD release to NetBSD version
28 NETBSD_RELEASE ?= 2.0
29 NETBSD_VER ?= $(patsubst netbsd-%-xen-sparse,%,$(wildcard netbsd-$(NETBSD_RELEASE)*-xen-sparse))
30 NETBSD_CVSSNAP ?= 20050309
32 # Setup NetBSD search path
33 NETBSD_SRC_PATH ?= .:..
34 vpath netbsd-%.tar.bz2 $(NETBSD_SRC_PATH)
36 # download a pristine NetBSD tarball if there isn't one in NETBSD_SRC_PATH
37 netbsd-%-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2:
38 @echo "Cannot find $@ in path $(NETBSD_SRC_PATH)"
39 wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/$@ -O./$@
41 netbsd-%.tar.bz2: netbsd-%-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2
42 ln -fs $< $@
44 pristine-%: %.tar.bz2
45 rm -rf tmp-$(@F) $@
46 mkdir -p tmp-$(@F)
47 tar -C tmp-$(@F) -jxf $<
48 mv tmp-$(@F)/* $@
49 touch $@ # update timestamp to avoid rebuild
50 @rm -rf tmp-$(@F)
51 [ -d patches/$* ] && \
52 for i in patches/$*/*.patch ; do ( cd $@ ; patch -p1 <../$$i ) ; done || \
53 true
55 %-build:
56 $(MAKE) -f buildconfigs/mk.$* build
58 %-delete:
59 $(MAKE) -f buildconfigs/mk.$* delete
61 %-clean:
62 $(MAKE) -f buildconfigs/mk.$* clean
64 %-xen.patch: pristine-%
65 rm -rf tmp-$@
66 cp -al $< tmp-$@
67 ( cd $*-xen-sparse && ./mkbuildtree ../tmp-$@ )
68 diff -Nurp $< tmp-$@ > $@ || true
69 rm -rf tmp-$@
71 %-mrproper: %-mrproper-extra
72 rm -rf pristine-$* $*.tar.bz2
73 rm -rf $*-xen.patch
75 netbsd-%-mrproper-extra:
76 rm -rf netbsd-$*-tools netbsd-$*-tools.tar.bz2
77 rm -f netbsd-$*-xen-kernel-$(NETBSD_CVSSNAP).tar.bz2
79 %-mrproper-extra:
80 @: # do nothing
82 # never delete any intermediate files.
83 .SECONDARY: