From: Andrew Theurer Subject: [RFC][PATCH] add make kernels-prep support Date: Thu, 22 Sep 2005 12:22:03 -0500 Message-ID: <200509221222.04012.habanero@us.ibm.com> Reply-To: habanero@us.ibm.com Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_8guMD9jrFofGzg8" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_8guMD9jrFofGzg8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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'? Thanks, Andrew signed-off-by Andrew Theurer --Boundary-00=_8guMD9jrFofGzg8 Content-Type: text/x-diff; charset="us-ascii"; name="patch-prep-buildconfig" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-prep-buildconfig" diff -Naurp xen-unstable.hg/buildconfigs/mk.linux-2.6-xen xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xen --- xen-unstable.hg/buildconfigs/mk.linux-2.6-xen 2005-09-20 21:52:20.000000000 -0500 +++ xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xen 2005-09-22 12:16:40.297578696 -0500 @@ -40,10 +40,14 @@ $(LINUX_DIR)/include/linux/autoconf.h: r 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) +prep: $(LINUX_DIR)/include/linux/autoconf.h + clean:: $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) clean diff -Naurp xen-unstable.hg/buildconfigs/mk.linux-2.6-xen0 xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xen0 --- xen-unstable.hg/buildconfigs/mk.linux-2.6-xen0 2005-09-20 21:52:20.000000000 -0500 +++ xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xen0 2005-09-22 12:05:09.875538800 -0500 @@ -40,6 +40,8 @@ $(LINUX_DIR)/include/linux/autoconf.h: r 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) diff -Naurp xen-unstable.hg/buildconfigs/mk.linux-2.6-xenU xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xenU --- xen-unstable.hg/buildconfigs/mk.linux-2.6-xenU 2005-09-20 21:52:20.000000000 -0500 +++ xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xenU 2005-09-22 12:05:28.233747928 -0500 @@ -40,6 +40,8 @@ $(LINUX_DIR)/include/linux/autoconf.h: r 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) diff -Naurp xen-unstable.hg/buildconfigs/Rules.mk xen-unstable.hg-new/buildconfigs/Rules.mk --- xen-unstable.hg/buildconfigs/Rules.mk 2005-09-20 21:52:20.000000000 -0500 +++ xen-unstable.hg-new/buildconfigs/Rules.mk 2005-09-22 12:04:15.917741632 -0500 @@ -90,6 +90,9 @@ ref-%/.valid-ref: pristine-%/.valid-pris touch $@ # update timestamp to avoid rebuild endif +%-prep: + $(MAKE) -f buildconfigs/mk.$* prep + %-build: $(MAKE) -f buildconfigs/mk.$* build diff -Naurp xen-unstable.hg/Makefile xen-unstable.hg-new/Makefile --- xen-unstable.hg/Makefile 2005-09-20 21:52:20.000000000 -0500 +++ xen-unstable.hg-new/Makefile 2005-09-22 12:12:47.782926296 -0500 @@ -63,6 +63,9 @@ tools: kernels: for i in $(XKERNELS) ; do $(MAKE) $$i-build || exit 1; done +kernels-prep: + for i in $(XKERNELS) ; do $(MAKE) $$i-prep || exit 1; done + docs: sh ./docs/check_pkgs && $(MAKE) -C docs install || true --Boundary-00=_8guMD9jrFofGzg8 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_8guMD9jrFofGzg8--