ia64/xen-unstable

view buildconfigs/mk.linux-2.4-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 ae14fa1d3691
children 8b969ff555c1 0dc3b8b8c298 33066831d434
line source
2 LINUX_SERIES = 2.4
4 EXTRAVERSION = xenU
6 FULLVERSION = $(LINUX_VER)-$(EXTRAVERSION)
8 LINUX_DIR = linux-$(FULLVERSION)
10 include buildconfigs/Rules.mk
12 .PHONY: build clean delete
14 # The real action starts here!
15 build: $(LINUX_DIR)/include/linux/autoconf.h
16 if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
17 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
18 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
19 fi
20 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install
22 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
23 rm -rf $(LINUX_DIR)
24 cp -al $< $(LINUX_DIR)
25 # Apply arch-xen patches
26 ( cd linux-$(LINUX_VER)-xen-sparse ; \
27 ./mkbuildtree ../$(LINUX_DIR) )
28 # Patch kernel Makefile to set EXTRAVERSION
29 ( cd $(LINUX_DIR) ; \
30 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
31 rm -f Makefile ; mv Mk.tmp Makefile )
32 # Re-use config from install dir if one exits else use default config
33 [ -r $(DESTDIR)/boot/config-$(FULLVERSION) ] && \
34 cp $(DESTDIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config \
35 || cp $(LINUX_DIR)/arch/xen/defconfig-$(EXTRAVERSION) \
36 $(LINUX_DIR)/.config
37 make -C $(LINUX_DIR) ARCH=xen oldconfig
38 make -C $(LINUX_DIR) ARCH=xen dep
40 clean:
41 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
43 delete:
44 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR)