ia64/xen-unstable

changeset 8312:1712c7882f7e

Allows a 'make prep-kernels' which sets up the kernel directories, allowing
certain types of test automation to be done more easily.

Signed-off-by: Paul Larson <pl@us.ibm.com>
author vhanquez@kneesa.uk.xensource.com
date Sat Dec 10 00:11:33 2005 +0000 (2005-12-10)
parents 53cff3f88e45
children 82e283d25f3c
files Makefile buildconfigs/Rules.mk buildconfigs/mk.linux-2.6-xen
line diff
     1.1 --- a/Makefile	Fri Dec 09 11:05:06 2005 +0000
     1.2 +++ b/Makefile	Sat Dec 10 00:11:33 2005 +0000
     1.3 @@ -59,6 +59,9 @@ tools: dist-tools
     1.4  kernels: dist-kernels
     1.5  docs: dist-docs
     1.6  
     1.7 +prep-kernels:
     1.8 +	for i in $(XKERNELS) ; do $(MAKE) $$i-prep || exit 1; done
     1.9 +
    1.10  install-xen:
    1.11  	$(MAKE) -C xen install
    1.12  
    1.13 @@ -156,6 +159,7 @@ help:
    1.14  	@echo '  install-iptables - install iptables tools'
    1.15  	@echo ''
    1.16  	@echo 'Miscellaneous targets:'
    1.17 +	@echo '  prep-kernels     - prepares kernel directories, does not build'
    1.18  	@echo '  mkpatches        - make patches against vanilla kernels from'
    1.19  	@echo '                     sparse trees'
    1.20  	@echo '  uninstall        - attempt to remove installed Xen tools (use'
     2.1 --- a/buildconfigs/Rules.mk	Fri Dec 09 11:05:06 2005 +0000
     2.2 +++ b/buildconfigs/Rules.mk	Sat Dec 10 00:11:33 2005 +0000
     2.3 @@ -90,6 +90,9 @@ ref-%/.valid-ref: pristine-%/.valid-pris
     2.4  	touch $@ # update timestamp to avoid rebuild
     2.5  endif
     2.6  
     2.7 +%-prep:
     2.8 +	$(MAKE) -f buildconfigs/mk.$* prep
     2.9 +
    2.10  %-install:
    2.11  	$(MAKE) -f buildconfigs/mk.$* build
    2.12  
     3.1 --- a/buildconfigs/mk.linux-2.6-xen	Fri Dec 09 11:05:06 2005 +0000
     3.2 +++ b/buildconfigs/mk.linux-2.6-xen	Sat Dec 10 00:11:33 2005 +0000
     3.3 @@ -40,6 +40,8 @@ build: $(LINUX_DIR)/include/linux/autoco
     3.4  	  rm -f Makefile ; mv Mk.tmp Makefile )
     3.5  	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) oldconfig
     3.6  
     3.7 +prep: $(LINUX_DIR)/include/linux/autoconf.h
     3.8 +
     3.9  config: CONFIGMODE = menuconfig
    3.10  config: $(LINUX_DIR)/include/linux/autoconf.h
    3.11  	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) $(CONFIGMODE)