Skip to contentSkip to conversation

add make prep-kernels support

PATCH Applied Paul Larson 2 participants 2 messages Dec 5, 2005 – Dec 10, 2005 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add make prep-kernels support

This seemed to be well received when it was submitted before, but never actually made it in. Would be very useful for test automation purposes.

Thanks,
Paul Larson

# HG changeset patch
# User [email protected]
# 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.

Makefile +3 -0
diff -r f62f9b1732b9 -r 24c85ccb3583 Makefile
@@ -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
buildconfigs/Rules.mk +3 -0
diff -r f62f9b1732b9 -r 24c85ccb3583 buildconfigs/Rules.mk
@@ -89,6 +89,9 @@
 	touch $@ # update timestamp to avoid rebuild
 endif
 
+%-prep:
+	$(MAKE) -f buildconfigs/mk.$* prep
+
 %-install:
 	$(MAKE) -f buildconfigs/mk.$* build
 
buildconfigs/mk.linux-2.6-xen +2 -0
diff -r f62f9b1732b9 -r 24c85ccb3583 buildconfigs/mk.linux-2.6-xen
@@ -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 [email protected]
# Node ID 554278b41bbbb5f80c3d343e95eb1e2941dc3501 # Parent 24c85ccb358307d990687c832e0e61116363f2b9 Added make help info for prep-kernels

Makefile +1 -0
diff -r 24c85ccb3583 -r 554278b41bbb Makefile
@@ -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
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 2 lines · Paul Larson

This seemed to be well received when it was submitted before, but never actually made it in. Would be very useful for test automation purposes.

Applied
thanks,

Signature · 1 line
Vincent Hanquez