|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] Partial fix for compat build non-portability
>--- 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|