Skip to contentSkip to conversation

add make kernels-prep support

RFC PATCH New Andrew Theurer 1 participant 1 message Sep 22, 2005 Kbuild

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 add make kernels-prep support

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 <[email protected]>

buildconfigs/mk.linux-2.6-xen +4 -0
diff -Naurp xen-unstable.hg/buildconfigs/mk.linux-2.6-xen xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xen
@@ -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
 
buildconfigs/mk.linux-2.6-xen0 +2 -0
diff -Naurp xen-unstable.hg/buildconfigs/mk.linux-2.6-xen0 xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xen0
@@ -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)
buildconfigs/mk.linux-2.6-xenU +2 -0
diff -Naurp xen-unstable.hg/buildconfigs/mk.linux-2.6-xenU xen-unstable.hg-new/buildconfigs/mk.linux-2.6-xenU
@@ -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)
buildconfigs/Rules.mk +3 -0
diff -Naurp xen-unstable.hg/buildconfigs/Rules.mk xen-unstable.hg-new/buildconfigs/Rules.mk
@@ -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
 
Makefile +3 -0
diff -Naurp xen-unstable.hg/Makefile xen-unstable.hg-new/Makefile
@@ -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
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel