xen/compat: support XEN_HAVE_FOO ifdefs in public interface
authorIan Campbell <ian.campbell@citrix.com>
Fri, 19 Jul 2013 11:51:07 +0000 (12:51 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 20 Aug 2013 14:40:36 +0000 (15:40 +0100)
commit623038e4df4f09946e6126e5744a3a2e28add28f
tree793eafdc9110ffb9aed778dbac2c8640a9e5b472
parent484a3711b42261f3a82e21bf5164a7021d52356f
xen/compat: support XEN_HAVE_FOO ifdefs in public interface

This allows us expose or hide interface features on different architectures
without requiring nasty arch-specific ifdeffery.

Preserves any #ifdef with a XEN_HAVE_* symbol name, as well as any #else or

The ifdef symbol becomes COMPAT_HAVE in the compat versions so that
architectures can enable or disable interfaces for compat mode too. (This
actually just fell out of the way the existing stuff works and it didn't seem
worth jumping through hoops to make the name remain XEN_HAVE).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen/tools/compat-build-header.py
xen/tools/compat-build-source.py