From: "Jan Beulich" Subject: Re: [PATCH] Partial fix for compat build non-portability Date: Wed, 10 Jan 2007 17:43:04 +0000 Message-ID: <45A533B8.76E4.0078.0@novell.com> References: <09c345f40063806e220e.1168450161@xenbld> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <09c345f40063806e220e.1168450161@xenbld> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, john.levon@sun.com List-Id: xen-devel@lists.xenproject.org >--- a/xen/include/Makefile >+++ b/xen/include/Makefile >@@ -2,8 +2,28 @@ ifneq ($(CONFIG_COMPAT),) > > compat-arch-$(CONFIG_X86) := x86_32 > >-headers-y := $(shell echo public/*.h | sed -e 's,[^[:space:]]*-[^[:space:]]*,,g' -e 's,public/,compat/,g') >-headers-y := $(filter-out %/dom0_ops.h,$(headers-y)) >+headers-y := \ >+ compat/acm.h \ >+ compat/acm_ops.h \ >+ compat/callback.h \ >+ compat/domctl.h \ >+ compat/elfnote.h \ >+ compat/event_channel.h \ >+ compat/features.h \ >+ compat/grant_table.h \ >+ compat/kexec.h \ >+ compat/memory.h \ >+ compat/nmi.h \ >+ compat/physdev.h \ >+ compat/platform.h \ >+ compat/sched.h \ >+ compat/sysctl.h \ >+ compat/trace.h \ >+ compat/vcpu.h \ >+ compat/version.h \ >+ compat/xen.h \ >+ compat/xencomm.h \ >+ compat/xenoprof.h > headers-$(CONFIG_X86) += compat/arch-x86/xen.h > headers-$(CONFIG_X86) += compat/arch-x86/xen-$(compat-arch-y).h > headers-y += compat/arch-$(compat-arch-y).h compat/xlat.h I certainly dislike this hunk - I intentionally didn't do it this way, as I wanted to prevent having to touch this Makefile every time a header gets added/removed. If the current mechanism is too ugly (which I tend to agree) let's just do it by more explicit filtering, i.e. add xen-compat.h along with dom0_ops.h and remove all arch-*.h items via sed as is currently being done. Jan