ia64/xen-unstable

changeset 8744:cc63196c0d2f

Fix buildsystem.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 21:21:47 2006 +0000 (2006-02-02)
parents 3b9c2c410b14
children 514f2585d102
files .hgignore buildconfigs/mk.linux-2.6-xen
line diff
     1.1 --- a/.hgignore	Thu Feb 02 19:21:18 2006 +0000
     1.2 +++ b/.hgignore	Thu Feb 02 21:21:47 2006 +0000
     1.3 @@ -13,6 +13,7 @@
     1.4  .*\.flc$
     1.5  .*\.orig$
     1.6  .*\.rej$
     1.7 +^.valid-srcs$
     1.8  ^TAGS$
     1.9  ^dist/.*$
    1.10  ^docs/.*\.aux$
     2.1 --- a/buildconfigs/mk.linux-2.6-xen	Thu Feb 02 19:21:18 2006 +0000
     2.2 +++ b/buildconfigs/mk.linux-2.6-xen	Thu Feb 02 21:21:47 2006 +0000
     2.3 @@ -3,6 +3,8 @@ OS           = linux
     2.4  
     2.5  LINUX_SERIES = 2.6
     2.6  LINUX_VER    = 2.6.16-rc1-git4
     2.7 +LINUX_SRCS = linux-2.6.15.tar.bz2 patch-2.6.16-rc1.bz2 patch-2.6.16-rc1-git4.bz2
     2.8 +LINUX_PDIR = linux-$(LINUX_VER)
     2.9  
    2.10  EXTRAVERSION ?= xen
    2.11  
    2.12 @@ -20,15 +22,17 @@ build: $(LINUX_DIR)/include/linux/autoco
    2.13  	fi
    2.14  	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR) install
    2.15  
    2.16 -pristine-linux-%/.valid-pristine: override _LINUX_PDIR = linux-$*.16-rc1-git4
    2.17 -pristine-linux-%.16-rc1-git4/.valid-pristine: linux-%.15.tar.bz2 patch-%.16-rc1.bz2 patch-%.16-rc1-git4.bz2
    2.18 -	rm -rf tmp-pristine-$(_LINUX_PDIR) $(@D)
    2.19 -	mkdir -p tmp-pristine-$(_LINUX_PDIR)
    2.20 -	tar -C tmp-pristine-$(_LINUX_PDIR) -jxf $<
    2.21 -	-@rm tmp-pristine-$(_LINUX_PDIR)/pax_global_header
    2.22 -	mv tmp-pristine-$(_LINUX_PDIR)/* $(@D)
    2.23 -	@rm -rf tmp-pristine-$(_LINUX_PDIR)
    2.24 -	bzcat $(wordlist 2,$(words $^),$^) | patch -d $(@D) -p1
    2.25 +.valid-srcs: $(LINUX_SRCS)
    2.26 +	touch $@
    2.27 +
    2.28 +pristine-linux-%.16-rc1-git4/.valid-pristine: .valid-srcs
    2.29 +	rm -rf tmp-pristine-$(LINUX_PDIR) $(@D)
    2.30 +	mkdir -p tmp-pristine-$(LINUX_PDIR)
    2.31 +	tar -C tmp-pristine-$(LINUX_PDIR) -jxf $(word 1,$(LINUX_SRCS))
    2.32 +	-@rm tmp-pristine-$(LINUX_PDIR)/pax_global_header
    2.33 +	mv tmp-pristine-$(LINUX_PDIR)/* $(@D)
    2.34 +	@rm -rf tmp-pristine-$(LINUX_PDIR)
    2.35 +	bzcat $(wordlist 2,$(words $(LINUX_SRCS)),$(LINUX_SRCS)) | patch -d $(@D) -p1
    2.36  	touch $(@D)/.hgskip
    2.37  	touch $@ # update timestamp to avoid rebuild
    2.38