[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] resend--[PATCH]Allow different config file for xenlinux on same arch

  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
  • Date: Tue, 20 Dec 2005 08:28:41 +0800
  • Delivery-date: Tue, 20 Dec 2005 00:31:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcYAmEdCgybULE5oTn6OBxCMa5rlgAEY9IUg
  • Thread-topic: resend--[PATCH]Allow different config file for xenlinux on same arch

Currently there is no generic configure file to compile xenlinux on
ia64, since there're several different system types like HP-ZX, DIG,
etc. Current Makefile can't meet this need and default one
(xen0_defconfig_ia64) is only for HP-ZX type. Hence, this patch can
append an additional param to configuration file name to differentiate
system types when make.

For example, we can use "make world XEN_SYSTYPE=dig" to compile, and if
a config file named as xen0_defconfig_ia64dig exists under
arch/xen/configs, it will be copied to override xen0_defconfig_ia64
before real compilation.. If no value for this option, it use default
configure file for their archs.

Configuration file is not attached here. If this approach is an agreed
approach to solve such requirement, we will check in the config file in
another mail.

Signed-off-by Zhang Xiantao <xiantao.zhang@xxxxxxxxx>

diff -r 0255f48b757f Makefile
--- a/Makefile  Sun Dec  4 19:12:00 2005
+++ b/Makefile  Wed Dec 14 17:35:04 2005
@@ -10,7 +10,7 @@
 # Export target architecture overrides to Xen and Linux sub-trees.
 ifneq ($(XEN_TARGET_ARCH),)
 SUBARCH := $(subst x86_32,i386,$(XEN_TARGET_ARCH))
 # Default target must appear before any include lines
diff -r 0255f48b757f buildconfigs/mk.linux-2.6-xen
--- a/buildconfigs/mk.linux-2.6-xen     Sun Dec  4 19:12:00 2005
+++ b/buildconfigs/mk.linux-2.6-xen     Wed Dec 14 17:35:04 2005
@@ -30,7 +30,7 @@
        CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p'
$(LINUX_DIR)/Makefile); \
        [ -r
$(LINUX_DIR)/.config \
-         || cp
H) \
+         || cp
        # See if we need to munge config to enable PAE
        $(MAKE) CONFIG_FILE=$(LINUX_DIR)/.config -f
buildconfigs/Rules.mk config-update-pae

Zhang Xiantao
CSD-OTC PRC Virtualization
Intel (China) Limited

Attachment: xen0_config.patch
Description: xen0_config.patch

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.