Skip to contentSkip to conversation

Allow different config file for xenlinux on samearch

PATCH Tian, Kevin 1 participant 1 message Dec 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi, Keir,
Any comments upon following patch? ;-) We need it to further check in a specific configuration file (likely xen0_defconfig_ia64tiger) later to run xen on IA64 tiger box. Currently we have no generic one for all IA64 boxes. Let's know if better way to do it. Currently custom with tiger box can only get that file out of the tree.

Thanks,
Kevin

Quoted 67 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Zhang, Xiantao
Sent: 2005年12月14日 18:22
To: [email protected]
Subject: [Xen-devel] [PATCH]Allow different config file for xenlinux on samearch

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

diff -r 0255f48b757f Makefile

Makefile +1 -1
@@ -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))
-export XEN_TARGET_ARCH SUBARCH
+export XEN_TARGET_ARCH SUBARCH XEN_SYSTYPE

endif

# Default target must appear before any include lines diff -r 0255f48b757f buildconfigs/mk.linux-2.6-xen

buildconfigs/mk.linux-2.6-xen +0 -0
@@ -30,7 +30,7 @@
 	CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p'
 $(LINUX_DIR)/Makefile); \
 	[ -r
 $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION)

] &&
\
cp
$(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) $(LINUX_DIR)/.config \

buildconfigs/mk.linux-2.6-xen +0 -1
-	  || cp

$(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig_$(XEN_TARGET_A RC
H) \

buildconfigs/mk.linux-2.6-xen +1 -0
+	  || cp

$(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig_$(XEN_TARGET_A RC

H)$(XEN_SYSTYPE) \
		$(LINUX_DIR)/.config
	# 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