WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [RFC][PATCH] add make kernels-prep support

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC][PATCH] add make kernels-prep support
From: Paul Larson <pl@xxxxxxxxxx>
Date: Thu, 01 Dec 2005 21:57:08 -0600
Cc: habanero@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Dec 2005 03:57:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D32DF6B@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D32DF6B@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.4.1 (Windows/20051006)
Somehow this never made it in, but it would be incredibly useful to me. I rerolled it for current tip, added 'make help' info on it, and changed it slightly to 'prep-kernels' which seemed more in keeping with convention.

Signed-off-by: Paul Larson <pl@xxxxxxxxxx>


Ian Pratt wrote:
Would anyone be interested in having a 'make kernels-prep'? I tend to automate the rest of the kernel builds, and as a result 'make kernels' gets used to just setup the kernel directories, and the build is kind of wasted. Would there be any problem including the attached patch to allow a 'make kernels-prep'?

Sounds a good idea to me.

Ian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel



# HG changeset patch
# User pl@xxxxxxxxxx
# Node ID 24c85ccb358307d990687c832e0e61116363f2b9
# Parent  f62f9b1732b9adaeab50b808746097b7aa089f5d
Allows a 'make prep-kernels' which sets up the kernel directories, allowing 
certain types of test automation to be done more easily.

diff -r f62f9b1732b9 -r 24c85ccb3583 Makefile
--- a/Makefile  Thu Dec  1 20:43:04 2005 +0100
+++ b/Makefile  Thu Dec  1 18:15:21 2005 -0600
@@ -58,6 +58,9 @@
 tools: dist-tools
 kernels: dist-kernels
 docs: dist-docs
+
+prep-kernels:
+       for i in $(XKERNELS) ; do $(MAKE) $$i-prep || exit 1; done
 
 install-xen:
        $(MAKE) -C xen install
diff -r f62f9b1732b9 -r 24c85ccb3583 buildconfigs/Rules.mk
--- a/buildconfigs/Rules.mk     Thu Dec  1 20:43:04 2005 +0100
+++ b/buildconfigs/Rules.mk     Thu Dec  1 18:15:21 2005 -0600
@@ -89,6 +89,9 @@
        touch $@ # update timestamp to avoid rebuild
 endif
 
+%-prep:
+       $(MAKE) -f buildconfigs/mk.$* prep
+
 %-install:
        $(MAKE) -f buildconfigs/mk.$* build
 
diff -r f62f9b1732b9 -r 24c85ccb3583 buildconfigs/mk.linux-2.6-xen
--- a/buildconfigs/mk.linux-2.6-xen     Thu Dec  1 20:43:04 2005 +0100
+++ b/buildconfigs/mk.linux-2.6-xen     Thu Dec  1 18:15:21 2005 -0600
@@ -40,6 +40,8 @@
          rm -f Makefile ; mv Mk.tmp Makefile )
        $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) oldconfig
 
+prep:  $(LINUX_DIR)/include/linux/autoconf.h
+
 config: CONFIGMODE = menuconfig
 config: $(LINUX_DIR)/include/linux/autoconf.h
        $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) $(CONFIGMODE)
# HG changeset patch
# User pl@xxxxxxxxxx
# Node ID 554278b41bbbb5f80c3d343e95eb1e2941dc3501
# Parent  24c85ccb358307d990687c832e0e61116363f2b9
Added make help info for prep-kernels

diff -r 24c85ccb3583 -r 554278b41bbb Makefile
--- a/Makefile  Thu Dec  1 18:15:21 2005 -0600
+++ b/Makefile  Thu Dec  1 18:17:43 2005 -0600
@@ -159,6 +159,7 @@
        @echo '  install-iptables - install iptables tools'
        @echo ''
        @echo 'Miscellaneous targets:'
+       @echo '  prep-kernels     - prepares kernel directories, does not build'
        @echo '  mkpatches        - make patches against vanilla kernels from'
        @echo '                     sparse trees'
        @echo '  uninstall        - attempt to remove installed Xen tools (use'
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] [RFC][PATCH] add make kernels-prep support, Paul Larson <=