* RE: [RFC][PATCH] add make kernels-prep support
@ 2005-09-23 22:30 Ian Pratt
2005-12-02 3:57 ` Paul Larson
0 siblings, 1 reply; 3+ messages in thread
From: Ian Pratt @ 2005-09-23 22:30 UTC (permalink / raw)
To: habanero, xen-devel
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC][PATCH] add make kernels-prep support
2005-09-23 22:30 [RFC][PATCH] add make kernels-prep support Ian Pratt
@ 2005-12-02 3:57 ` Paul Larson
0 siblings, 0 replies; 3+ messages in thread
From: Paul Larson @ 2005-12-02 3:57 UTC (permalink / raw)
To: Ian Pratt; +Cc: habanero, xen-devel
[-- Attachment #1: Type: text/plain, Size: 835 bytes --]
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@us.ibm.com>
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@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
[-- Attachment #2: prep-kernels.patch --]
[-- Type: text/plain, Size: 2173 bytes --]
# HG changeset patch
# User pl@us.ibm.com
# 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@us.ibm.com
# 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'
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [RFC][PATCH] add make kernels-prep support
@ 2005-09-22 17:22 Andrew Theurer
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Theurer @ 2005-09-22 17:22 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
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 <habanero@us.ibm.com>
[-- Attachment #2: patch-prep-buildconfig --]
[-- Type: text/x-diff, Size: 2915 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-02 3:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-23 22:30 [RFC][PATCH] add make kernels-prep support Ian Pratt
2005-12-02 3:57 ` Paul Larson
-- strict thread matches above, loose matches on Subject: below --
2005-09-22 17:22 Andrew Theurer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.