ia64/xen-unstable

changeset 3132:f52ac722d9c7

bitkeeper revision 1.1159.187.11 (41a5f544EJGqYIJJBOFjrPctFG4vhA)

Add wildcard capability to the KERNELS= input to the top-level Makefile.
e.g. make KERNELS=*2.4* world
author iap10@labyrinth.cl.cam.ac.uk
date Thu Nov 25 15:07:48 2004 +0000 (2004-11-25)
parents 643ec6da4416
children 6e367cf5eb0b
files Makefile
line diff
     1.1 --- a/Makefile	Thu Nov 25 14:38:55 2004 +0000
     1.2 +++ b/Makefile	Thu Nov 25 15:07:48 2004 +0000
     1.3 @@ -7,9 +7,12 @@ INSTALL_DIR ?= $(DIST_DIR)/install
     1.4  
     1.5  KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
     1.6  # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU
     1.7 +# You may use wildcards in the above e.g. KERNELS=*2.4*
     1.8  
     1.9  ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*))
    1.10  ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse))
    1.11 +XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
    1.12 +
    1.13  
    1.14  export INSTALL_DIR
    1.15  
    1.16 @@ -46,7 +49,7 @@ tools:
    1.17  	$(MAKE) prefix=$(INSTALL_DIR) dist=yes -C tools install
    1.18  
    1.19  kernels:
    1.20 -	for i in $(KERNELS) ; do $(MAKE) $$i-build ; done
    1.21 +	for i in $(XKERNELS) ; do $(MAKE) $$i-build ; done
    1.22  
    1.23  docs:
    1.24  	sh ./docs/check_pkgs && \
    1.25 @@ -57,11 +60,11 @@ kbuild: kernels
    1.26  
    1.27  # Delete the kernel build trees entirely
    1.28  kdelete:
    1.29 -	for i in $(KERNELS) ; do $(MAKE) $$i-delete ; done
    1.30 +	for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done
    1.31  
    1.32  # Clean the kernel build trees
    1.33  kclean:
    1.34 -	for i in $(KERNELS) ; do $(MAKE) $$i-clean ; done
    1.35 +	for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done
    1.36  
    1.37  # Make patches from kernel sparse trees
    1.38  mkpatches: