From: Aron Griffis Subject: [patch-resend] take a bite out of xen-mkbuildtree-pre Date: Tue, 30 May 2006 17:56:24 -0400 Message-ID: <20060530215624.GA2425@vino.zko.hp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0841773369==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0841773369== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This is an update of last week's patch to clean up some of xen-mkbuildtree-pre and apply to current xen-unstable. This builds successfully on x86, x86_64, ia64-vp and ia64-non-vp. This patch converges the ia64-specific and general versions of xen/drivers/Makefile and xen/drivers/core/Makefile. Use Kconfig settings instead to control whether specific pieces are built. These config settings might disappear when the ia64 p2m/vp conversion is complete, but for the moment it's a clean way of handling the two personalities of xen-ia64. Handle evtchn/evtchn_ia64 with ifeq ($(ARCH),ia64) since this will go away with the next pull of xen-ia64-unstable into xen-unstable, and I think this creates less work to undo when that occurs. Signed-off-by: Aron Griffis diff -r d5f98d23427a linux-2.6-xen-sparse/arch/ia64/Kconfig --- a/linux-2.6-xen-sparse/arch/ia64/Kconfig Tue May 30 11:44:23 2006 +0100 +++ b/linux-2.6-xen-sparse/arch/ia64/Kconfig Tue May 30 11:21:19 2006 -0400 @@ -73,7 +73,7 @@ config XEN_IA64_DOM0_VP =20 config XEN_IA64_DOM0_NON_VP bool - depends on !(XEN && XEN_IA64_DOM0_VP) + depends on XEN && !XEN_IA64_DOM0_VP default y help dom0 P=3DM model @@ -496,15 +496,39 @@ source "security/Kconfig" =20 source "crypto/Kconfig" =20 +# # override default values of drivers/xen/Kconfig -if !XEN_IA64_DOM0_VP +# +if XEN +config XEN_UTIL + default n if XEN_IA64_DOM0_VP + config HAVE_ARCH_ALLOC_SKB - bool - default n + default n if !XEN_IA64_DOM0_VP =20 config HAVE_ARCH_DEV_ALLOC_SKB - bool - default n + default n if !XEN_IA64_DOM0_VP + +config XEN_BALLOON + default n if !XEN_IA64_DOM0_VP + +config XEN_SKBUFF + default n if !XEN_IA64_DOM0_VP + +config XEN_NETDEV_BACKEND + default n if !XEN_IA64_DOM0_VP + +config XEN_NETDEV_FRONTEND + default n if !XEN_IA64_DOM0_VP + +config XEN_CHAR + default n + +config XEN_REBOOT + default n + +config XEN_SMPBOOT + default n endif =20 source "drivers/xen/Kconfig" diff -r d5f98d23427a linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre --- a/linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre Tue May 30 11:44:2= 3 2006 +0100 +++ b/linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre Tue May 30 11:21:1= 9 2006 -0400 @@ -9,12 +9,6 @@ =20 #eventually asm-xsi-offsets needs to be part of hypervisor.h/hypercall.h ln -sf ../../../../xen/include/asm-ia64/asm-xsi-offsets.h include/asm-ia64= /xen/ - -#ia64 drivers/xen isn't fully functional yet, workaround... -#also ignore core/evtchn.c which uses a different irq mechanism than ia64 -#(warning: there be dragons here if these files diverge) -ln -sf ../../arch/ia64/xen/drivers/Makefile drivers/xen/Makefile -ln -sf ../../../arch/ia64/xen/drivers/coreMakefile drivers/xen/core/Makefi= le =20 #not sure where these ia64-specific files will end up in the future ln -sf ../../../arch/ia64/xen/drivers/xenia64_init.c drivers/xen/core diff -r d5f98d23427a linux-2.6-xen-sparse/drivers/xen/Kconfig --- a/linux-2.6-xen-sparse/drivers/xen/Kconfig Tue May 30 11:44:23 2006 +01= 00 +++ b/linux-2.6-xen-sparse/drivers/xen/Kconfig Tue May 30 11:21:19 2006 -04= 00 @@ -228,4 +228,30 @@ config NO_IDLE_HZ bool default y =20 +config XEN_UTIL + bool + default y + +config XEN_BALLOON + bool + default y + +config XEN_CHAR + bool + default y + +config XEN_SKBUFF + bool + default y + depends on NET + +config XEN_REBOOT + bool + default y + +config XEN_SMPBOOT + bool + default y + depends on SMP + endif diff -r d5f98d23427a linux-2.6-xen-sparse/drivers/xen/Makefile --- a/linux-2.6-xen-sparse/drivers/xen/Makefile Tue May 30 11:44:23 2006 +0= 100 +++ b/linux-2.6-xen-sparse/drivers/xen/Makefile Tue May 30 11:21:19 2006 -0= 400 @@ -1,14 +1,12 @@ - -obj-y +=3D util.o - obj-y +=3D core/ -obj-y +=3D char/ obj-y +=3D console/ obj-y +=3D evtchn/ -obj-y +=3D balloon/ obj-y +=3D privcmd/ obj-y +=3D xenbus/ =20 +obj-$(CONFIG_XEN_UTIL) +=3D util.o +obj-$(CONFIG_XEN_BALLOON) +=3D balloon/ +obj-$(CONFIG_XEN_CHAR) +=3D char/ obj-$(CONFIG_XEN_BLKDEV_BACKEND) +=3D blkback/ obj-$(CONFIG_XEN_NETDEV_BACKEND) +=3D netback/ obj-$(CONFIG_XEN_TPMDEV_BACKEND) +=3D tpmback/ @@ -17,4 +15,3 @@ obj-$(CONFIG_XEN_BLKDEV_TAP) +=3D blkt obj-$(CONFIG_XEN_BLKDEV_TAP) +=3D blktap/ obj-$(CONFIG_XEN_PCIDEV_BACKEND) +=3D pciback/ obj-$(CONFIG_XEN_PCIDEV_FRONTEND) +=3D pcifront/ - diff -r d5f98d23427a linux-2.6-xen-sparse/drivers/xen/core/Makefile --- a/linux-2.6-xen-sparse/drivers/xen/core/Makefile Tue May 30 11:44:23 20= 06 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/core/Makefile Tue May 30 11:21:19 20= 06 -0400 @@ -2,11 +2,21 @@ # Makefile for the linux kernel. # =20 -obj-y :=3D evtchn.o reboot.o gnttab.o features.o +obj-y :=3D gnttab.o features.o =20 -obj-$(CONFIG_PROC_FS) +=3D xen_proc.o -obj-$(CONFIG_NET) +=3D skbuff.o -obj-$(CONFIG_SMP) +=3D smpboot.o -obj-$(CONFIG_HOTPLUG_CPU) +=3D cpu_hotplug.o -obj-$(CONFIG_SYSFS) +=3D hypervisor_sysfs.o -obj-$(CONFIG_XEN_SYSFS) +=3D xen_sysfs.o +obj-$(CONFIG_PROC_FS) +=3D xen_proc.o +obj-$(CONFIG_SYSFS) +=3D hypervisor_sysfs.o +obj-$(CONFIG_HOTPLUG_CPU) +=3D cpu_hotplug.o +obj-$(CONFIG_XEN_SYSFS) +=3D xen_sysfs.o +obj-$(CONFIG_IA64) +=3D xenia64_init.o +obj-$(CONFIG_XEN_SKBUFF) +=3D skbuff.o +obj-$(CONFIG_XEN_REBOOT) +=3D reboot.o +obj-$(CONFIG_XEN_SMPBOOT) +=3D smpboot.o + +# This special handling should go away with the next pull of xen-ia64-unst= able +# into xen-unstable +ifeq ($(ARCH),ia64) +obj-y +=3D evtchn_ia64.o +else +obj-y +=3D evtchn.o +endif diff -r d5f98d23427a linux-2.6-xen-sparse/arch/ia64/xen/drivers/Makefile --- a/linux-2.6-xen-sparse/arch/ia64/xen/drivers/Makefile Tue May 30 11:44:= 23 2006 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ - -ifneq ($(CONFIG_XEN_IA64_DOM0_VP),y) -obj-y +=3D util.o -endif - -obj-y +=3D core/ -#obj-y +=3D char/ -obj-y +=3D console/ -obj-y +=3D evtchn/ -obj-$(CONFIG_XEN_IA64_DOM0_VP) +=3D balloon/ -obj-y +=3D privcmd/ -obj-y +=3D xenbus/ - -obj-$(CONFIG_XEN_BLKDEV_BACKEND) +=3D blkback/ -obj-$(CONFIG_XEN_NETDEV_BACKEND) +=3D netback/ -obj-$(CONFIG_XEN_TPMDEV_BACKEND) +=3D tpmback/ -obj-$(CONFIG_XEN_BLKDEV_FRONTEND) +=3D blkfront/ -obj-$(CONFIG_XEN_NETDEV_FRONTEND) +=3D netfront/ -obj-$(CONFIG_XEN_BLKDEV_TAP) +=3D blktap/ -obj-$(CONFIG_XEN_TPMDEV_FRONTEND) +=3D tpmfront/ -obj-$(CONFIG_XEN_PCIDEV_BACKEND) +=3D pciback/ -obj-$(CONFIG_XEN_PCIDEV_FRONTEND) +=3D pcifront/ diff -r d5f98d23427a linux-2.6-xen-sparse/arch/ia64/xen/drivers/coreMakefile --- a/linux-2.6-xen-sparse/arch/ia64/xen/drivers/coreMakefile Tue May 30 11= :44:23 2006 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -# -# Makefile for the linux kernel. -# - -obj-y :=3D gnttab.o features.o -obj-$(CONFIG_PROC_FS) +=3D xen_proc.o - -ifeq ($(ARCH),ia64) -obj-y +=3D evtchn_ia64.o -obj-y +=3D xenia64_init.o -ifeq ($(CONFIG_XEN_IA64_DOM0_VP),y) -obj-$(CONFIG_NET) +=3D skbuff.o -endif -else -obj-y +=3D reboot.o evtchn.o fixup.o=20 -obj-$(CONFIG_SMP) +=3D smp.o # setup_profiling_timer def'd in ia64 -obj-$(CONFIG_NET) +=3D skbuff.o # until networking is up on ia64 -endif -obj-$(CONFIG_SYSFS) +=3D hypervisor_sysfs.o -obj-$(CONFIG_XEN_SYSFS) +=3D xen_sysfs.o --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEfL+IJrHF4yAQTrARApwHAJ9yfnJ6/zKDl/2n74Rg1Pl89GFL9gCgmU6v zOvQmvdoT2WZk/0C8ajmjVQ= =urYP -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp-- --===============0841773369== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0841773369==--