From a80eaa26fbfba4b0c43030745d1c47e0b4308b3f Mon Sep 17 00:00:00 2001 From: "iap10@freefall.cl.cam.ac.uk" Date: Wed, 6 Jul 2005 14:23:39 +0000 Subject: Add a new Linux kernel config file -xen [NB: no 0 or U suffix] that builds a wide selection of modules, more in keeping with distro kernels. It can be used as both a dom0 and domU domain kernel. It is not built by default as it takes ages, but should be in install tar balls and the demo CD. Signed-off-by: ian.pratt@cl.cam.ac.uk --- buildconfigs/mk.linux-2.6-xen | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 buildconfigs/mk.linux-2.6-xen (limited to 'buildconfigs') diff --git a/buildconfigs/mk.linux-2.6-xen b/buildconfigs/mk.linux-2.6-xen new file mode 100644 index 0000000000..23f8583782 --- /dev/null +++ b/buildconfigs/mk.linux-2.6-xen @@ -0,0 +1,48 @@ + +OS = linux + +LINUX_SERIES = 2.6 + +EXTRAVERSION = xen + +LINUX_DIR = $(OS)-$(LINUX_VER)-$(EXTRAVERSION) + +include buildconfigs/Rules.mk + +.PHONY: build clean delete + +# The real action starts here! +build: $(LINUX_DIR)/include/linux/autoconf.h + if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \ + $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \ + $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \ + fi + $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install + +$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref + rm -rf $(LINUX_DIR) + cp -al $(Mk.tmp ; \ + rm -f Makefile ; mv Mk.tmp Makefile ) + $(MAKE) -C $(LINUX_DIR) ARCH=xen oldconfig + +config: CONFIGMODE = menuconfig +config: $(LINUX_DIR)/include/linux/autoconf.h + $(MAKE) -C $(LINUX_DIR) ARCH=xen $(CONFIGMODE) + +clean:: + $(MAKE) -C $(LINUX_DIR) ARCH=xen clean + +delete: + rm -rf tmp-$(OS)-$(LINUX_VER) $(LINUX_DIR) -- cgit v1.2.3